1 sayfadan 1. sayfa

Mesaj İçinde Reklam

İletiTarih: 13.05.2007, 19:13
CrazYAngeR
Eğer yanlışım yoksa bu mod ile extreme styles a gerek kalmadan mesaj içine reklam koyabilirsiniz.

'MESSAGE' => '<div align="center">Ad code here</div>', olanda "Ad code here" yer,ne reklam kodunuz yazın yeter :$
Kod: Tümünü seç
#############################################################################################################
## MOD Title:  Adverts In Posts
## MOD Author: Dale Rodgers < dalerodgers38@hotmail.com > (Dale Rodgers) http://www.tntboards.com
## MOD Description: Automatically displays an advert in a topic as a post.
## MOD Version : 1.3.7
##
## Installation Level : Easy
##
## Installation Time  : ~30 Secs
##
## Files To Edit :    viewtopic.php   
##
##       
## Included Files :     None
##                     
##
############################################################################################################
## For Security Purposes, Please Check: http://www.phpbbhacks.com/allhacks.php for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbbhacks.com/allhacks.php
############################################################################################################
## Author Notes:
## This MOD was made to have adverts on your forum without ruining the design or looking nasty.
##   
##      - Abilty to change the advert
##          - Ability to change how many ads are displayed per topic
############################################################################################################
## Other Notes:
## You need to replace Ad Code Here with your ad code.
############################################################################################################
############################################################################################################
## MOD History:
##
##
##   2005-02-06 - Version 1.3.7
##      - First release of the MOD
##
##
############################################################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
############################################################################################################


#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
   $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
   $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

#
#-----[ REPLACE WITH ]------------------------------------------
#
   $row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
   $row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
   $num ++;

#
#-----[ FIND ]------------------------------------------
#
      'U_POST_ID' => $postrow[$i]['post_id'])
   );

#
#-----[ AFTER, ADD ]------------------------------------------
#
   if($i == $ad_after)
   {
      $row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
      $row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
      $num ++;

      $mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#ad';
      $template->assign_block_vars('postrow', array(
         'ROW_COLOR' => '#' . $row_color,
         'ROW_CLASS' => $row_class,
         'POST_DATE' => $post_date,
         'POST_SUBJECT' => 'Advertisement',
         'MINI_POST_IMG' => $mini_post_img,
         'POSTER_NAME' => 'Advertisement',
      'POSTER_RANK' => 'Advertiser',
         'MESSAGE' => '<div align="center">Ad code here</div>',
         'L_MINI_POST_ALT' => $mini_post_alt,
         'U_MINI_POST' => $mini_post_url,
         'U_POST_ID' => 'ad')
      );
   }

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Saygılar...,

Re: Mesaj İçinde Reklam

İletiTarih: 16.05.2007, 07:05
u.fuk
bi ümit atladım mesaja ama şu kodlardan pek mesaj içine değilde sanki ilk mesajdan sonra veya mesaj olarak reklamı göstericek gibi geldi bana;

Kod: Tümünü seç
      'POSTER_NAME' => 'Advertisement',
      'POSTER_RANK' => 'Advertiser',

şunlara bakılırsa.

Re: Mesaj İçinde Reklam

İletiTarih: 16.05.2007, 20:11
CrazYAngeR
Vermiş olduğun kodlar. Şu anlama geliyor...

Şana şöyle anlatayım. Bu reklam bölümü standart post alanı gibi çıkartıyor. Yani solda mesaj bölümü sağda ise kullanıcı resmi adı ve rütbesi gibi. Aynı o tarz düşünün.

Re: Mesaj İçinde Reklam

İletiTarih: 23.07.2007, 09:48
DsByOkTaY
sağoL ama avatar ekleme şansımız yok mu buna ?

Re: Mesaj İçinde Reklam

İletiTarih: 27.07.2007, 17:01
phpBB_Hastası
DsByOkTaY yazdı:sağoL ama avatar ekleme şansımız yok mu buna ?


denedim, çalışmamasına imkan yok. :)

Kod: Tümünü seç
[ BUL ]

'POSTER_RANK' => 'Advertiser',       

[ SONRASINA, EKLE ]

'POSTER_AVATAR' => '<img src="avatar resminin linki">',

[ KAYDET / KAPAT ]


Olma İhtimali : % 100 (denedim, çalışıyor.)
Olmama İhtimali : % 0

Re: Mesaj İçinde Reklam

İletiTarih: 17.11.2007, 04:39
fatihbaz
vbulletin forumlarındaki gibi ilk mesaja güzelce reklam ekleyen mod çıkmadı mı daha :D