Afriwap.com

Internet Biz / Webmasters => Wap & web script => SMF => Topic started by: Timi Dapsin on December 31, 2013, 10:25:56 AM

Title: How to add adverts/html code to smf first post
Post by: Timi Dapsin on December 31, 2013, 10:25:56 AM
Many people dont know how to add adverts / Html code to Smf first post, the advert / html code would be shown only on the first post.
Follow the below steps

1. if you wish your advert to appear before the post such as mine


log in your  cpanel>>public_html >>Themes >>default >>Display.template.php
Code: [Select]
', $message['body'], '

Add before
Code: [Select]
   ';
      if ($message['id'] == $context['first_message'])
echo '
YOUR ADVERT CODE<br />';echo '
AN EXAMPLE Below
Here we placed adsense at the top of the first post

(https://lh6.googleusercontent.com/-vOL1EjUlO_I/UG4mw0lur_I/AAAAAAAAANo/quknNCiv0ww/s730/Capture.PNG)

2. if you want your advert to appear after the post

log in your  cpanel>>public_html >>Themes >>default >>Display.template.php
Code: [Select]
', $message['body'], '
Add after
Code: [Select]
   ';
      if ($message['id'] == $context['first_message'])
echo '
YOUR ADVERT CODE<br />';echo '
copied from http://www.topnichez.com
ALWAYS SHARE WITH FRIENDS. do not be Selfish  (http://topnichez.com/Smileys/popos/smiley.gif)
Ask you questions below