Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Different Postbit on first post based on prefix (news thread) Details »»
Different Postbit on first post based on prefix (news thread)
Mod Version: 1.00, by tpearl5 (Coder/Designer) tpearl5 is offline
Developer Last Online: Dec 2014 I like it Show Printable Version Email this Page

vB Version: 3.8.4 Rating: (1 vote - 5.00 average) Installs: 6
Released: 11 Jan 2010 Last Update: Never Downloads: 0
Supported Template Edits Re-usable Code  

This template modification will allow you to display a different posbit based on a prefix. So, for example, if you have a 'news' thread, you could display the first post in a news layout.

Included below is the modified postbit that I use on my forum for an example. The original template comes from the Article Forums mod (http://www.vbulletin.org/forum/showthread.php?t=211638) I've taken out a couple icons at the top and removed the attachment thumbnail box for images. I've added Facebook, Tweetmeme, and Digg buttons to the upper right.

Here is a live example of the this mod in action: http://cellphoneforums.net/att/t3063...mmercials.html (example also has helpful posts, tweet poster, and vbseo installed)

To install:
  • Open your postbit template
  • Copy the existing template into an editor
  • Copy the below into an editor
  • Replace 'YOUR ORIGINAL POSTBIT HERE' with your postbit
  • Replace 'news' (in the first line) with the ID of the prefix you would like this template to display with. You can find this by going to 'Thread Prefixes > Prefix manager > click on the prefix you want' It'll be at the top.
  • Copy everything into your postbit template and save

This will only work on 3.x


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

Download Now

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

Supporters / CoAuthors

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.
  #16  
Old 13 Aug 2010, 08:22
texasf1racer's Avatar
texasf1racer texasf1racer is offline
 
Join Date: Oct 2006
As far as I know using the conditional I posted above should work in IE8, Firefox, and Chrome as my staff use those browsers with no report of the bug anymore.
__________________
Best Regards,
Tex

Reply With Quote
  #17  
Old 17 Aug 2010, 18:41
DannyITR DannyITR is offline
 
Join Date: Jan 2002
A user is now reporting that he sees the different postbit on every first post even in FF. I'm going to upgrade to VB4 soon anyways. Will this still work?
__________________
www.montrealracing.com
Reply With Quote
  #18  
Old 03 Oct 2011, 16:26
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Is there any chance of this being ported to VB4?
__________________
www.montrealracing.com
Reply With Quote
  #19  
Old 16 May 2013, 14:24
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Real name: John
Originally Posted by DannyITR View Post
Is there any chance of this being ported to VB4?
I'm actually using a modified version of the regular postbit template now (postbit_legacy is set as the normal postbit) using this code:


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


Last edited by tpearl5 : 16 May 2013 at 15:05.
Reply With Quote
  #20  
Old 16 May 2013, 19:16
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Thanks I'll try it out!
__________________
www.montrealracing.com
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 19:24.

Layout Options | Width: Wide Color: