|
FusionBoard'a Forum Reklam Bot Tarzı Reklam
|
| chatlaq |
Mesaj Tarihi 20-02-2010 23:43
|

Yönetici

Mesaj Sayısı: 1139
Katılım Tarihi: 31.12.09
|
Bildiğiniz gibi standart forum için Forum Reklam Bot v7 var ama bu fusionboard ile uyumlu değil şimdi yapacağımız ekleme uyumlu olmasını sağlamayacak ama forumda görünecek reklam tarzı Forum Reklam Bot v7 gibi olacak.
/infusions/fusionboard4/includes/views/fusion.php açıyoruz
aşağıdaki kodu buluyoruz satır 261 civarı
Kod$current_row++;
üzerine bunları ekliyoruz
Kod//reklam kodları başladı
if ($current_row == 1 && (!isset($_GET['rowstart']) || isset($_GET['rowstart']) && $_GET['rowstart'] == 0)) {
echo '<tr><td class="tbl2" style="padding:6px;">';
echo '<span style="font-size:11px;">Destek Reklamları</span>';
echo '</td>';
echo '<td class="tbl2" style="padding:6px;">';
?>Destek için aşağıdaki reklama tıklayınız.<br>
<script type='text/javascript'><!--
google_ad_client = 'pub-6288351569065210';
/* 728x90, oluşturulma 22.01.2008 */
google_ad_slot = '9063099852';
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
<?php
echo '</td></tr>';
}
//reklam kodları bitti
reklamlarımızın kaçıncı mesajdan sonra görünmesini istiyorsak burdaki if ($current_row == 1 1 değerini değiştiriyoruz.
Ve son olarak kendi reklam kodumuzla değiştiriyoruz bu kadar.
Düzenleyen chatlaq Düzenleme Tarihi: 21-02-2010 00:19 |
| |
|
|
| Arda |
Mesaj Tarihi 21-02-2010 00:05
|

Super Yönetici

Mesaj Sayısı: 3511
Katılım Tarihi: 30.12.09
|
teşekkürler eline sağlık
Sevgi ve Saygının anlamını bilenlere  |
| |
|
|
| Mehmet |
Mesaj Tarihi 21-02-2010 01:37
|

Kıdemli Üye

Mesaj Sayısı: 1482
Katılım Tarihi: 02.01.10
|
Teşekkürler chatlaq kardeşim.
Birşey sormak istiyorum. Bu reklam gösterimlerini çoğaltabiliyor muyuz bu kod ile? Ya da çoğaltma imkanı var mı?
Akıl süsü dil, dil süsü sözdür. İnsanın süsü yüz, yüzün süsü gözdür. İnsan sözünü diliyle söyler. Sözü iyi olursa yüzü parlar. (Kutadgu Bilig, Yusuf Has Hacip)
 |
| |
|
|
| Reklamlar |
Mesaj Tarihi: 09-09-2010 09:09
|
Reklamlar
Mesaj Sayisi: 0
Katilim Tarihi: 01/01/10
|
Reklamlar
|
| |
|
|
| Arda |
Mesaj Tarihi 21-02-2010 01:42
|

Super Yönetici

Mesaj Sayısı: 3511
Katılım Tarihi: 30.12.09
|
şu kodu bulun:
Kodif ($current_row == 1 && (!isset($_GET['rowstart']) || isset($_GET['rowstart']) && $_GET['rowstart'] == 0)) {
şöyle değiştirin:
Kod$kacinci_mesaj=array(1,3,6,8);//kaçıncı mesajlardan sonra çıkacak
if (in_array($current_row,$kacinci_mesaj) && (!isset($_GET['rowstart']) || isset($_GET['rowstart']) && $_GET['rowstart'] == 0)) {
Sevgi ve Saygının anlamını bilenlere  |
| |
|
|
| Mehmet |
Mesaj Tarihi 21-02-2010 01:54
|

Kıdemli Üye

Mesaj Sayısı: 1482
Katılım Tarihi: 02.01.10
|
Teşekkürler Arda.
Son birşey daha öğrenmek istiyorum. chatlaq kardeşimiz bu reklamların bulunduğu yeri 4 paçaya bölmüş. Üstte yazılar alta reklam ve resim koymuş bunu nasıl yapabiliriz. Ben uğraştım yapamadım.
Ekleme:
Mesaj tarihi yerine; destek reklamları gibi bir yazı.
Soldaki tabloda Reklamlar yazan yerin altınada mesaj sayısı yerine resim nasıl eklerim.
Yani bu başlıkta ki reklam gibi nasıl yaparız onu sormak istedim.
Düzenleyen Mehmet Düzenleme Tarihi: 21-02-2010 02:42
Akıl süsü dil, dil süsü sözdür. İnsanın süsü yüz, yüzün süsü gözdür. İnsan sözünü diliyle söyler. Sözü iyi olursa yüzü parlar. (Kutadgu Bilig, Yusuf Has Hacip)
 |
| |
|
|
| Mehmet |
Mesaj Tarihi 21-02-2010 04:24
|

Kıdemli Üye

Mesaj Sayısı: 1482
Katılım Tarihi: 02.01.10
|
Kendim yapmaya çalıştım ama yok olmadı :D Bir tabloyu oluşturdum ama reklam üzerine tablo oluşturamadım.

Kodlarıda deneyerek şöyle yaptım;
Kod //reklam kodları başladı
$kacinci_mesaj=array(1,3,6,8);//kaçıncı mesajlardan sonra çıkacak
if (in_array($current_row,$kacinci_mesaj) && (!isset($_GET['rowstart']) || isset($_GET['rowstart']) && $_GET['rowstart'] == 0)) {
echo '<tr><td class="tbl2" style="padding:6px;">';
echo '<span style="font-size:11px;">Google Adsense</span>';
echo '<tr><td class="tbl2" style="padding:6px;">';
echo '<span style="font-size:11px;">Google Adsense</span>';
echo '</td>';
echo '<td class="tbl2" style="padding:6px;">';
?>Destek Reklamlarý<br>
<script type="text/javascript"><!--
google_ad_client = "pub-8210295495316216";
/* TorunTurkForum */
google_ad_slot = "1742598701";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<?php
echo '</td></tr>';
}
//reklam kodları bitti
Akıl süsü dil, dil süsü sözdür. İnsanın süsü yüz, yüzün süsü gözdür. İnsan sözünü diliyle söyler. Sözü iyi olursa yüzü parlar. (Kutadgu Bilig, Yusuf Has Hacip)
 |
| |
|
|
| chatlaq |
Mesaj Tarihi 21-02-2010 11:58
|

Yönetici

Mesaj Sayısı: 1139
Katılım Tarihi: 31.12.09
|
reklam tamam da onun üstündeki satır nerden çıktı |
| |
|
|
| Mehmet |
Mesaj Tarihi 21-02-2010 15:56
|

Kıdemli Üye

Mesaj Sayısı: 1482
Katılım Tarihi: 02.01.10
|
Kardeş destek reklamları yazısı resimden ayrı ütt blokta olsun istiyorum. Öyle daha güzel görünecek.
Akıl süsü dil, dil süsü sözdür. İnsanın süsü yüz, yüzün süsü gözdür. İnsan sözünü diliyle söyler. Sözü iyi olursa yüzü parlar. (Kutadgu Bilig, Yusuf Has Hacip)
 |
| |
|
|
| chatlaq |
Mesaj Tarihi 21-02-2010 17:50
|

Yönetici

Mesaj Sayısı: 1139
Katılım Tarihi: 31.12.09
|
o zaman bunu kullan üste bir satır eklendi.
Kod//reklam kodları başladı
if ($current_row == 1 && (!isset($_GET['rowstart']) || isset($_GET['rowstart']) && $_GET['rowstart'] == 0)) {
echo '<tr><td class="tbl2" style="padding:6px;">';
echo '<span style="font-size:11px;">Destek Reklamları</span>';
echo '</td>';
echo '<td class="tbl2" style="padding:6px;">';
?>Destek için aşağıdaki reklama tıklayınız.<br>
<?php
echo '</td></tr>';
echo '<tr><td class="tbl2" style="padding:6px;">';
echo '<img src="http://t0.gstatic.com/images?q=tbn:uJb8lJkOZN-40M:http://anhblog.net/Images/google-adsense.jpg" alt="adsense"/>';
echo '</td>';
echo '<td class="tbl2" style="padding:6px;">';
?>
<script type='text/javascript'><!--
google_ad_client = 'pub-6288351569065210';
/* 728x90, oluşturulma 22.01.2008 */
google_ad_slot = '9063099852';
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
<?php
echo '</td></tr>';
}
//reklam kodları bitti
Düzenleyen chatlaq Düzenleme Tarihi: 21-02-2010 17:55 |
| |
|
|
| Mehmet |
Mesaj Tarihi 21-02-2010 19:01
|

Kıdemli Üye

Mesaj Sayısı: 1482
Katılım Tarihi: 02.01.10
|
Eline sağlık chatlaq kardeşim. Teşekkürler.
Akıl süsü dil, dil süsü sözdür. İnsanın süsü yüz, yüzün süsü gözdür. İnsan sözünü diliyle söyler. Sözü iyi olursa yüzü parlar. (Kutadgu Bilig, Yusuf Has Hacip)
 |
| |
|
|
| kardelenkurt |
Mesaj Tarihi 09-03-2010 15:35
|

Üye

Mesaj Sayısı: 274
Katılım Tarihi: 01.01.10
|
Kod$current_row++;
özür dilerim ama üzerine derken bunu silip mi yapacağız, yoksam bu kodun bi üst satırına mı ekleyeceğiz? Teşekkürler |
| |
|
|
| chatlaq |
Mesaj Tarihi 09-03-2010 16:02
|

Yönetici

Mesaj Sayısı: 1139
Katılım Tarihi: 31.12.09
|
kardelenkurt tarafından yazılan metin:
Kod$current_row++;
özür dilerim ama üzerine derken bunu silip mi yapacağız, yoksam bu kodun bi üst satırına mı ekleyeceğiz? Teşekkürler
silmeden bir satır üzerine ekleyeceksin |
| |
|
|
| kardelenkurt |
Mesaj Tarihi 09-03-2010 16:08
|

Üye

Mesaj Sayısı: 274
Katılım Tarihi: 01.01.10
|
teşekkürler... |
| |
|
|
| kardelenkurt |
Mesaj Tarihi 09-03-2010 16:13
|

Üye

Mesaj Sayısı: 274
Katılım Tarihi: 01.01.10
|
herşeyi yaptım ama forumda hiç bir değişiklik yok. Bu stili kullanıyorum ama olmadı?
Kod<?php
/*
fusionBoard 4.0
php-Invent Team
http://www.php-invent.com
Developer: Ian Unruh (SoBeNoFear)
ianunruh@gmail.com
*/
opentable($locale['500']);
echo "<!--pre_forum_thread-->\n";
renderNav(false, $announcementCheck);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>";
if (($rows > $posts_per_page) || ($can_post || $can_reply)) {
echo "<td align='left' style='padding:0px 0px 4px 5px;white-space:nowrap;' width='1%'>\n";
if (iMEMBER && ($can_post || $can_reply)) {
if (!$fdata['thread_locked'] && $can_reply) {
echo "<a href='post.php?action=reply&forum_id=".$fdata['forum_id']."&thread_id=".$_GET['thread_id']."'><img src='".get_image("reply")."' alt='".$locale['565']."' style='border:0px' /></a> \n";
}
if ($can_post) {
echo "<nobr><a href='post.php?action=newthread&forum_id=".$fdata['forum_id']."'><img src='".get_image("newthread")."' alt='".$locale['566']."' style='border:0px' /></a> \n";
}
echo "</td><td>";
}
if ($rows > $posts_per_page) {
echo "<nobr>".makePageNav($_GET['rowstart'],$posts_per_page,$rows,3,FUSION_SELF."?thread_id=".$_GET['thread_id']."&")."";
}
echo "</td>";
}
echo "<td style='text-align:right;'>";
renderTools();
echo "</td>
</tr></table><br />";
if ($rows != 0) {
if ($_GET['rowstart'] == 0 && $fdata['thread_poll'] == "1") {
if (iMEMBER) {
$presult = dbquery(
"SELECT tfp.*, tfv.forum_vote_user_id FROM ".DB_FORUM_POLLS." tfp
LEFT JOIN ".DB_FORUM_POLL_VOTERS." tfv
ON tfp.thread_id=tfv.thread_id AND forum_vote_user_id='".$userdata['user_id']."'
WHERE tfp.thread_id='".$_GET['thread_id']."'"
);
} else {
$presult = dbquery(
"SELECT tfp.* FROM ".DB_FORUM_POLLS." tfp
WHERE tfp.thread_id='".$_GET['thread_id']."'"
);
}
if (dbrows($presult)) {
$pdata = dbarray($presult); $i = 1;
if (iMEMBER) { echo "<form name='voteform' method='post' action='".FUSION_SELF."?forum_id=".$fdata['forum_id']."&thread_id=".$_GET['thread_id']."'>\n"; }
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border' style='margin-bottom:5px'>\n<tr>\n";
echo "<td align='center' class='tbl2'><strong>".$pdata['forum_poll_title']."</strong></td>\n</tr>\n<tr>\n<td class='tbl1'>\n";
echo "<table align='center' cellpadding='0' cellspacing='0'>\n";
$presult = dbquery("SELECT * FROM ".DB_FORUM_POLL_OPTIONS." WHERE thread_id='".$_GET['thread_id']."' ORDER BY forum_poll_option_id ASC");
$poll_options = dbrows($presult);
while ($pvdata = dbarray($presult)) {
if ((iMEMBER && isset($pdata['forum_vote_user_id']) || (!$fdata['forum_vote'] || !checkgroup($fdata['forum_vote'])))) {
$option_votes = ($pdata['forum_poll_votes'] ? number_format(100 / $pdata['forum_poll_votes'] * $pvdata['forum_poll_option_votes']) : 0);
echo "<tr>\n<td class='tbl1'>".$pvdata['forum_poll_option_text']."</td>\n";
echo "<td class='tbl1'><img src='".get_image("pollbar")."' alt='".$pvdata['forum_poll_option_text']."' height='12' width='".(200 / 100 * $option_votes)."' class='poll' /></td>\n";
echo "<td class='tbl1'>".$option_votes."%</td><td class='tbl1'>[".$pvdata['forum_poll_option_votes']." ".($pvdata['forum_poll_option_votes'] == 1 ? $locale['global_133'] : $locale['global_134'])."]</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='tbl1'><label><input type='radio' name='poll_option' value='".$i."' style='vertical-align:middle' /> ".$pvdata['forum_poll_option_text']."</label></td>\n</tr>\n";
$i++;
}
}
if ((iMEMBER && isset($pdata['forum_vote_user_id']) || (!$fdata['forum_vote'] || !checkgroup($fdata['forum_vote'])))) {
echo "<tr>\n<td align='center' colspan='4' class='tbl1'>".$locale['480']." : ".$pdata['forum_poll_votes']."</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='tbl1'><input type='submit' name='cast_vote' value='".$locale['481']."' class='button' /></td>\n</tr>\n";
}
echo "</table>\n</td>\n</tr>\n</table>\n";
if (iMEMBER) { echo "</form>\n"; }
}
}
}
$result = dbquery(
"SELECT p.*, u.*, u2.user_name AS edit_name
FROM ".DB_POSTS." p
LEFT JOIN ".DB_USERS." u ON p.post_author = u.user_id
LEFT JOIN ".DB_USERS." u2 ON p.post_edituser = u2.user_id AND post_edituser > '0'
WHERE p.thread_id='".$_GET['thread_id']."' ORDER BY post_datestamp LIMIT ".$_GET['rowstart'].",$posts_per_page"
);
if (iMOD) { echo "<form name='mod_form' method='post' action='".FUSION_SELF."?thread_id=".$_GET['thread_id']."&rowstart=".$_GET['rowstart']."'>\n"; }
add_to_title($locale['global_201'].$fdata['thread_subject']);
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
$numrows = dbrows($result);
$current_row = 1;
while ($data = dbarray($result)) {
$message = $data['post_message'];
if ($data['post_smileys']) { $message = parsesmileys($message); }
if ($current_row > 1) { echo "<tr>\n<td colspan='2' class='tbl1' style='height:10px'></td>\n</tr>\n"; }
echo "<tr>\n<td class='tbl2 small' style='width:140px; padding:6px;' nowrap='nowrap'>".timePassed($data['post_datestamp'])."</td>\n";
echo "<td class='tbl2' style='padding:6px;'><div style='float:right' class='small'><a href='#post_".$data['post_id']."' name='post_".$data['post_id']."' id='post_".$data['post_id']."'>#".($current_row+$_GET['rowstart'])."</a></div>\n";
if($fb4['post_icons'] && $current_row == "1"){
$post_res = dbquery("select * from ".DB_PREFIX."fb_posts where post_id='".$data['post_id']."'");
if(dbrows($post_res)){
$post_data = dbarray($post_res);
if($post_data['post_icon']){
$ficon = "<img src='".INFUSIONS."fusionboard4/images/post_icons/".$post_data['post_icon']."' alt='' style='vertical-align:middle;'> ";
} else {
$ficon = "<img src='".INFUSIONS."fusionboard4/images/post_icons/page_white.png' alt='' style='vertical-align:middle;'> ";
}
} else {
$ficon = "<img src='".INFUSIONS."fusionboard4/images/post_icons/page_white.png' alt='' style='vertical-align:middle;'> ";
}
} else {
$ficon = "";
}
echo "$ficon".($current_row > 1 ? "RE: " : "").($announcementCheck ? $locale['fb902'] : "")."
<strong><!--forum_thread_title-->".trimlink($fdata['thread_subject'], 40);
if ($data['post_edittime'] != "0") {
$r = dbquery("select * from ".$db_prefix."fb_posts where post_id='".$data['post_id']."'");
if(dbrows($r)){ $d = dbarray($r); $edit_reason = $d['post_editreason'];
} else { $edit_reason = ""; }
echo "<span class='small'";
if(isset($edit_reason) && $edit_reason !== ""){ echo " title='header=[".$locale['fb502']."] body=[$edit_reason]'"; }
echo "> | ".$locale['508']."
<a href='../profile.php?lookup=".$data['post_edituser']."'>".$data['edit_name']."</a> ".timePassed($data['post_edittime'], false);
echo "</span>\n";
}
echo "</td>\n";
echo "</tr>\n<tr>\n<td valign='top' class='tbl2' style='width:140px; padding:6px;'>\n";
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."' /><br /><br />\n";
} else {
if($fb4['no_avatar']) echo "<img src='".IMAGES."noav.gif' alt='".$locale['567']."' /><br /><br />\n";
}
echo "<span style='font-size:14px;'>
<a href='../profile.php?lookup=".$data['user_id']."'><!--forum_thread_user_name-->".showLabel($data['user_id'], false, "post")."</a></span><br /><span class='small'>";
if ($fb4['user_titles_posts'] && $fb4['user_titles']) {
$titleLookup = dbquery("select * from ".$db_prefix."fb_titles where title_id='".$data['user_title']."' and (".useraccess("title_access").")");
if(dbrows($titleLookup)){
$titleData = dbarray($titleLookup);
$title = stripslash($titleData['title_title']);
} else {
$title = stripslash($data['user_title']);
}
echo "<b>".$title."</b><br />";
}
renderMods();
echo "</span><br /><br />\n";
renderAwards($data['user_id'], "", "<br /><br />");
echo "<!--forum_thread_user_info--><span class='small'><strong>".$locale['502']."</strong> ".$data['user_posts']."</span><br />\n";
echo "<span class='small'><strong>".$locale['504']."</strong> ".showdate("%d.%m.%y", $data['user_joined'])."</span>\n";
if($data['user_location']){ echo "<br /><span class='small'><strong>".$locale['fb500'].":</strong> ".stripslash($data['user_location'])."</span>\n"; }
if($data['user_birthdate'] !== "0000-00-00"){
$birthday = explode("-", $data['user_birthdate']);
$age = (strftime("%Y") - $birthday[0]);
if(strftime("%m") < $birthday[1]){
$age--;
} elseif(strftime("%m") == $birthday[1]) {
if(strftime("%d") < $birthday[2]){
$age--;
}
}
echo "<br /><span class='small'><strong>".$locale['fb512']."</strong> $age</span>\n";
}
echo showWarning($data['user_id']);
echo "</td>\n<td valign='top' class='tbl1' style='padding:7px;'>\n";
if (iMOD) { echo "<div style='float:right'><input type='checkbox' name='delete_post[]' value='".$data['post_id']."' /></div>\n"; }
if (isset($_GET['highlight'])) {
$words = explode(" ", urldecode($_GET['highlight']));
$message = parseubb(highlight_words($words, $message));
} else {
$message = parseubb($message);
}
echo nl2br($message);
$a_result = dbquery("select * from ".$db_prefix."forum_attachments where post_id='".$data['post_id']."'");
$a_files = ""; $a_images = ""; $i_files = 0; $i_images = 0;
if(dbrows($a_result)){
while($a_data = dbarray($a_result)){
if (in_array($a_data['attach_ext'], $imagetypes) && @getimagesize(FORUM."attachments/".$a_data['attach_name'])) {
$a_images .= display_image_fb($a_data['attach_name'])."\n";
$i_images++;
} else {
if($fb4['attach_count']){
$fb_res = dbquery("select * from ".DB_PREFIX."fb_attachments where attach_id='".$a_data['attach_id']."'");
if(dbrows($fb_res)){
$fb_data = dbarray($fb_res);
$count = $fb_data['attach_count'].($fb_data['attach_count'] == "1" ? $locale['fb510'] : $locale['fb509']);
} else {
$count = "0".$locale['fb509'];
}
} else {
$count = "";
}
if($i_files > 0) $a_files .= "<br />";
$a_files .= "<a href='".FUSION_SELF."?thread_id=".$_GET['thread_id']."&getfile=".$a_data['attach_id']."'>".$a_data['attach_name']."</a> [<span class='small'>".parsebytesize(filesize(FORUM."attachments/".$a_data['attach_name']))." / ".$count."</span>]\n";
$i_files++;
}
}
if($a_files){
echo "<br /><br /><fieldset style='border:1px solid #ccc;width:320px;'>
<legend>".$locale['fb568']."</legend>
<div style='padding:3px;width:320px;'>$a_files</div>
</fieldset><br />\n";
}
if($a_images){
if(!$a_files) echo "<br /><br />\n";
echo "<fieldset style='border:1px solid #ccc;width:320px;'>
<legend>".$locale['fb567']."</legend>
<div style='padding:3px;width:320px;'>$a_images</div>
</fieldset><br />\n";
}
}
if ($data['post_showsig'] && array_key_exists("user_sig", $data) && $data['user_sig']) {
echo "\n<hr />".nl2br(parseubb(parsesmileys($data['user_sig']), "b|i|u||center|small|url|mail|img|color"));
}
echo "<!--sub_forum_post--></td>\n</tr>\n";
echo "<tr>\n<td class='tbl2' style='width:140px;white-space:nowrap'>";
if (($settings['forum_ips'] && iMEMBER) || iMOD) { echo "<strong>".$locale['571']."</strong>: ".$data['post_ip']; } else { echo " "; }
echo "</td>\n<td class='tbl2' style='padding:6px;'>";
if($fb4['show_ratings']){
postRatings($data['post_id']);
echo "<div align='right'>\n";
if(iMEMBER && $userdata['user_id'] !== $data['user_id']){
echo "<span id='rb_".$data['post_id']."'>";
showRatings($data['post_id'], $userdata['user_id'], $data['post_author'], false);
echo "</span> ";
}
} else {
echo "<div align='right'>\n";
}
if (iMEMBER && ($can_post || $can_reply) && !$fb4['buttons']) {
if ($userdata['user_id'] !== $data['user_id']) echo ":: ";
if (($settings['forum_ips'] && iMEMBER) || iMOD) { echo "<span style='font-size:9px;'>".$locale['571'].": ".$data['post_ip']."</span> :: "; } else { echo ""; }
if (!$fdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."&quote=".$data['post_id']."'>".$locale['569']."</a>\n";
if (iMOD || ($lock_edit && $last_post['post_id'] == $data['post_id'] && $userdata['user_id'] == $data['post_author']) || (!$lock_edit && $userdata['user_id'] == $data['post_author'])) {
echo " :: <a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'>".$locale['568']."</a>\n";
}
} else {
if (iMOD) {
echo "<a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'>".$locale['568']."</a>\n";
}
}
} elseif(iMEMBER && ($can_post || $can_reply)) {
if (!$fdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."&quote=".$data['post_id']."'><img src='".get_image("quote")."' alt='".$locale['569']."' style='border:0px;vertical-align:middle' /></a>\n";
if (iMOD || ($lock_edit && $last_post['post_id'] == $data['post_id'] && $userdata['user_id'] == $data['post_author']) || (!$lock_edit && $userdata['user_id'] == $data['post_author'])) {
echo "<a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'><img src='".get_image("forum_edit")."' alt='".$locale['568']."' style='border:0px;vertical-align:middle' /></a>\n";
}
} else {
if (iMOD) {
echo "<a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'><img src='".get_image("forum_edit")."' alt='".$locale['568']."' style='border:0px;vertical-align:middle' /></a>\n";
}
}
}
if(!$fb4['buttons']) { echo (iMEMBER && ($can_post || $can_reply) ? " :: " : "").showStatus($data['user_id'], false); }
else { echo (iMEMBER && ($can_post || $can_reply) ? " " : "").showStatus($data['user_id']); }
echo "</div></td>\n</tr>\n";
//reklam kodları başladı
$kacinci_mesaj=array(1,3,6,8);//kaçıncı mesajlardan sonra çıkacak
if (in_array($current_row,$kacinci_mesaj) && (!isset($_GET['rowstart']) || isset($_GET['rowstart']) && $_GET['rowstart'] == 0)) {
echo '<tr><td class="tbl2" style="padding:6px;">';
echo '<span style="font-size:11px;">Destek Reklamları</span>';
echo '</td>';
echo '<td class="tbl2" style="padding:6px;">';
?>Destek için aşağıdaki reklama tıklayınız.<br>
<script type='text/javascript'><!--
google_ad_client = 'pub-7258686162456368';
/* 468x60, oluşturulma 22.01.2010 */
google_ad_slot = '0661816556';
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
<?php
echo '</td></tr>';
}
//reklam kodları bitti
$current_row++;
}
echo "</table>\n";
?>
|
| |
|
|
| kardelenkurt |
Mesaj Tarihi 10-03-2010 00:51
|

Üye

Mesaj Sayısı: 274
Katılım Tarihi: 01.01.10
|
güncel |
| |
|
|
| chatlaq |
Mesaj Tarihi 10-03-2010 17:54
|

Yönetici

Mesaj Sayısı: 1139
Katılım Tarihi: 31.12.09
|
stilinin adı ney ona göre de ayarlıyım |
| |
|
|
| kardelenkurt |
Mesaj Tarihi 10-03-2010 17:55
|

Üye

Mesaj Sayısı: 274
Katılım Tarihi: 01.01.10
|
fusion stili usta |
| |
|
|
| chatlaq |
Mesaj Tarihi 10-03-2010 18:16
|

Yönetici

Mesaj Sayısı: 1139
Katılım Tarihi: 31.12.09
|
senin stili ben kendi sitemde denedim sorun yok resme bakabilirsin eğer hala çıkmıyorsa kendi kullandığım fusion stilini verebilirim
Düzenleyen chatlaq Düzenleme Tarihi: 10-03-2010 18:16 |
| |
|
|
| kardelenkurt |
Mesaj Tarihi 10-03-2010 20:10
|

Üye

Mesaj Sayısı: 274
Katılım Tarihi: 01.01.10
|
valla olur ustam atayım verirsen sevinirim. Teşekkürler |
| |
|
|
| chatlaq |
Mesaj Tarihi 10-03-2010 20:47
|

Yönetici

Mesaj Sayısı: 1139
Katılım Tarihi: 31.12.09
|
nasirkoyu.com'daki fusion stili
Kod<?php
/*
fusionBoard 4.0
php-Invent Team
http://www.php-invent.com
Developer: Ian Unruh (SoBeNoFear)
ianunruh@gmail.com
*/
opentable($locale['500']);
echo "<!--pre_forum_thread-->\n";
renderNav(false, $announcementCheck);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>";
if (($rows > $posts_per_page) || ($can_post || $can_reply)) {
echo "<td align='left' style='padding:0px 0px 4px 5px;white-space:nowrap;' width='1%'>\n";
if (iMEMBER && ($can_post || $can_reply)) {
if (!$fdata['thread_locked'] && $can_reply) {
echo "<a href='post.php?action=reply&forum_id=".$fdata['forum_id']."&thread_id=".$_GET['thread_id']."'><img src='".get_image("reply")."' alt='".$locale['565']."' style='border:0px' /></a> \n";
}
if ($can_post) {
echo "<nobr><a href='post.php?action=newthread&forum_id=".$fdata['forum_id']."'><img src='".get_image("newthread")."' alt='".$locale['566']."' style='border:0px' /></a> \n";
}
echo "</td><td>";
}
if ($rows > $posts_per_page) {
echo "<nobr>".makePageNav($_GET['rowstart'],$posts_per_page,$rows,3,FUSION_SELF."?thread_id=".$_GET['thread_id']."&")."";
}
echo "</td>";
}
echo "<td style='text-align:right;'>";
renderTools();
echo "</td>
</tr></table><br />";
if ($rows != 0) {
if ($_GET['rowstart'] == 0 && $fdata['thread_poll'] == "1") {
if (iMEMBER) {
$presult = dbquery(
"SELECT tfp.*, tfv.forum_vote_user_id FROM ".DB_FORUM_POLLS." tfp
LEFT JOIN ".DB_FORUM_POLL_VOTERS." tfv
ON tfp.thread_id=tfv.thread_id AND forum_vote_user_id='".$userdata['user_id']."'
WHERE tfp.thread_id='".$_GET['thread_id']."'"
);
} else {
$presult = dbquery(
"SELECT tfp.* FROM ".DB_FORUM_POLLS." tfp
WHERE tfp.thread_id='".$_GET['thread_id']."'"
);
}
if (dbrows($presult)) {
$pdata = dbarray($presult); $i = 1;
if (iMEMBER) { echo "<form name='voteform' method='post' action='".FUSION_SELF."?forum_id=".$fdata['forum_id']."&thread_id=".$_GET['thread_id']."'>\n"; }
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border' style='margin-bottom:5px'>\n<tr>\n";
echo "<td align='center' class='tbl2'><strong>".$pdata['forum_poll_title']."</strong></td>\n</tr>\n<tr>\n<td class='tbl1'>\n";
echo "<table align='center' cellpadding='0' cellspacing='0'>\n";
$presult = dbquery("SELECT * FROM ".DB_FORUM_POLL_OPTIONS." WHERE thread_id='".$_GET['thread_id']."' ORDER BY forum_poll_option_id ASC");
$poll_options = dbrows($presult);
while ($pvdata = dbarray($presult)) {
if ((iMEMBER && isset($pdata['forum_vote_user_id']) || (!$fdata['forum_vote'] || !checkgroup($fdata['forum_vote'])))) {
$option_votes = ($pdata['forum_poll_votes'] ? number_format(100 / $pdata['forum_poll_votes'] * $pvdata['forum_poll_option_votes']) : 0);
echo "<tr>\n<td class='tbl1'>".$pvdata['forum_poll_option_text']."</td>\n";
echo "<td class='tbl1'><img src='".get_image("pollbar")."' alt='".$pvdata['forum_poll_option_text']."' height='12' width='".(200 / 100 * $option_votes)."' class='poll' /></td>\n";
echo "<td class='tbl1'>".$option_votes."%</td><td class='tbl1'>[".$pvdata['forum_poll_option_votes']." ".($pvdata['forum_poll_option_votes'] == 1 ? $locale['global_133'] : $locale['global_134'])."]</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='tbl1'><label><input type='radio' name='poll_option' value='".$i."' style='vertical-align:middle' /> ".$pvdata['forum_poll_option_text']."</label></td>\n</tr>\n";
$i++;
}
}
if ((iMEMBER && isset($pdata['forum_vote_user_id']) || (!$fdata['forum_vote'] || !checkgroup($fdata['forum_vote'])))) {
echo "<tr>\n<td align='center' colspan='4' class='tbl1'>".$locale['480']." : ".$pdata['forum_poll_votes']."</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='tbl1'><input type='submit' name='cast_vote' value='".$locale['481']."' class='button' /></td>\n</tr>\n";
}
echo "</table>\n</td>\n</tr>\n</table>\n";
if (iMEMBER) { echo "</form>\n"; }
}
}
}
$result = dbquery(
"SELECT p.*, u.*, u2.user_name AS edit_name
FROM ".DB_POSTS." p
LEFT JOIN ".DB_USERS." u ON p.post_author = u.user_id
LEFT JOIN ".DB_USERS." u2 ON p.post_edituser = u2.user_id AND post_edituser > '0'
WHERE p.thread_id='".$_GET['thread_id']."' ORDER BY post_datestamp LIMIT ".$_GET['rowstart'].",$posts_per_page"
);
if (iMOD) { echo "<form name='mod_form' method='post' action='".FUSION_SELF."?thread_id=".$_GET['thread_id']."&rowstart=".$_GET['rowstart']."'>\n"; }
add_to_title($locale['global_201'].$fdata['thread_subject']);
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
$numrows = dbrows($result);
$current_row = 1;
while ($data = dbarray($result)) {
$message = $data['post_message'];
if ($data['post_smileys']) { $message = parsesmileys($message); }
if ($current_row > 1) { echo "<tr>\n<td colspan='2' class='tbl1' style='height:10px'></td>\n</tr>\n"; }
echo "<tr>\n<td class='tbl2 small' style='width:140px; padding:6px;' nowrap='nowrap'>".timePassed($data['post_datestamp'])."</td>\n";
echo "<td class='tbl2' style='padding:6px;'><div style='float:right' class='small'><a href='#post_".$data['post_id']."' name='post_".$data['post_id']."' id='post_".$data['post_id']."'>#".($current_row+$_GET['rowstart'])."</a>\n";
echo " <a href='".BASEDIR."print.php?type=F&thread=".$_GET['thread_id']."&post=".$data['post_id']."&nr=".($current_row+$_GET['rowstart'])."'><img src='".get_image("printer")."' alt='".$locale['519a']."' title='".$locale['519a']."' style='border:0;vertical-align:middle' /></a></div>\n";
if($fb4['post_icons'] && $current_row == "1"){
$post_res = dbquery("select * from ".DB_PREFIX."fb_posts where post_id='".$data['post_id']."'");
if(dbrows($post_res)){
$post_data = dbarray($post_res);
if($post_data['post_icon']){
$ficon = "<img src='".INFUSIONS."fusionboard4/images/post_icons/".$post_data['post_icon']."' alt='' style='vertical-align:middle;'> ";
} else {
$ficon = "<img src='".INFUSIONS."fusionboard4/images/post_icons/page_white.png' alt='' style='vertical-align:middle;'> ";
}
} else {
$ficon = "<img src='".INFUSIONS."fusionboard4/images/post_icons/page_white.png' alt='' style='vertical-align:middle;'> ";
}
} else {
$ficon = "";
}
echo "$ficon".($current_row > 1 ? "RE: " : "").($announcementCheck ? $locale['fb902'] : "")."
<strong><!--forum_thread_title-->".trimlink($fdata['thread_subject'], 40);
if ($data['post_edittime'] != "0") {
$r = dbquery("select * from ".$db_prefix."fb_posts where post_id='".$data['post_id']."'");
if(dbrows($r)){ $d = dbarray($r); $edit_reason = $d['post_editreason'];
} else { $edit_reason = ""; }
echo "<span class='small'";
if(isset($edit_reason) && $edit_reason !== ""){ echo " title='header=[".$locale['fb502']."] body=[$edit_reason]'"; }
echo "> | ".$locale['508']."
<a href='../profile.php?lookup=".$data['post_edituser']."'>".$data['edit_name']."</a> ".timePassed($data['post_edittime'], false);
echo "</span>\n";
}
echo "</td>\n";
echo "</tr>\n<tr>\n<td valign='top' class='tbl2' style='width:140px; padding:6px;'>\n";
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."' /><br /><br />\n";
} else {
if($fb4['no_avatar']) echo "<img src='".IMAGES."noav.gif' alt='".$locale['567']."' /><br /><br />\n";
}
echo "<span style='font-size:14px;'>
<a href='../profile.php?lookup=".$data['user_id']."'><!--forum_thread_user_name-->".showLabel($data['user_id'], false, "post")."</a></span><br /><span class='small'>";
if ($fb4['user_titles_posts'] && $fb4['user_titles']) {
$titleLookup = dbquery("select * from ".$db_prefix."fb_titles where title_id='".$data['user_title']."' and (".useraccess("title_access").")");
if(dbrows($titleLookup)){
$titleData = dbarray($titleLookup);
$title = stripslash($titleData['title_title']);
} else {
$title = stripslash($data['user_title']);
}
echo "<b>".$title."</b><br />";
}
renderMods();
echo "</span><br /><br />\n";
renderAwards($data['user_id'], "", "<br /><br />");
echo "<!--forum_thread_user_info--><span class='small'><strong>".$locale['502']."</strong> ".$data['user_posts']."</span><br />\n";
echo "<span class='small'><strong>".$locale['504']."</strong> ".showdate("%d.%m.%y", $data['user_joined'])."</span><br />\n";
echo "<span class='small'><strong>".$locale['504x']."</strong> ".$data['user_realname']."</span>\n";
if($data['user_location']){ echo "<br /><span class='small'><strong>".$locale['fb500'].":</strong> ".stripslash($data['user_location'])."</span>\n"; }
if($data['user_birthdate'] !== "0000-00-00"){
$birthday = explode("-", $data['user_birthdate']);
$age = (strftime("%Y") - $birthday[0]);
if(strftime("%m") < $birthday[1]){
$age--;
} elseif(strftime("%m") == $birthday[1]) {
if(strftime("%d") < $birthday[2]){
$age--;
}
}
echo "<br /><span class='small'><strong>".$locale['fb512']."</strong> $age</span><hr />\n";
}
echo showWarning($data['user_id']);
echo "</td>\n<td valign='top' class='tbl1' style='padding:7px;'>\n";
if (iMOD) { echo "<div style='float:right'><input type='checkbox' name='delete_post[]' value='".$data['post_id']."' /></div>\n"; }
if (isset($_GET['highlight'])) {
$words = explode(" ", urldecode($_GET['highlight']));
$message = parseubb(highlight_words($words, $message));
} else {
$message = parseubb($message);
}
//fusionboard4 adsense reklamları modifikasyonu DjGaripSofi
//echo"<br /><center>
//<script type='text/javascript'><!--
//google_ad_client = 'pub-6288351569065210';
///* 728x90, oluşturulma 22.01.2008 */
//google_ad_slot = '9063099852';
//google_ad_width = 699;
//google_ad_height = 90;
//-->
//</script>
//<script type='text/javascript'
//src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
//</script>
//</center><br />";
//fusionboard4 adsense reklamları modifikasyonu DjGaripSofi
echo nl2br($message);
$a_result = dbquery("select * from ".$db_prefix."forum_attachments where post_id='".$data['post_id']."'");
$a_files = ""; $a_images = ""; $i_files = 0; $i_images = 0;
if(dbrows($a_result)){
while($a_data = dbarray($a_result)){
if (in_array($a_data['attach_ext'], $imagetypes) && @getimagesize(FORUM."attachments/".$a_data['attach_name'])) {
$a_images .= display_image_fb($a_data['attach_name'])."\n";
$i_images++;
} else {
if($fb4['attach_count']){
$fb_res = dbquery("select * from ".DB_PREFIX."fb_attachments where attach_id='".$a_data['attach_id']."'");
if(dbrows($fb_res)){
$fb_data = dbarray($fb_res);
$count = $fb_data['attach_count'].($fb_data['attach_count'] == "1" ? $locale['fb510'] : $locale['fb509']);
} else {
$count = "0".$locale['fb509'];
}
} else {
$count = "";
}
if($i_files > 0) $a_files .= "<br />";
$a_files .= "<a href='".FUSION_SELF."?thread_id=".$_GET['thread_id']."&getfile=".$a_data['attach_id']."'>".$a_data['attach_name']."</a> [<span class='small'>".parsebytesize(filesize(FORUM."attachments/".$a_data['attach_name']))." / ".$count."</span>]\n";
$i_files++;
}
}
if($a_files){
echo "<br /><br /><fieldset style='border:1px solid #ccc;width:320px;'>
<legend>".$locale['fb568']."</legend>
<div style='padding:3px;width:320px;'>$a_files</div>
</fieldset><br />\n";
}
if($a_images){
if(!$a_files) echo "<br /><br />\n";
echo "<fieldset style='border:1px solid #ccc;width:320px;'>
<legend>".$locale['fb567']."</legend>
<div style='padding:3px;width:320px;'>$a_images</div>
</fieldset><br /><br /><br />\n";
}
}
echo "<br /><br /><br /><br /><br /><br />\n";
//imzaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
echo "<fieldset style='border:2px solid #ccc;'>";
//echo "<div>\n";
echo "<legend><a href='../profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a> imzası:</legend><br /><br>";
if ($data['post_showsig'] && array_key_exists("user_sig", $data) && $data['user_sig']) {
echo " ".nl2br(parseubb(parsesmileys($data['user_sig']), "b|i|u||center|small|url|mail|img|color"))."";
}
//echo "</div>\n";
echo "</fieldset>";
//imzaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
echo "<!--sub_forum_post--></td>\n</tr>\n";
echo "<tr>\n<td class='tbl2' style='width:140px;white-space:nowrap'>";
if (($settings['forum_ips'] && iMEMBER) || iMOD) { echo "<strong>".$locale['571']."</strong>: ".$data['post_ip']; } else { echo " "; }
echo "</td>\n<td class='tbl2' style='padding:6px;'>";
if($fb4['show_ratings']){
postRatings($data['post_id']);
echo "<div align='right'>\n";
if(iMEMBER && $userdata['user_id'] !== $data['user_id']){
echo "<span id='rb_".$data['post_id']."'>";
showRatings($data['post_id'], $userdata['user_id'], $data['post_author'], false);
echo "</span> ";
}
} else {
echo "<div align='right'>\n";
}
if (iMEMBER && ($can_post || $can_reply) && !$fb4['buttons']) {
if ($userdata['user_id'] !== $data['user_id']) echo ":: ";
if (($settings['forum_ips'] && iMEMBER) || iMOD) { echo "<span style='font-size:9px;'>".$locale['571'].": ".$data['post_ip']."</span> :: "; } else { echo ""; }
if (!$fdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."&quote=".$data['post_id']."'>".$locale['569']."</a>\n";
if (iMOD || ($lock_edit && $last_post['post_id'] == $data['post_id'] && $userdata['user_id'] == $data['post_author']) || (!$lock_edit && $userdata['user_id'] == $data['post_author'])) {
echo " :: <a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'>".$locale['568']."</a>\n";
}
} else {
if (iMOD) {
echo "<a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'>".$locale['568']."</a>\n";
}
}
} elseif(iMEMBER && ($can_post || $can_reply)) {
if (!$fdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."&quote=".$data['post_id']."'><img src='".get_image("quote")."' alt='".$locale['569']."' style='border:0px;vertical-align:middle' /></a>\n";
if (iMOD || ($lock_edit && $last_post['post_id'] == $data['post_id'] && $userdata['user_id'] == $data['post_author']) || (!$lock_edit && $userdata['user_id'] == $data['post_author'])) {
echo "<a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'><img src='".get_image("forum_edit")."' alt='".$locale['568']."' style='border:0px;vertical-align:middle' /></a>\n";
}
} else {
if (iMOD) {
echo "<a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'><img src='".get_image("forum_edit")."' alt='".$locale['568']."' style='border:0px;vertical-align:middle' /></a>\n";
}
}
}
if(!$fb4['buttons']) { echo (iMEMBER && ($can_post || $can_reply) ? " :: " : "").showStatus($data['user_id'], false); }
else { echo (iMEMBER && ($can_post || $can_reply) ? " " : "").showStatus($data['user_id']); }
echo "</div></td>\n</tr>\n";
//reklam kodları başladı
if ($current_row == 1 && (!isset($_GET['rowstart']) || isset($_GET['rowstart']) && $_GET['rowstart'] == 0)) {
echo '<tr><td class="tbl2" style="padding:6px;">';
echo '<span style="font-size:11px;">Destek Reklamları</span>';
echo '</td>';
echo '<td class="tbl2" style="padding:6px;">';
?>Destek için aşağıdaki reklama tıklayınız.<br>
<?php
echo '</td></tr>';
echo '<tr><td class="tbl2" style="padding:6px;">';
echo '<img src="http://t0.gstatic.com/images?q=tbn:uJb8lJkOZN-40M:http://anhblog.net/Images/google-adsense.jpg" alt="adsense"/>';
echo '</td>';
echo '<td class="tbl2" style="padding:6px;">';
?>
<script type='text/javascript'><!--
google_ad_client = 'pub-6288351569065210';
/* 728x90, oluşturulma 22.01.2008 */
google_ad_slot = '9063099852';
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
<?php
echo '</td></tr>';
}
//reklam kodları bitti
$current_row++;
}
echo "</table>\n";
?>
|
| |
|