![]() |
Postbit / Postbit Legacy
well my question is this one
i want to have a skin where users can choose the default postbit or postbit legacy, i suppose that i have to copy and paste my skin, but how can i make the copied skin runs with the legacy and my normal skin with default postbit? |
I don't understand the second part, you want one skin to be using postbit legacy and the default one with the normal postbit without user option, or do you want the user option?
|
well, what i frist have in mind is that the choose of legacy or normal postbit can be by skin ex: you pick up "default skin" and you can see the threads with the default postbit, but if you pick up the skin "default skin (Legacy)" you can see the threads with the legacy postbit
but if there is a better way, that can be nice to know too :) thanks for reading |
I'm pretty sure there is a mod where users are able to choose what postbit they'd like (legacy or normal) through the User CP. Is this what you are after?
|
You could just be lazy and make a child style where you copy the legacy template over the postbit template.
|
Quote:
|
You could try this..
hook cache_templates PHP Code:
|
hmm intresting, this maybe can be out of the topic but,
$vbulletin->options['legacypostbit'] is an array, isnt it? so now, where i can have a reference about all the $vbulletin->options ? |
$vbulletin->options is an array containing all the options, and should be available everywhere.
$vbulletin->options['legacypostbit'] just contains 1 or 0 depending on what you have that option set to. |
Quote:
and well, now on the if statement you told me, i suppose there is a way can be re arranged, so, the users can choose something on UCP like "Show normal postbit or postbit legacy" PHP Code:
|
Say if it was a profile field...
PHP Code:
I'm not 100% sure where it checks the option and changes the output, but putting this in the hook I suggested would work, or look for the hack here (which does the same/very similar thing AFAIK). To view all the options go into your ACP... vBulletin Options > vBulletin Options or throw in this up in a php file... PHP Code:
"$vbulletin->options" to "$vboptions" and all "$vbulletin->userinfo" to "$bbuserinfo" |
0ka, thanks a lot :D i needed all of this info, i own you one!!
|
Thank you very much. This information helped me to get the user option for the postbit back into my just upgraded vB 3.5.4!
|
Hi guys i wanna try to do the same... so i created a custom field that can have 0 or 1....
Now i wanna put the checking code but i dont know where... here is what i have Quote:
|
All times are GMT. The time now is 02:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|