![]() |
Users choose to see either Postbit or Postbit Legacy
1 Attachment(s)
1. Create profile field that had the option of "Horizontal" or "Vertical" with one of them being being the first option, it's a required field, first option is default with no blank.
NOTE: set as default whichever is your current settings. 2. Note what the fieldID is in the profile field controlpanel 3a. (If your postbit is defaultly horizontal, do this, otherwise skip to step 3.b ) Open your postbit, at the top copy this: Code:
<vb:if condition="$bbuserinfo[fieldx] != 'Vertical'"> 3b. (If your postbit is defaultly vertical, do this) Open your postbit, at the top copy this: Code:
<vb:if condition="$bbuserinfo[fieldx] == 'Horizontal'"> 4. At the end of the postbit, copy this: Code:
<vb:else /> 5. Then copy the entire contents of your postbit_legacy template after that. 6. The after you've posted the entire postbit_legacy template, copy this: Code:
</vb:if> 7. Make sure your admincp settings in Styles & Languages is set to NOT use the Legacy Postbit, and it will be good to go! |
Reserved for Future Use.
|
any ss ?
|
Updated with Screenshots
|
Thank you. and I see your good hack.
But, I also have been seek the exactly what I desired but not same with that you made. I think your way is more useful to switch for user easily, but if we want to force a specific foum with his child one to change the layout, the way of each forum based option to on/off would give more adjustable. :) Indeed that is I needed to mine. |
Quote:
In your case, if you want certain forums to have postbit or postbit legacy, your code would be thus: 1) Find the forum ID of each forum that you want in the postbit (horizontal) layout, write them down. 2) Replace Step 3 (a & b) with this: Code:
<vb:if condition="in_array($forum['forumid'], array(x,y,z))"> 3) follow the rest of the instructions above. |
Hi. Nice Addon.
I got a question to it. What will happen if i already changed the Style of my postbit_legacy? Will that have any effect like... "destroying" the look etc.... |
Nope, you just copy the entire code from the postbit_legacy template and paste it where the instructions tell you to. So any custom code will transfer. I'm not so sure if mods that use the postbit_legacy hooks work, would love if someone could get a definite answer for me on that.
|
Thank you my frend
|
I am a bit confused, I am trying to do this mod but I cannot find
PHP Code:
|
All times are GMT. The time now is 02:52 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|