View Full Version : Easy Postbit Switcher
M.Smith
07-03-2005, 10:00 PM
This plugin will make it possible for the user to switch between new and legacy postbits from showthread.php using the Display Modes menu.
This plugin requires the 'User Postbit Template Selection' plugin by WhSox21 to be installed. The plugin can be found here (https://vborg.vbsupport.ru/showthread.php?t=91407).
The plugin requires 2 template edits (both in the SHOWTHREAD template), 1 edit of WhSox21's plugin and 1 edit of the field created whilst installing WhSox21's plugin.
Thanks goes out to WhSox21 for letting me base this plugin from his.
Floris
07-04-2005, 07:01 PM
Nice job Martin :)
Kirk Y
07-06-2005, 03:27 PM
Great idea! (Installs)
marsauae.com
07-21-2005, 07:58 PM
very nice :)
Installs
SouthernTn
07-22-2005, 03:04 AM
niccccccccccccceee
Neutral Singh
07-26-2005, 08:05 AM
** self-edited ** Its working fine now!! Thanks
trancetopia
08-01-2005, 12:28 PM
Works a treat. Thanks.
bkaul
08-12-2005, 04:00 AM
Looks great.
One thing to note: the /me and [you] Plugins can break this one, causing the default postbit to display regardless of the user's choice.
The Wise One
10-04-2005, 12:04 AM
very nice. installed. one thing to note though...
<!-- Postbit Selector -->
<tr>
<td class="thead">Postbit Selector<a name="goto_displaymodes"></a></td>
</tr>
<tr>
<if condition="$vbulletin->userinfo['field5'] == 'Vertical Postbit'">
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="Switch to Horizontal (new) postbit" /> <a href="showthread.php?$session[sessionurl]postbit=Top&t=$thread[threadid]$highlightwords">Use Horizontal (new) Postbit</a></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="Switch to Vertical (legacy) postbit" /> <a href="showthread.php?$session[sessionurl]postbit=Left&t=$thread[threadid]$highlightwords">Use Vertical (Legacy) Postbit</a></td>
</if>
<!-- / Postbit Selector -->
your instructions seem to be missing a closing < /tr > tag just above / Postbit Selector in step one.
works good with 3.5.0
Sooner95
10-04-2005, 01:13 AM
Thumbs up... thx1
M.Smith
10-04-2005, 02:16 PM
very nice. installed. one thing to note though...
<!-- Postbit Selector -->
<tr>
<td class="thead">Postbit Selector<a name="goto_displaymodes"></a></td>
</tr>
<tr>
<if condition="$vbulletin->userinfo['field5'] == 'Vertical Postbit'">
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="Switch to Horizontal (new) postbit" /> <a href="showthread.php?$session[sessionurl]postbit=Top&t=$thread[threadid]$highlightwords">Use Horizontal (new) Postbit</a></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="Switch to Vertical (legacy) postbit" /> <a href="showthread.php?$session[sessionurl]postbit=Left&t=$thread[threadid]$highlightwords">Use Vertical (Legacy) Postbit</a></td>
</if>
<!-- / Postbit Selector -->
your instructions seem to be missing a closing < /tr > tag just above / Postbit Selector in step one.
works good with 3.5.0
The find section doesn't have it in so it's never lost. ;)
Mellow
10-04-2005, 04:20 PM
I installed it on 3.5 and it won't switch back and forth, only one option is available and it's always the switch to vertical. Once I switch, it still says switch to vertical, not horizontal.
I have the first plug in installed and that's working fine, I looked over the instructions and I don't believe I've missed anything.
Any ideas?
Mellow
10-04-2005, 04:36 PM
I installed it on 3.5 and it won't switch back and forth, only one option is available and it's always the switch to vertical. Once I switch, it still says switch to vertical, not horizontal.
I have the first plug in installed and that's working fine, I looked over the instructions and I don't believe I've missed anything.
Any ideas?
Nevermind.... ugh... I didn't change the Field5 in the showthread template to reflect my new user profile field number so the 'else' was always hit/executed.
Thanks, kudos.
Mellow
10-05-2005, 12:25 AM
Okay.. got everything setup, key was to make the event settings in the vboptions match the cmps upcoming events module settings.
On my cmps upcoming events module... recurring and all day events will show correctly with event name:dates however, ranged events only show the event name with no list of dates.
csidlernet
10-05-2005, 02:55 AM
Thanks!
/me installs
Xplorer4x4
12-11-2005, 12:05 AM
What about making this an option if I have threaded and hybrid modes disabled.
Rover416
01-23-2006, 10:44 AM
nvm: its working now.
Thanks for the hack.
ammarcom004
01-23-2006, 12:23 PM
thanks for this nice hack i install it
Zelda-King
01-26-2006, 03:24 PM
Does this plugin account for needing to cache the alternative postbit template?
bkaul
02-17-2006, 06:17 AM
If the User Postbit Template Selection (https://vborg.vbsupport.ru/showthread.php?t=91407&page=2&pp=15) plugin is installed to cache_templates, as suggested (https://vborg.vbsupport.ru/showpost.php?p=754751&postcount=25) (so that broken soft-deleted post display, etc. are fixed), the postbit switcher works to change the setting, but the page needs to be reloaded before it actually takes effect. Is there a good way to reload the page after setting the option in this plugin?
bkaul
02-17-2006, 06:23 AM
Looks great.
One thing to note: the /me and [you] Plugins can break this one, causing the default postbit to display regardless of the user's choice.
This issue is resolved by installing the User Postbit Template Selection plugin to a different hook.
jeanne
04-30-2006, 03:01 PM
is there a step by step exactly what to do to do this? I need very specific instructions to follow.
akanevsky
04-30-2006, 04:04 PM
Nice. I do not say this about a lot of hacks, but I honestly believe that this plugin together with what it's an add-on for, should be a default feature :)
Cyricx
02-08-2007, 12:40 PM
Agreed this should be a default feature! :)
Great mod!
Jon_Simmonds
03-02-2007, 08:26 PM
If the User Postbit Template Selection (https://vborg.vbsupport.ru/showthread.php?t=91407&page=2&pp=15) plugin is installed to cache_templates, as suggested (https://vborg.vbsupport.ru/showpost.php?p=754751&postcount=25) (so that broken soft-deleted post display, etc. are fixed), the postbit switcher works to change the setting, but the page needs to be reloaded before it actually takes effect. Is there a good way to reload the page after setting the option in this plugin?
any solution to this?
Anyone want to take this on to upgrade it for vB 4.0.2pl1 ?
Please?
Diablotic
04-13-2010, 08:35 PM
Yeah, we need similar mod for vB4
New Joe
04-27-2010, 06:52 AM
Did anyone get this to work on vB 3.8.X ?
Speysider
05-02-2010, 03:20 PM
vBulletin 3.5 hacks work just fine on all 3.5 - 3.8 versions without a problem.
Allan
05-15-2010, 06:57 AM
Upgrade for vB4 ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.