vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   phrases (https://vborg.vbsupport.ru/showthread.php?t=284760)

Nocturnal222 06-21-2012 05:22 PM

phrases
 
hi,

can someone tell me how to call an user in a vb if/else condition

Code:

<vb:if condition="is_member_of($post, #)"><div class="userinfo2">
<vb:else />
<div class="userinfo">
</vb:if>

that is for usergroup.. can you help me to change it per user... (highlighted)

--------------- Added [DATE]1340303990[/DATE] at [TIME]1340303990[/TIME] ---------------

Code:

<vb:if condition="$post['userid'] == 5"><div class="userinfo_xxxx">
<vb:else />
<div class="userinfo">
</vb:if>

is this correct?

kh99 06-22-2012 01:09 AM

Quote:

Originally Posted by Nocturnal222 (Post 2341807)

Code:

<vb:if condition="$post['userid'] == 5"><div class="userinfo_xxxx">
<vb:else />
<div class="userinfo">
</vb:if>

is this correct?

Yes, I think that should work.

Nocturnal222 06-22-2012 03:50 AM

what if ill add another one user?

--------------- Added [DATE]1340341704[/DATE] at [TIME]1340341704[/TIME] ---------------

got it. please delete thread :D


All times are GMT. The time now is 02:42 PM.

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.01018 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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