View Full Version : Postbit/Postbit legacy
Peggy
03-22-2006, 10:53 AM
I hope I'm asking this in the correct forum.
if you have more than one style on your board, is it possible to use postbit on one and legacy on the other? Or do you have to use either one or the other?
Yes, you can use a different postbit in each style Peggy, however there is a slight trick to achieving this.
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.
Peggy
03-22-2006, 01:22 PM
Oh Lord http://www.exquisitelyerotic.net/forums/images/smilies/Thud.gif somehow I knew it was going to be difficult, if possible at all
thank you John... I *think* I got that... *wink*
Joeychgo
03-23-2006, 04:45 AM
Its actually not all that difficult. You just swap the 2 templates on one style.
Peggy
03-23-2006, 06:44 AM
did you forget who you're talking to...........??
Did you get this to work Peggy?
Peggy
03-23-2006, 01:13 PM
I haven't even tried yet John, afraid I'll screw it up, lol
Peggy
03-24-2006, 07:10 PM
hahahah I DID IT!! do you believe that? I did it http://www.exquisitelyerotic.net/forums/images/smilies/bunny_4.gif
thanks again John! *kiss*
Peggy
03-25-2006, 08:23 PM
and after all that, noone likes the legacy postbit, so I changed it back to the postbit. :rolleyes:
WoodiE55
06-27-2006, 01:15 PM
vBulletin.com also has a nice how-to to make this a user option w/o having to create a new style.
-Michael
EDIT: Link added: http://www.vbulletin.com/forum/showthread.php?t=169124
Peggy
06-27-2006, 01:28 PM
THIS is good news Woodi... thank you for posting this
WoodiE55
06-27-2006, 01:33 PM
You're welcome, glad I could help!
-Michael
Peggy
06-27-2006, 01:33 PM
Me too Michael, thanks
Norman
06-28-2006, 10:22 AM
Yes, you can use a different postbit in each style Peggy, however there is a slight trick to achieving this.
Thanks John! Great idea!
G_Man
07-03-2006, 06:58 PM
Yes, you can use a different postbit in each style Peggy, however there is a slight trick to achieving this.
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.
LMAO!!!!
See? That is the sort of thing that if I did it (and I might actually think of that) people would think I was just screwing around or didn't know what I was doing! (not far off from truth, albeit!).
That is a great trick though. Thanks for posting that.
Personally I can hardly stand the new postbit.. gahhh.... Which is funny, because I have joined Peggy's site and don't like there either!! LOL
However, I don't think the Legacy Postbit would work well on that site. There be BUNCHES of information for the Users! :eek: I probably just need to get used to it. ;)
Peggy
07-03-2006, 07:33 PM
well guess what? :D
when I upgrade to 3.6 on Thursday, we're going to legacy. Yes there's is tons of info... points, gifts, ribbons, etc... but I'm thinking of just having them show in the profile only rather than in the posts too. My co-admin doesn't like the idea at ALL.. he says it should all show in the postbit where it's been all along. heh... we went for months with no images or points in the postbit before I installed vBux, so it's not gonna kill 'em
G_Man
07-03-2006, 07:36 PM
well guess what? :D
when I upgrade to 3.6 on Thursday, we're going to legacy. Yes there's is tons of info... points, gifts, ribbons, etc... but I'm thinking of just having them show in the profile only rather than in the posts too. My co-admin doesn't like the idea at ALL.. he says it should all show in the postbit where it's been all along. heh... we went for months with no images or points in the postbit before I installed vBux, so it's not gonna kill 'em
You could look for a happy medium. There are several 'hybrid' postbits that might work swimmingly with your forum. ;)
WoodiE55
07-03-2006, 09:50 PM
For those of you using the method John suggested - I'd recommend NOT using that method as it just creates more work for you then it's worth.
Instead just use the method shown here: http://www.vbulletin.com/forum/showthread.php?t=169124 - much easier to mantain and allows the user the option just the same.
-Michael
Peggy
07-03-2006, 09:58 PM
For those of you using the method John suggested - I'd recommend NOT using that method as it just creates more work for you then it's worth.
Instead just use the method shown here: http://www.vbulletin.com/forum/showthread.php?t=169124 - much easier to mantain and allows the user the option just the same.
-Michael
thank you Michael. John may not have known about that when he posted the instructions above.
This is great. I would rather my members have a choice.
There are indeed many ways to skin a cat :) - and both methods presented in this thread allow your users a choice of which posbit style they want to use on your forums. In my method, they simply select from the style chooser wherever this is presented in the style, in Woodies method, they must go their UserCP and select this option from one of the profile fields contained in there.
Either method of doing this is good, and both methods work very well.
My method invloves many fewer clicks to change the layout, Woodies (Waynes) method is perhaps more technical.
The thing I am confused about here though is that the post date of Waynes thread there on vB is March 18th 2004, and at that time, if I remember correctly, vB3.5 had NOT been released - and therefore... there were no 'hooks' available. What this means simply is that Wayne has amended his post since the date of the original post, and sometime shortly after the release of vB3.5.
There was a method of doing this befoer vB3.5 but it involved amending a PHP file.
Noppid
07-04-2006, 07:49 AM
There are indeed many ways to skin a cat :) - and both methods presented in this thread allow your users a choice of which posbit style they want to use on your forums. In my method, they simply select from the style chooser wherever this is presented in the style, in Woodies method, they must go their UserCP and select this option from one of the profile fields contained in there.
Either method of doing this is good, and both methods work very well.
My method invloves many fewer clicks to change the layout, Woodies (Waynes) method is perhaps more technical.
The thing I am confused about here though is that the post date of Waynes thread there on vB is March 18th 2004, and at that time, if I remember correctly, vB3.5 had NOT been released - and therefore... there were no 'hooks' available. What this means simply is that Wayne has amended his post since the date of the original post, and sometime shortly after the release of vB3.5.
There was a method of doing this befoer vB3.5 but it involved amending a PHP file.
It was via the php_include_start template on 3.0.x, and used the user cp selection method IIRC.
Aye, that's the one Greg.
G_Man
07-04-2006, 12:17 PM
For those of you using the method John suggested - I'd recommend NOT using that method as it just creates more work for you then it's worth.
Instead just use the method shown here: http://www.vbulletin.com/forum/showthread.php?t=169124 - much easier to mantain and allows the user the option just the same.
-Michael
Very nice, but...
Say in Style A you want to force your users to use Legacy and in Style B you want your user using Modern?
Peggy
07-04-2006, 12:30 PM
If you were to install that hack, the members would have a choice of which postbit they want to use................. I think
G_Man
07-04-2006, 12:37 PM
If you were to install that hack, the members would have a choice of which postbit they want to use................. I think
Exactly... and maybe you would not want that is what I am saying. Perhaps one Style would work better with Legacy and the other not....
Noppid
07-04-2006, 12:43 PM
Very nice, but...
Say in Style A you want to force your users to use Legacy and in Style B you want your user using Modern?
Create the base style and make it default. With both proposed postbit templates setup and ready to go, Create a child of it and make it selectable. Allow selections as well in vbulletin options. Then they have a style selection menu on the bottom of the forums.
You make this second style a child so that any edits you do in the main parent template flow down to the second child style. Then you never edit the child style, only the parent. Yet both do different things.
However, we need a hook to change the postbit select since it's global, not style based.
Why go this far? template management. This makes it so only one style has to be edited.
That's how I'd skin this cat.
G_Man
07-04-2006, 04:57 PM
Create the base style and make it default. With both proposed postbit templates setup and ready to go, Create a child of it and make it selectable. Allow selections as well in vbulletin options. Then they have a style selection menu on the bottom of the forums.
You make this second style a child so that any edits you do in the main parent template flow down to the second child style. Then you never edit the child style, only the parent. Yet both do different things.
However, we need a hook to change the postbit select since it's global, not style based.
Why go this far? template management. This makes it so only one style has to be edited.
That's how I'd skin this cat.
I still don't see how this forces use of one Postbit in the Parent and the other Postbit in the Child...?..
Noppid
07-04-2006, 07:46 PM
I still don't see how this forces use of one Postbit in the Parent and the other Postbit in the Child...?..
It checks the style id the user selected and if it's the child style it changes the global variable for postbit to postbit legacy.
GLobal style_fetch hook
if($styleid == $child_style_id_num)
{
$vbulletin->options['legacypostbit'] = true;
}
That should do it. Of course you replace $child_style_id_num with and integer.
G_Man
07-04-2006, 11:21 PM
It checks the style id the user selected and if it's the child style it changes the global variable for postbit to postbit legacy.
GLobal style_fetch hook
if($styleid == $child_style_id_num)
{
$vbulletin->options['legacypostbit'] = true;
}
That should do it. Of course you replace $child_style_id_num with and integer.
ahhh.... Very nice. Cheers.
Powered by vBulletin® Version 4.2.0 Alpha 1 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.