The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have a variable which would be this,
PHP Code:
I tried <if condition=\"is_member_of($bbuserinfo, 6)\"> </if> but for some reason that didnt work. I then tried something simpler <if condition="$show['admincplink']"> but that gives me a T_string error. So I have no idea how I can hide this fieldset from all users but admins |
|
#2
|
||||
|
||||
|
Code:
if ($show[admin]){
$parse_link_results_add = '\n
<fieldset class=\"fieldset\">
<legend>$vbphrase[parse_link_legend]</legend>
<div>$vbphrase[hidden_results_legend_info]</div>
</fieldset>
'; }
|
|
#3
|
|||
|
|||
|
That didnt work, instead it hides the whole thing from me.
Edt: Sorry didnt read your last part. |
|
#4
|
||||
|
||||
|
You should try something else like is_member_of
|
|
#5
|
|||
|
|||
|
Thanks Lynne and FRDS.
Finally managed to get that script sorted out couldnt have done it without you. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|