Version: 1.00, by WhSox21
Developer Last Online: Apr 2014
Version: 3.5.0 Beta 3
Rating:
Released: 06-29-2005
Last Update: 07-07-2005
Installs: 106
Uses Plugins
No support by the author.
I'm just getting back into the swing of things with vBulletin 3.5. Here's my first plugin being released (Others are still in progress).
What this does:
This allows users to select which postbit they wish to use via their control panel.
Installation
Upload the plugin and create a new user profile field by following the directions below.
Once you complete the top two steps you must edit the plugin and find: field5
Then change that to your user profile field number.
Add a New User Profile Field
Profile Field Type:
Single-Selection Menu
Title: Postbit Template Selection
Description:
If you prefer the old-style postbit, using two vertical columns rather than the new horizontal layout, you can switch back to using that template with this switch.
hopfully a version of that code is released to work with horizontal as default and without the extra queries. i tried playing with the plugin code, reversing and switching the code around...but was unsuccessful (no surprise there though...dont know a whole lot about php yet).
Hmm, works fine for me on gold no matter if legacy is default or not?
The default Code of this Hack causes additional queries due to uncached Templates.
another question about this. the code you recommend to use in the link above. is the caching done because of the code change or is it because of the hook it belongs to?
as it is now...it works great. when i add the add on, using the option to switch postbits (in the thread display mode menu) doesnt change the postbit. rather...it does, but it requires a refresh after clicking the option. if i use the code in the post you linked to...but change the hook to postbit_display_complete the refresh is no longer required and using the thread display mode menu option changes the postbit accordingly.
i guess what im trying to figure out is...are the additional queries you refer to being caused because of the hook used or the code used...
If anyone with spare time wants to take over this hack's support and functioning please let me know. I'll give you full credit to this hack and if the vb mods want to they can switch the thread starter via the database.
I just don't have time to update this at the moment. Too many things going on in my life.
The default Code of this Hack causes additional queries due to uncached Templates.
Ok Andreas...the code below is the correct code to use to not get those additional queries, is that right? I just want to be sure, cause it works just fine
Quote:
global $vbulletin;
if ($vbulletin->userinfo['field9'] == "Vertical Postbit (Legacy)")
{
$vbulletin->options['legacypostbit'] = 1;
}
else if ($vbulletin->userinfo['field9'] == "Horizontal Postbit")
{
$vbulletin->options['legacypostbit'] = 0;
}