FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


how do I put AdSense (google) on a phpBB forum?





Mamsaac
anything I have to do that is different from the other parts of my site?
Hobbit
I love this question. Just edit overall_header.tpl or overall_footer.tpl, depending on where you want the ads. That's basically the standard, but you can include ads basically anywhere.
Scorpio
Thank you Hobbit, I too love this question

But here I am posting a code to insert ads in between the posts in a topic like frihost

This is courtesy no0bie4life:

n0obie4life wrote:
Open viewtopic.php

Find
Code:
$template->assign_block_vars('postrow', array(


Before Add

Code:
if ( ($i < 2) && ($i > 0) )
{
   $advert = '<table align="center" width="100%"><tr><td class="row2" width="100%">ADVERT CODE HERE</td></tr></table>';
}
else
{
   $advert = '';
}


After Add
Code:
'ADVERT'      => $advert,


Save the viewtopic.php file.

Open up templates/subSilver/viewtopic_body.tpl

FIND

Code:
<!-- END postrow -->


BEFORE ADD

Code:
{postrow.ADVERT}


of course, change the value of

Code:
if ( ($i < 2) && ($i > 0) )
if needed Wink
Mamsaac
wow. Nice.

and good to know you loved the question... I thought it had been asked many times and that you would hate me for asking it, but I coudln't find anything on it.

Oh, and I heard from a friend, that if you enter to AdSense from an AdSense ad on a site, the owner of the site gets 100 bucks, is that true?
Stubru Freak
Mamsaac wrote:
wow. Nice.

and good to know you loved the question... I thought it had been asked many times and that you would hate me for asking it, but I coudln't find anything on it.

Oh, and I heard from a friend, that if you enter to AdSense from an AdSense ad on a site, the owner of the site gets 100 bucks, is that true?


Yes, from the moment the new adsense user makes $100, the person who referred him also gets $100. Or something similar. You have to use the special ads however, just check your adsense account.
Related topics
help add admin in phpbb forum
i cant load my phpbb forum
phpBB Forum Edit ??
How to change the language of a phpbb forum
Google ads invoegen in phpbb forum
Who can setup my phpBB forum for me ?
phpBB forum
how to install phpbb forum?
Help me put adsense on Forum 100 Frih$!!!!
Put the last 10 topics from my phpBB forum on the index page
phpBB forum in middle of site???
phpBB Forum.. How to Delete Spammers..
ADS ON PHPBB FORUM
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.