![]() |
Show Ads After post number "x" and "x"
This is a very simple template modification have similar to adsence hack and the random postbit advert hack. But you have more control with this hack as you change the option for where the adverts will appear "after which message"
Add This code to the bottom of your postbit template. Here is the code: Code:
<if condition="$post[postcount]==1"> Code:
<if condition="$post[postcount]==1"> Also there is another way for doing this: Code:
<if condition="in_array($post['postcount'], array(1, 5, 10, 15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100))"> |
You could combine them all into one.
Code:
<if condition="$post[postcount]==1 OR $post[postcount]==10 OR $post[postcount]==20"> |
yeah, thanks for that. But i've got different codes for each one. that would be fine for 1 standard adverts of the same.
|
Thanks for sharing. Could you please put your instructions in a .txt file and attach it also? Thanks.
|
Thanks man.
|
This works better for me :
Code:
<if condition="$post[postcount] == 1"> |
Yet another way to do this:
Code:
<if condition="in_array($post['postcount'], array(1, 5, 10, 15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100))"> Enjoy |
It did not work in postbit template so put it into postbit_legacy and works fine
|
Quote:
I installed also this but adsense does not show |
works fine here, make sure you're in one of the usergroups that actually shows this, and it should work fine.
Also, make sure that you replace all the google stuff with your own google code and settings, that could be part of it as well. I've been running like this for a while, had no problems with it at all :) |
All times are GMT. The time now is 01:57 PM. |
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:
|