Version: 1.01, by a simple fa?ade
Developer Last Online: Feb 2008
Category: Miscellaneous Hacks -
Version: 3.6.0 Beta 3
Rating:
Released: 07-09-2006
Last Update: 07-09-2006
Installs: 26
Uses Plugins Template Edits
No support by the author.
Postbit Toggle in User CP
This hack was originally inspired by an old hack providing similar functions created by Darth Cow. It creates a toggle option in the User CP to determine which postbit a user wishes to use. It also includes optional instructions to include the information concerning this field in the postbits.
Template Edits: 2, optional
Files to Upload: 0
Plugins to Import: 1
Other: 3 (Add one Profile Field and change one vB Options setting; OPTIONAL - create a phrase)
====
Installation Instructions -
View the readme.txt in the ZIP archive.
====
Support -
I will offer support in this thread.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I think your using the wrong Profile Field. I think your using Single-Selection Radio Buttons
You need to use Single-Selection Menu
I don't think you can change the type on a whim unless you do it via the Database.
If the option is Radio Buttons (Round circles you click) that's wrong as it doesn't determine your setting by using the "Top" "left" or whatever text you entered. It uses the position of the button selected.
if ($vbulletin->userinfo['fieldxxxxx'] == 'Profile on top')
{
$vbulletin->options['legacypostbit'] = 0;
}
elseif ($vbulletin->userinfo['fieldxxxx'] == 'Profile on left')
{
$vbulletin->options['legacypostbit'] = 1;
}
So that the option set in Style and Language will be used for everyone that hasn't this yet set -- especially guests. I specially wanted legacy postbit off and saw no need for it to set it to off again in this plug unless it needed to by the user option.
thats a nice mod. if i had seen this before i probably wouldnt have tried to figure it out on my own, but i think it was safer the way i ended up doing it for us not so code inclined (https://vborg.vbsupport.ru/showthread.php?t=136059) but my way required creating an extra style. ill have to consider this sometime so that i dont have to keep adding a duplicate style for every style i put on my site. thanks!
I'll see if it holds to the option using my board in the next days...
Once again thanks a lot.
I talked too fast!
I really don't understand why it's not working well. After using my board today, with my postbit options set to Profile on top, it went back again to the profile displayed at left... even if I made those changes in the DB.
When it does revert to the profile on left even if my options are ser to show it on top (I have the server options displays at the bottom hack installed) it says that the postbit template is not cache. When the profile on top is displayed, it does not show that.
I had that cache problem before but with the postbit_legacy and somebody told me to add this in order to cache it: Attachment 59592
I also tried the code posted by steven99 and it does not even want to give me a profile on top, even if it's selected in the my options.
So, in conclusion, it does not seem to work for me. I'm about to uninstall it if nobody can find a solution for me. It gives me headaches. I just don't catch it.