The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
if you have more than one style on your forum, is it possible to use the horizontal postbit on one and the legacy on the other?
Or do you have to use the same for all? anyone? |
#2
|
||||
|
||||
![]()
nah, i think its one or the other for all styles...
|
#3
|
|||
|
|||
![]()
actually, someone pm'd me with this fix:
Because the postbit is determined at global level, it can't be changed by the user without a hack, alas - there is another way to do this. Read on... 1 - create your two styles 2 - on style 1 edit and make the postbit template the same as the postbit_legacy template 3 - on style 2 edit and make the postbit_legacy template the same as the postbit template ... and then because in each individual style the postbit and postbit_legacy templates are the same, regardless of which one you selected in the AdminCP as the default, the one will be postbit layout and the other postbit_legacy. |
#4
|
|||
|
|||
![]()
Sorry for this question but where abouts in the admincp can you select which to use as the deafult?
|
#5
|
|||
|
|||
![]()
no sorries needed hun. Go to
vBulletin Options >>> Styles and Language Settings >>> Use Legacy (Vertical) Postbit Template You'll find that near the bottom, choose yes or no |
#6
|
|||
|
|||
![]()
What if you put an if statement inside the template to determine the style used, then use the appropriate code, so you'd have both the code for the regular, and the legacy inside one template.
If styleid = 5 then use postbit code else use postbit_legacy code This way you could also have more then 2 postbit styles as well, make your own, it would all be dependent on the ifs and elses... Update: I tested it, and it works. I made a second style, since I use the postbit_legacy, I copied the postbit code into the legacy template above it, and wrapped it with an if statement. Actually now that I think about it, you don't need the else with the postbit_legacy code since the if statement will always work as long as you supply the correct styleid. |
#7
|
|||
|
|||
![]() Quote:
thanks hun! |
#8
|
|||
|
|||
![]()
Actually now that I think about it, you don't need the IF statement. Duh.
Here's what you do, in the style that you want to use the different postbit, all you do is copy the code from that postbit, into the one your board uses, that's it. Example: Forums use postbit_legacy Therefore, DefaultStyle uses postbit_legacy However, NewStyle needs to use postbit, but since the Forums are set to use the legacy template, you can't. All you do is go into the NewStyles postbit template, copy all the code, and paste it into NewStyles postbit_legacy template. Done How to: AdminCP>Styles & Templates>Template Manager>(Choose the style you want to edit)Expand Templates> Postbit Templates> Now, you've got postbit, and postbit_legacy. If your board uses postbit but you want this style to use postbit_legacy, go into the postbit_legacy, copy it's code, and paste into the postbit template. If your board uses postbit_legacy but you want this style to use postbit, go into the postbit, copy it's code, and paste into the postbit_legacy template. |
#9
|
||||
|
||||
![]()
Great question... thanks for asking this and posting how to accomplish it. That's a nice way to customize multiple styles exactly how you want them to look.
Hadn't thought of doing this until now... so I'm real happy to find this. Cheers ... :bunny: |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|