Thread: Show Thread Enhancements - Innovative Ads After First Post (Or any post!)
View Single Post
  #2  
Old 25 Aug 2010, 04:21
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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: http://www.vbulletin.org/forum/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

Originally Posted by karlm View Post
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?
Originally Posted by TheLastSuperman View Post
Hmm you should be able to, open the template postbit_legacy_ads_after_firstpost and find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 .
Originally Posted by karlm View Post
Oooooor, I might want it so it's always the 'last but one' post..?
Originally Posted by TheLastSuperman View Post
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
__________________
Daddy Does Dios and Figs!
https://www.linkedin.com/in/thelastsuperman

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!

Last edited by TheLastSuperman; 28 Aug 2010 at 19:34.
Reply With Quote