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


Better AD "showing"





n0obie4life
Hmm, didn't know what is good for the subject.

Anyway, this tweak I found floating around enables ads to go in the middle of the first post.

So its like first post, then ad, then second post...and no more ads until the next page Very Happy.

Here goes :

[OPEN]
viewtopic.php

[FIND]

$template->assign_block_vars('postrow', array(

[REPLACE WITH]

if ( ($i < 2) && ($i > 0) )
$google_ads = '<table align="center" width="100%"><tr><td class="row2" width="100%">GOOGLE CODES HERE</td></tr></table>';
else
$google_ads = '';

$template->assign_block_vars('postrow', array(
'GOOGLE' => $google_ads,

[OPEN]
viewtopic_body.tpl

[FIND]
<!-- END postrow -->

[BEFORE, ADD]
{postrow.GOOGLE}

EoM


In this line

$google_ads = '<table align="center" width="100%"><tr><td class="row2" width="100%">GOOGLE CODES HERE</td></tr></table>';

replace the

GOOGLE CODES HERE with the google code or the ad code.[/quote]
Bondings
We already have an ad between the first and second post.
n0obie4life
Bondings wrote:
We already have an ad between the first and second post.


That means I'm blind. I never noticed it.
Related topics
Which ad program is better?
Google ads in phpbb2
Site Map
Oxado - Pay per Click
Frihost web hosting features you wish in the second year
who heard DANI CALIFORNIA
How can i restore data encrypted in winxp?( 50 FRIH$ )
Athlon 64 X2 vs Intel Core-Duo
Do you have a soul?
Any advertising tips?
Does someone want to use my signature space for free
Planning you site around Key words to earn adsence dollars
Number of Facebook 'Friends' Does Not Matter
Beijing tries to push beyond 'Made in China' status to find
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> General -> Suggestions

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