![]() |
Make your adsense look like a post! With Referals, forum exclusion and more!
Hey,
This will let you show your add after x posts, put a referal box as a false avatar, and show a 336x280 banner. Please note this has been made for my skin (legacy). You will have to alter this i think. Add this at the end of your postbit template: Code:
<!-- START ADSENSE REVENUE --> <if condition="THIS_SCRIPT == 'showthread'AND ($post[postid] == $GLOBALS['qrlastpostid']) AND (!in_array($forum[forumid], array(2,3,32)))"> In the array() you put the forums where you don't want to show the ads. Here (($post[postid] == $GLOBALS['qrlastpostid'])) you choose where to show it. Use $GLOBALS['qrlastpostid'] to show it at the end of all the posts, $GLOBALS['qrfirstpostid'] to show it after the first post, or you can use a number. For the picture blocks use <img src="random.php"> to where ever random.php is. Please remember to update the settings for random.php. I reccomend you use a table to put your ads in. If you want to show the ads only where there is more than 1 post use: Code:
AND ($post['postcount'] > 1) Code:
<if condition="THIS_SCRIPT == 'showthread'AND ($post[postid] == $GLOBALS['qrlastpostid']) AND (!in_array($forum[forumid], array(2,3,32))) AND ($post['postcount'] > 1)"> Code:
AND (!$show[member]) Code:
<if condition="THIS_SCRIPT == 'showthread'AND ($post[postid] == $GLOBALS['qrlastpostid']) AND (!in_array($forum[forumid], array(2,3,32))) AND ($post['postcount'] > 1) AND (!$show[member])"> |
Please make sure you change your adsense ID where it tells you to!
Please note: I reccomend you put it at the end. In some cases, the quick reply after the adsense code may not work. |
installed..working great
|
Hey,
Thanks for the install. If you want, i can give you those random picture blocks. They increase your page CTR by 30-40% i've been told. |
yes please,that would be great
|
Hey,
I've added them. I've only added the .gifs as those were transparent. You can add more. And remember to edit the random.php. |
where is random.php
|
got it,but what to add in the above code ?
|
just use somthing like
<table align="left"><tr><td align="left"><img src="path/to/random.php"></td><td align="left">ADSENSECODE HERE</td></tr></table> |
Thank you, works great! :)
|
All times are GMT. The time now is 02:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|