The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
||||
|
||||
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: PHP Code:
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. |
Благодарность от: | ||
New Joe |
#3
|
||||
|
||||
Thanks BOP5, i might give that a go
--------------- Added [DATE]1344078270[/DATE] at [TIME]1344078270[/TIME] --------------- Didn't work. |
#4
|
||||
|
||||
It could be because BOP5 decided to not put { and } but the code works (thanks btw)
Try this instead PHP Code:
|
#5
|
||||
|
||||
I'll give that new code a try, thanks
This part though; Quote:
|
#6
|
||||
|
||||
No it isn't select single selection radio Button
|
#7
|
||||
|
||||
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! |
#8
|
||||
|
||||
Yeah it's single selection radio buttons, i said "the first one isn't correct, select single selection radio buttons"
|
#9
|
||||
|
||||
Works excellent guys!
Can I have permission to add this to the DB at VB.org? |
#10
|
||||
|
||||
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.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|