Looking for Something? Search Afriwap now!!!
Add to Flipboard Magazine. | |

How to add adverts/html code to smf first post

Author Topic: How to add adverts/html code to smf first post  (Read 3411 times)

0 Members and 1 Guest are viewing this topic.

Offline Timi Dapsin

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,503
  • Today is that tomorrow you worried about yesterday
    • View Profile
How to add adverts/html code to smf first post
« 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



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  :)
Ask you questions below



« Last Edit: January 01, 2014, 02:43:04 AM by Timi Dapsin »



 


Other Topics To Read

Powered by EzPortal