vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   postbit / postbit_legacy chooser (https://vborg.vbsupport.ru/showthread.php?t=244683)

LuisManson 06-15-2010 06:24 PM

postbit / postbit_legacy chooser
 
Hi, i need a method to let the user choose a postbit if it is on a specific group, maybe an option in his profile

for VB 4.0.3

Thanks

Brandon Sheley 06-15-2010 07:44 PM

I think there was a mod to do this, it involved adding a profile field that allowed the users to pick which style they wanted.
Or, you can always add a 2nd style that uses the postbit_ setup that isn't on your main style, then the users could just select the style they want.

LuisManson 06-15-2010 09:57 PM

no idea about the seccond metod im on my first week with VB
about the firstone, any link or idea if it might work?

BSMedia 06-15-2010 11:21 PM

assign your forum to use the postbit_legacy option under vBulletin Options -> Styling

Create a new profile field with a radio button (yes/no)
'Use postbit_legacy (information aligned to left)"

Then simply use an if condition in the postbit_legacy template to show the postbit

<if condition="$profile[fieldX] == 1">
Postbit_legacy code
<else >
Postbit code
</if>

LuisManson 06-16-2010 03:54 PM

nice, thanks!

Fuhrmann 06-16-2010 04:10 PM

Sorry if I'm wrong, but the right condition would be:

<vb:if condition="$user['fieldx'] == 1">
Postbit_legacy code
<vb:else />
Postbit code
</vb:if>

That's right?

LuisManson 06-16-2010 05:57 PM

i have used another code, wich seems to work fine, however im not able to find any way to limit that option bassed on a group bassis :(


All times are GMT. The time now is 08:29 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
  • Page Generation 0.00913 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete