Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
New Ad Location - Below Postbit Signature Details »
New Ad Location - Below Postbit Signature
Mod Version: 1.00, by TalkVirginia (Coder) TalkVirginia is offline
Developer Last Online: Mar 2013 I like it Show Printable Version Email this Page

vB Version: 3.8.1 Rating: (1 vote - 5.00 average) Installs: 11
Released: 28 Mar 2009 Last Update: Never Downloads: 2
Not Supported Template Edits Code Changes Re-usable Code  

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:


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

(Note: The ending "}" should be on or around line 300.)

2. Add the following code below it:


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

3. Save the file.

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:


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

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:


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

7. Add the following below:


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

8. Save template and do the same in Postbit_legacy.

9. Open showthread.php in the forum root folder and look for:

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

9. Insert "'ad_showthread_below_sig', in between
"'ad_showthread_firstpost_start'," and "'forumdisplay_loggedinuser',"

which should look like this when done:

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

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.

Make sure you Click Install if you use this!!!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	postbitAdBelowSig.jpg
Views:	870
Size:	88.7 KB
ID:	97094  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 28 Mar 2009, 08:30
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
*** Reserved ***
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave
vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2
Reply With Quote
  #3  
Old 28 Mar 2009, 13:11
ahmed-samara's Avatar
ahmed-samara ahmed-samara is offline
 
Join Date: Dec 2004
Real name: Ahmed Mohamed
*** Reserved ***

but nothing happen !
__________________
Please don't PM me , Send request or enquiry to the Forum

support vBulletin Arabic, vBulletin Manual , vBulletin API

Last edited by ahmed-samara; 28 Mar 2009 at 13:54.
Reply With Quote
  #4  
Old 28 Mar 2009, 14:45
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
Originally Posted by ahmed-samara View Post
*** Reserved ***

but nothing happen !
What version of vBulletin do you have installed? Also, what type of ad did you put in the ad location?
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave
vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2
Reply With Quote
  #5  
Old 29 Mar 2009, 15:09
masterweb's Avatar
masterweb masterweb is offline
 
Join Date: Aug 2007
Real name: Arteaga
Same here...nothing happend (i'm unning a vB 3.8.1 board)

Originally Posted by TalkVirginia View Post
What version of vBulletin do you have installed? Also, what type of ad did you put in the ad location?
Reply With Quote
  #6  
Old 29 Mar 2009, 15:40
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
Originally Posted by masterweb View Post
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.
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave
vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2
Reply With Quote
  #7  
Old 29 Mar 2009, 15:58
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
Lightbulb

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:

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

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.


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

4. Save your templates

Now it should show up. My apologies for missing this.
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave
vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2

Last edited by TalkVirginia; 29 Mar 2009 at 16:43. Reason: Left out a step.
Reply With Quote
  #8  
Old 29 Mar 2009, 19:23
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
good work, thank you!

Installed
__________________
games
Forum Nokia
Reply With Quote
  #9  
Old 29 Mar 2009, 19:35
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
Originally Posted by Jasem View Post
good work, thank you!

Installed
You're very welcome!
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave
vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2
Reply With Quote
  #10  
Old 29 Mar 2009, 20:54
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
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
__________________

Email me for website help: brandon[at]sheley[dot]org
Reply With Quote
  #11  
Old 29 Mar 2009, 22:50
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
Originally Posted by Loco.M View Post
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
I guess if it seems like a lot of work, then you probably don't need it.

but thank you!
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave
vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2
Reply With Quote
  #12  
Old 30 Mar 2009, 13:05
ahmed-samara's Avatar
ahmed-samara ahmed-samara is offline
 
Join Date: Dec 2004
Real name: Ahmed Mohamed
now is working great thanks too much
installed
__________________
Please don't PM me , Send request or enquiry to the Forum

support vBulletin Arabic, vBulletin Manual , vBulletin API
Reply With Quote
  #13  
Old 16 Apr 2009, 11:48
KevinGupta KevinGupta is offline
 
Join Date: Dec 2006
Sorry.. how do I exactly put in a banner/text ad.. could you please give me step by step guide to it?

and what type of banner links can I put in... Can I just put in a URL e.g. www.domain.com/pic.gif ?
Reply With Quote
  #14  
Old 16 Apr 2009, 13:56
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
Originally Posted by KevinGupta View Post
Sorry.. how do I exactly put in a banner/text ad.. could you please give me step by step guide to it?

and what type of banner links can I put in... Can I just put in a URL e.g. www.domain.com/pic.gif ?
Once you make the edits as instructed above, you should be able to put any html code including image or text banners, and template conditionals in the new template as you would the other ad locations.
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave
vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2
Reply With Quote
  #15  
Old 16 Apr 2009, 13:58
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
Tagged, will check out later & Thanks
__________________
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!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:41.

Layout Options | Width: Wide Color: