The Arcive of vBulletin Modifications Site. |
|
New Ad Location - Below Postbit Signature Details »»
|
|||||||||||||||||||||||||||||
|
New Ad Location - Below Postbit Signature
Developer Last Online: Mar 2013
What it does?
Have you wanted to add a new Ad Location below the signature in each Postbit where you can place text ads or banner ads? File Edits: 2 Template Edits: 2 New Templates: 1 *** This has only been tested with vBulletin 3.8.1. *** Instructions 1. Make a backup of your Class_Postbit.php and your Showthread.php. 2. Open the Class_Postbit.php in your forum includes folder and look for: PHP Code:
2. Add the following code below it: PHP Code:
4. Log into your AdminCP, and go to: Styles & Templates => Styles Manager => Master Style => Add New Template Product: vbulletin Title: ad_showthread_below_sig Template: HTML Code:
<br /> <div align="center" class="smallfont"> This is a test ad below everyone's signature<br /> <a href="http://www.mydomain.com/register.php" target="_self">Sign Up Now To Remove These Ads</a> </div> 5. Save your new template. 6. Now, make the following edit to your Postbit and Postbit Legacy templates: Find: Code:
$template_hook[postbit_signature_end]
Code:
$ad_location[ad_showthread_below_sig]
9. Open showthread.php in the forum root folder and look for: PHP Code:
"'ad_showthread_firstpost_start'," and "'forumdisplay_loggedinuser'," which should look like this when done: PHP Code:
11. Upload your edited showthread.php to your forum's root folder, and class_postbit.php file to your forum's includes folder overwriting the existing file. Optional: If you use an ad rotation system such as OpenX, you may need to create a new plugin using the "postbit_display_start" hook for the ad to show up. If you have questions, let me know and I'll try to help as much as I can. Make sure you Click Install if you use this!!! Screenshots
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
*** Reserved ***
|
|
#3
|
|||
|
|||
|
*** Reserved ***
but nothing happen ! |
|
#4
|
||||
|
||||
|
What version of vBulletin do you have installed? Also, what type of ad did you put in the ad location?
|
|
#5
|
||||
|
||||
|
Same here...nothing happend (i'm unning a vB 3.8.1 board)
|
|
#6
|
||||
|
||||
|
Are you using the sample template content I posted in the hack or something else? if you put in some plain text it should show up. It didn't show up for me at first until the template was recached.
|
|
#7
|
||||
|
||||
|
Ok.. I've been able to replicate the issue and will post a fix shortly.
Edit: I left out the step where you need to add the $ad_location[ad_showthread_below_sig] to the Postbit and Postbit Legacy templates. 1. Open your Admincp and go to : Styles & Templates => Style Manager => Master Style => Edit Templates 2. Find the following hook location in your Postbit and Postbit Legacy templates: Code:
$template_hook[postbit_signature_end]
Note: I did this with the thought that maybe you might want to do some calculation in the signature end hook to be included in your site signature. Just a thought. ![]() Code:
$ad_location[ad_showthread_below_sig]
Now it should show up. My apologies for missing this. |
|
#8
|
||||
|
||||
|
good work, thank you!
Installed |
|
#9
|
||||
|
||||
|
|
|
#10
|
||||
|
||||
|
It would be nice if it was default, but seems like a lot of work when you could just add the banner code in the postbit template, or openX
Keep up the good work
|
![]() |
|
|