brianh
6th December 2003, 07:39 AM
Nevermind, all good
|
View Full Version : Putting Postbit Back to VB3 Beta/Vb2 layout (member info on side). Is it possible? brianh 6th December 2003, 07:39 AM Nevermind, all good Neeto 6th December 2003, 07:40 AM It is a feature called "legacy" postbit. You have to enable it, as it is not enabled by default. It is in the admincp, under options. brianh 6th December 2003, 07:48 AM ah sweet. there goes my 2 hours :) i feel dumb Neeto 6th December 2003, 08:00 AM Hey, no need to feel dumb. There are so many darn options. I am always having to open all of them and do a search in that page. lol insanctus 6th December 2003, 10:55 AM Ya but it still far cry from old :( I think will wait for rc though to go to extensive into fixin it feldon27 6th December 2003, 08:05 PM The 'legacy' checkbox only works if you want all your styles to have the old postbit. If you want to have different styles with different layouts, then simply copy-paste postbit_legacy into the postbit of the style you want to look that way. Disjunto 6th December 2003, 08:07 PM The 'legacy' checkbox only works if you want all your styles to have the old postbit. If you want to have different styles with different layouts, then simply copy-paste postbit_legacy into the postbit of the style you want to look that way. tis what i did, my members seemed to clash when i asked them. so i made both Floris 7th December 2003, 02:28 AM The 'legacy' checkbox only works if you want all your styles to have the old postbit. If you want to have different styles with different layouts, then simply copy-paste postbit_legacy into the postbit of the style you want to look that way. Now there is a tip worth bookmarking :) AnimeWebby 11th December 2003, 03:47 AM Or there is an alternate way posted at vBulletin.com http://www.vbulletin.com/forum/showthread.php?t=88171 I suggest you check it out it is very kewlies. Plus prevents you from having to make child styles for eveyone of you existing ones. slappy 15th December 2003, 09:15 AM For those who, like me, may find the sticky post on the vBulletin.com forum referenced above, less than clear on what to do, here is a step by step method of creating a user option to use either the Postbit (Top) information or the Postbit_Legacy (Left) information position. First, you want to create a new entry in the UserCP in the Thread Display Options section. To do this you go to the AdminCP User section. There you will find a listing for User Profile Fields. Click on the Add New User Profile Field. A box will appear with a drop down menu for selection of the type of selection choice method. This board has a single selection drop down menu. Many others have used a single selection radio button. After making your choice, the creator box will open and you can fill in the necessary information. Most people have titled this option section "Postbit." You then create a description of what it is. In my case I used the statement: "Use this option to have the Poster's information displayed on the left side or on the top of the thread." Next, you create the lables for your controls, which, in this case, should be Left and Top, or Top and Left, with your default choice being first. If you chose the drop down single selection menu, you have the option to not have a first blank entry. There are some other options to review and the last one is for the location of where, in the User Options, the new option box will appear. Most have put it in the Thread Display Options box and you make that selection from the drop down box. Now your done with the Profile editor. Next you have to edit each of your parent style templates. The modifications will carry over into any child styles, based on the parent style, i.e. Fixed and Extended. Open the Style Manager, in the Styles & Templates section and in the right side, in the drop down box, chose the "common templates." In the common templates, the fourth section down is called: "phpinclude_start." You are going to add a short piece of code to each parent style template's "phpinclude_start" section. That piece of code has only two possible variables. One is the exact field number to use and the other depends on whether you want "Top" or "Left" to be the default choice. Here's the code if "Left" is the default: if ($bbuserinfo['field9'] == 'Top') { $vboptions['legacypostbit'] = 0; } else { $vboptions['legacypostbit'] = 1; } Note the list of "field9." This must be changed to whatever number is displayed in the User Profile Manager for your created field. Simply open the User Profile Manager and look at Postbit form and at the "name" entry to find what your Postbit field number is. If you want the "Top" to be the default, the code would be: if ($bbuserinfo['field9'] == 'Left') { $vboptions['legacypostbit'] = 1; } else { $vboptions['legacypostbit'] = 0; } The final step is that you MUST leave the Post_legacy bit, found in the vBulletin Options, Thread Display Options section, set to "NO." If you set it to "yes", and try to use this method, it won't work. Using this method, you do not need to modify any templates, except the "phpinclude_start" template in the "common templates" section. You also do not need two different styles, one with, and one without Postbit_Legacy, unless you want your users to be able to choise between the two styles from the style chooser at the bottom of the form, rather than changing in the User CP. I expect that most user will make a choice of which position they prefer and stick with it. They can always change the view in the UserCP, but with this method, all styles would have the same position. Regards. Daniel P 15th December 2003, 09:37 AM The legacy postbit, although overused, is far better than the new postbit. So I only use legacy :D Rusche 15th December 2003, 01:15 PM The legacy postbit, although overused, is far better than the new postbit. So I only use legacy :D I do prefer the original layout, but the legacy is far from that so I use the new one, its not that bad! slappy 15th December 2003, 04:55 PM The final issue with the Postbit selector is that using the User Profile Creator makes the new profile selector show up in the wrong position. Its aligned on the left, instead of on the right with the other existing original choices. Kier at vBulletin say he will fix this in the RC release. A poster on the vBulletin Forum, named TWTCommish had posted this fix: Just edit the userfield_select template. Replace: Code: <td> $profilefield[title]:<br /> with: Code: <td align="right"> <span style="float:left">$profilefield[title]:</span Regards, Floris 15th December 2003, 04:57 PM Slappy I removed your post. Stop posting work from other users from the support forums on third party web sites. Instead: Refer to them. slappy 15th December 2003, 05:07 PM Sorry floris, my intent was simply to make it more centrally located. I did give credit to the creator, but will simply post the link in the future. The final issue with the creation of a selector in the User Profile section of the UserCP is that the new selector for Postbit location, as on this Forum, is aligned on the left, instead of on the right, as are the other selectors. A solution to that issue was offered here: http://www.vbulletin.com/forum/showthread.php?t=88171&page=4 Regards, slappy 16th December 2003, 07:27 PM After actually attempting the realignment suggested in my post above, I can report that while it works if you have choosen the dropdown box for your selector, it does not realine radio buttons, which I described in my detailed description. They remain on the left, like check boxes. There must be some other statement than the one described by TWTCommish on the vBulletin Forum, which controls their position. Regards. Hoffi 21st December 2003, 10:52 PM I like this Feature. gmarik 23rd December 2003, 09:35 PM I would want it back too... |