How to Customize the Template:
I will update this as questions are posted.
Currently the mod shows these Ads to Guest and Members, to show this only to Members OR Guest edit the template postbit_legacy_ads_after_firstpost and find:
Code:
<vb:if condition="$show['guest'] OR $show['member']">
Remove the $show['guest'] and the OR to show this to Members only.
Remove the OR and the $show['member'] to show this to Guest only.
Currently the mod has a link to REGISTER on your site as the post title per say, to change this link if your NOT showing this to Guest Only edit the same template as above and find:
Code:
<span class="innovativetitle"><a href="register.php">Register to remove these Ads!</a></span>
Replace the <a href="register.php">Register to remove these Ads!</a> with your link OR text.
- Please see post #'s 6 & 7 for codes to display this after a certain post on each page not simply after the first post!
- More information on vB4 Conditionals can be found here: https://vborg.vbsupport.ru/showthread.php?t=231525 Special thanks should go to BBR-APBT for taking the time to write that article.
How to locate the templates:
AdminCP > Styles & Templates > Style Manager > *Select Edit Templates in the drop-down for your style. While scrolling through the templates some are titles for a group of templates so we have added two new templates by installing this mod and they are located within the CSS Templates and the Posbit Templates "Families".
In the Postbit Templates find the template postbit_legacy_ads_after_firstpost to paste your AD codes or well.. anything!
In CSS Templates find the template adsafterfirstpost.css to adjust the CSS as desired.
Additional Info to add these ads after any post or before the last
Quote:
Originally Posted by karlm
Good stuffs, Clark. Can it be set so as you can choose which post # the ads go to? i.e. atm, they're forced after post #1... but What if I wanted it to be on post #9 instead?
|
Quote:
Originally Posted by TheLastSuperman
Hmm you should be able to, open the template postbit_legacy_ads_after_firstpost and find:
Code:
<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
Replace with:
Code:
<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == ?">
Replace the ? mark with the post number you want the Ads to show after and DO NOT include a trailing </vb:if> as it's already near the bottom .
Let me know if that works .
|
Quote:
Originally Posted by karlm
Oooooor, I might want it so it's always the 'last but one' post..?
|
Quote:
Originally Posted by TheLastSuperman
Well that depends on your post per page settings:
AdminCP > settings > Options > Thread Display Options (showthread) > Maximum Displayed Posts Before Page Split
So if you have that set to 20 posts per page before the split simply use the code I just posted above and change the ? mark to 19 .
Example:
Code:
<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 19">
|