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>
Note: I had to add the new template to the Master Style in order to get it to show up under existing "Ad Locations Template" group.
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]
7. Add the following below:
Code:
$ad_location[ad_showthread_below_sig]
8. Save template and do the same in Postbit_legacy.
9. Open showthread.php in the forum root folder and look for:
PHP Code:
// pre-cache templates used by all actions
$globaltemplates = array(
'ad_showthread_beforeqr',
'ad_showthread_firstpost',
'ad_showthread_firstpost_start',
'forumdisplay_loggedinuser',
'forumrules',
'im_aim',
'im_icq',
9. Insert "'ad_showthread_below_sig', in between
"'ad_showthread_firstpost_start'," and "'forumdisplay_loggedinuser',"
which should look like this when done:
PHP Code:
// pre-cache templates used by all actions
$globaltemplates = array(
'ad_showthread_beforeqr',
'ad_showthread_firstpost',
'ad_showthread_firstpost_start',
'ad_showthread_firstpost_sig',
'ad_showthread_below_sig',
'forumdisplay_loggedinuser',
'forumrules',
'im_aim',
'im_icq',
10. Save the file.
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.
Same here...nothing happend (i'm unning a vB 3.8.1 board)
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.
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]
3. Add the following ad location below it:
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]
4. Save your templates
Now it should show up. My apologies for missing this.