Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Aug 2012, 20:53
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
PostBit Switcher

I would like a small mod/template change that would allow the member to switch between Vertical and Horizontal PostBits.

I've found one here that is supposed to be for vB4 but it requires you to copy the entire vertical code over to the horizontal code.....Not very elegant I think plus I think it will break some mods, like the Thumbs Up/Down mod.

Thanks to anyone who may consider this.
__________________
The Ultimate Chiller
¨˜”°º•BREW•º°”˜¨
www.politicalforums.net
www.oldhouseforums.com
Reply With Quote
  #2  
Old 04 Aug 2012, 10:25
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Fairly easy to do.

1) Create a User Profile Field: "Use Horizontal Postbit?"
Answers: Yes / No
Note the field # it is given after you save it. (Field # may be different then display order)

2) Go to Plugin Manager -> Add New Plugin
Product: vBulletin
Title: Custom Postbit
Hook: global_bootstrap_init_start
Exec. Order: 5
PHP Code:

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

*Change 'field5' to whatever actual field# it is assigned- 'field6' , 'field7' ...

Then anyone who chooses "Yes" will see the horizontal postbit, and anyone who chooses "No" (or doesn't choose at all) will see the legacy (vertical) postbit.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #3  
Old 04 Aug 2012, 10:54
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Thanks BOP5, i might give that a go

--------------- Added 04 Aug 2012 at 11:04 ---------------

Didn't work.
Reply With Quote
  #4  
Old 04 Aug 2012, 15:03
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
It could be because BOP5 decided to not put { and } but the code works (thanks btw)
Try this instead

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


Last edited by Scanu; 04 Aug 2012 at 15:29.
Reply With Quote
  #5  
Old 04 Aug 2012, 15:08
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
I'll give that new code a try, thanks


This part though;
1) Create a User Profile Field: "Use Horizontal Postbit?"
Answers: Yes / No
There's many ways to make a 'Profile Field' is it the first one it shows?
Reply With Quote
  #6  
Old 04 Aug 2012, 15:17
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
No it isn't select single selection radio Button
Reply With Quote
  #7  
Old 04 Aug 2012, 16:43
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Originally Posted by Scanu View Post
No it isn't select single selection radio Button
I've tried the various types...which one it correct?

Single-Line Text Box?
Multiple_line Text Box?
Single-Selection Radio Buttons?
Single-Selection Menu?
Multiple-Selection Menu?
Multiple-selection Checkbox?

Single-Selection Radio Buttons seems like the way to go but Scanu says it's not.

Thanks!
__________________
The Ultimate Chiller
¨˜”°º•BREW•º°”˜¨
www.politicalforums.net
www.oldhouseforums.com
Reply With Quote
  #8  
Old 04 Aug 2012, 16:59
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Yeah it's single selection radio buttons, i said "the first one isn't correct, select single selection radio buttons"
Reply With Quote
  #9  
Old 04 Aug 2012, 17:35
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Works excellent guys!

Can I have permission to add this to the DB at VB.org?
__________________
The Ultimate Chiller
¨˜”°º•BREW•º°”˜¨
www.politicalforums.net
www.oldhouseforums.com
Reply With Quote
  #10  
Old 04 Aug 2012, 21:24
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Brew View Post
Works excellent guys!

Can I have permission to add this to the DB at VB.org?
This isn't a mod so it can't be put in the Mods section. At best it would be an article if you wanted to write it up as one but honestly I think it is fine where it is.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Postbit Switcher M.Smith vBulletin 3.5 Add-ons 29 15 May 2010 07:57



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

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 09:19.

Layout Options | Width: Wide Color: