




Koddakiler hakkında:###############################################
## Başlık: İlk Mesajdan Sonra Reklam
## Açıklama: Bu mod ile forumunuza açılan her başlığa, ilk mesajdan sonra reklam mesajı ekler..
##
## Kurulum Zorluğu: Kolay
## Süre: 1 dakika
## Düzenlenecek dosya: (1) viewtopic.php,
## Eklenecek dosya: (0)
###############################################
## Bunları yapmadan önce değişecek dosyaların yedeğini almayı unutmayın.
## Koddaki renkli yerleri değiştirebilirsiniz..
###############################################
#
#-----[ Aç ]------------------------------------------
#
viewonline.php
#
#-----[ Bul ]------------------------------------------
#
for($i = 0; $i < $total_posts; $i++)
#
#-----[ Öncesine Ekle ]------------------------------
#
$num_post = 0;
#
#-----[ Bul ]------------------------------------------
#
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ Bununla Değiştir ]---------------------------
#
$row_color = ( !($num_post % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($num_post % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$num_post ++;
#
#-----[ Bul ]------------------------------------------
#
}
$template->pparse('body');
#
#-----[ Öncesine Ekle ]------------------------------
#
if($i == 0)
{
$row_color = ( !($num_post % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($num_post % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$num_post ++;
$message = 'Google Adsense Kodunuzu Buraya Kopyalayın';
$template->assign_block_vars('postrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'POSTER_NAME' => 'Google',
'POSTER_RANK' => 'Google Adsense',
'POSTER_AVATAR' => '<img src="http://www.google.com.tr/intl/tr/logos/Logo_40wht.gif">',
'POST_DATE' => 'Belirtilmedi',
'POST_SUBJECT' => 'Sponsor Bağlantı',
'MESSAGE' => $message,
'MINI_POST_IMG' => $mini_post_img,
'U_POST_ID' => '0'
));
}
#
#-----[ Bitti ]------------------------------------------
#
Dosyayı kaydedin ve sitenizdeki ile değiştirin.
Google Adsense Kodunuzu Buraya Kopyalayın, zaten gayet açık..
Google, mesajdaki kullanıcı nick'i..
Google Adsense, mesajdaki kullanıcı rütbesi..
Belirtilmedi, mesaj tarihi..
Sponsor Bağlantı, mesaj konusu..
<img src="http://www.google.com.tr/intl/tr/logos/Logo_40wht.gif">, kullanıcı avatarı
Bu kod Google Adsense için özelleştirilmiştir. Renkli yerleri değiştirerek kodunuzu başka reklamlar için de kullanabilirsiniz. Örneğin;
###############################################
## Başlık: İlk Mesajdan Sonra Reklam
## Açıklama: Bu mod ile forumunuza açılan her başlığa, ilk mesajdan sonra reklam mesajı ekler..
##
## Kurulum Zorluğu: Kolay
## Süre: 1 dakika
## Düzenlenecek dosya: (1) viewtopic.php,
## Eklenecek dosya: (0)
###############################################
## Bunları yapmadan önce değişecek dosyaların yedeğini almayı unutmayın.
## Koddaki renkli yerleri değiştirebilirsiniz..
###############################################
#
#-----[ Aç ]------------------------------------------
#
viewonline.php
#
#-----[ Bul ]------------------------------------------
#
for($i = 0; $i < $total_posts; $i++)
#
#-----[ Öncesine Ekle ]------------------------------
#
$num_post = 0;
#
#-----[ Bul ]------------------------------------------
#
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ Bununla Değiştir ]---------------------------
#
$row_color = ( !($num_post % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($num_post % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$num_post ++;
#
#-----[ Bul ]------------------------------------------
#
}
$template->pparse('body');
#
#-----[ Öncesine Ekle ]------------------------------
#
if($i == 0)
{
$row_color = ( !($num_post % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($num_post % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$num_post ++;
$message = '<a href="http://www.reklamveren.com" target="_blank"><img src="http://www.kendisiten.com/images/reklam.gif"></a>';
$template->assign_block_vars('postrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'POSTER_NAME' => 'Kendi Siten',
'POSTER_RANK' => 'Reklam Botu',
'POSTER_AVATAR' => '<img src="http://www.kendisiten.com/images/avatar.gif">',
'POST_DATE' => 'Belirtilmedi',
'POST_SUBJECT' => 'Reklam Alanı',
'MESSAGE' => $message,
'MINI_POST_IMG' => $mini_post_img,
'U_POST_ID' => '0'
));
}
#
#-----[ Bitti ]------------------------------------------
#
Dosyayı kaydedin ve sitenizdeki ile değiştirin.