vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   help with a conditional. (https://vborg.vbsupport.ru/showthread.php?t=65543)

neocorteqz 05-26-2004 11:17 AM

help with a conditional.
 
I have the following
HTML Code:

<if condition="$bbuserinfo['usergroup'] == 6">

$vbphrase[posts]: $post[posts]

</if>

I'm using that in postbit and postbit_legacy.


Nothing is displayed for admins.


Any help is appreciated. :)

Thanks.

sabret00the 05-26-2004 11:23 AM

HTML Code:

<if condition="$bbuserinfo[usergroupid] == 6">
 
 $vbphrase[posts]: $post[posts]
 
 </if>

that should work

neocorteqz 05-26-2004 11:37 AM

That did it. Thanks.:)

another quick question.

to add another usergroup, id do this?
HTML Code:

<if condition="$bbuserinfo[usergroupid] == 6" and "$bbuserinfo[usergroupid] == 7">

$vbphrase[posts]: $post[posts]
</if>

??

Thanks again, I'm still getting the hang of this.

sabret00the 05-26-2004 12:01 PM

HTML Code:

<if condition="$bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7">
 
 $vbphrase[posts]: $post[posts]
 </if>

should fix it

neocorteqz 05-26-2004 12:09 PM

Sweet, thanks again.

Wifey 01-17-2005 03:20 PM

Okay so you're trying to hide it from admins posts?

I'm trying to get a profile field that only admins/mods can edit and it shows up in only their postbits. Would I use this to do that? (Thanks neocorteqz for linking me here)

neocorteqz 01-17-2005 03:57 PM

Quote:

Originally Posted by ashkarita
Okay so you're trying to hide it from admins posts?

I'm trying to get a profile field that only admins/mods can edit and it shows up in only their postbits. Would I use this to do that? (Thanks neocorteqz for linking me here)

trying to hide it from normal members. What i was trying to accomplish was making it so that admins and other usergroups i defined would be able to view post counts, and any usergroup not in the conditional would not be able to see it.

Wifey 01-22-2005 05:27 PM

OO okay so that's close to what I want to do.

What I'm trying to do is get a profile field that only mods and admins can edit and see. Maybe I'll poke around vB2 forum and see if I can find something close and mod it :)

cbr929rrerion 01-30-2006 04:20 PM

Code:

<if condition="$bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7">
 
$bbuserinfo['fieldX']
 </if>

So would this work if I wanted to restrict a profile field to admin, reg users and mod ?

I have a profile field that allows you to upload a video to your profile, I dont want non-member to be able to view it.

it would be ok to replace it with an image or something.. any help would be appreciated..


All times are GMT. The time now is 08:04 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.01046 seconds
  • Memory Usage 1,728KB
  • 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)bbcode_code_printable
  • (4)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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