Top Hosting Forum

WebHosting Reviews Forum


PHPBB: How to Add Adsense to the first post

PHPBB forum script Discussion. PHPBB Questions, Troubleshooting, Errors, Mods and so on..
Hosting Forum Description
PHPBB forum script Discussion. PHPBB Questions, Troubleshooting, Errors, Mods and so on..

PHPBB: How to Add Adsense to the first post

Postby hostingforum » Tue Apr 10, 2012 5:27 pm

Hi there, here is the guide for PHPBB forum owners who would like to add Adsense Ad into every first post (under post or above). You can also add any other banner or code there.

Just open your FTP client like Total Commander or Filezilla and login to your forum account. Now go to /styles/yourstylename/template and edit file "viewtopic_body.html".

In this file find "<div class="content">{postrow.MESSAGE}</div>" (Ctrl + F)
This code makes the post text appear. If you want to add Adsense below the post, add the code below this, if adsense needs to be above first post text, add the Adsense code above it.

<!-- IF postrow.S_FIRST_ROW == 2 -->
Your Adsense or other banner code
<!-- ENDIF -->

Save the file and upload.
Then login into your PHPBB administration and purge the cache. It is last button on the admin home page after login.

Does it work for you? :mt



Ad: There You can have your forum site-wide banner/text ad for $19 monthly. Contact admin


Top Hosting Forum - Welcome
Gtalk: mercedesslr1, Skype: suprman41, YM: Brothercz, ONLINE CHAT
User avatar
hostingforum
Site Admin
 
Posts: 640
Joined: Fri May 20, 2011 7:58 pm
Location: Czech Republic

Return to PHPBB

Who is online

Users browsing this forum: No registered users and 0 guests

.

cron