![]() |
Quote:
|
Quote:
PHP Code:
|
Quote:
|
you want to display this only after first post right ? Just apply below template conditional
PHP Code:
|
cool idea. it works for me..
thanks |
Quote:
Great simple mod that only requires an easy addition of code. Great work! One last question: If you have edited the code to display ads on threads both after the first post AND the last post... when a thread is brand new and there is ONLY one post you get two Google AdSense ads back to back. Is there a way to disable the "second" or "last" container so that it does not show an ad if there is only one post in a thread? |
Try this, I have not tested the code, so please let me know. :)
(Alter the post count ($tbworld_postbit_postcount >= 3) to what suits you.) HTML Code:
// Revised Last Post Advert PHP Code:
|
Quote:
So far what i am seeing is that it is no longer showing the "last_post_advert" on single post threads, but it is also not showing it on ones that have 3+ posts. |
Quote:
Product: vbulletin Hook Location: postbit_display_complete Title: Postbit Post-Per-Page Counter <-- or whatever Execution Order: 5 Plugin PHP Code: PHP Code:
This is just a simple counter that counts post per page. |
So what should be happening is that in the "islastshown" conditional, I have added an additional check to see if the post count on that page is equal or greater than 3. If it is not then do not show the ad. Simple.
|
All times are GMT. The time now is 01:47 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:
|