PDA

View Full Version : Question about a link



Blackice
03-28-2006, 02:32 PM
Hey,

I have a question,

I just added 2 links to my Quick Links, and I want them to show up JUST for usergroup 9 (its a custom usergroup) and usergroup 6 (admin of coarse).

This is the code I have..


<tr>
<if condition="is_member_of($bbuserinfo['usergroupid'], 9,6)">
<td class="vbmenu_option"><a href="vbimghost.php?do=upload" >Upload Image</a>
</td>
</if>
</tr>

<tr>
<if condition="is_member_of($bbuserinfo['usergroupid'], 9,6)">
<td class="vbmenu_option"><a href="vbimghost.php?" >Your Images</a>
</td>
</if>
</tr>

The links show up for Admins, but not my News Team (group 9)

is there somethin im doin wrong?

Thanks alot :D

Blackice
03-28-2006, 08:41 PM
Hmm, i figured out why its not showing up for them, because its their secondary usergroup. is there a way to make it show to secondary usergroups?

Joeychgo
03-28-2006, 08:50 PM
Im not sure. Ive had similar problems with secondary usergroups.

Blackice
03-28-2006, 09:07 PM
Yea, maybe ill just have it so everyone can see the link and only the news group can enter

Noppid
03-28-2006, 09:16 PM
<tr>
<if condition="is_member_of($bbuserinfo,9,6)">
<td class="vbmenu_option"><a href="vbimghost.php?do=upload" >Upload Image</a>
</td>
</if>
</tr>

<tr>
<if condition="is_member_of($bbuserinfo,9,6)">
<td class="vbmenu_option"><a href="vbimghost.php?" >Your Images</a>
</td>
</if>
</tr>

Should work...

You pass the array, not the specific element.

BTW you are passing and empty row with that code if it's false. (<tr></tr>)

Blackice
03-28-2006, 09:19 PM
^^Thank you

and your right :O

how can i make it so if the usergroup doesnt match it doesnt show the empty row?

thanks for helpin out, ill try it out right now :)

Joeychgo
03-28-2006, 09:27 PM
There ya go, I knew Noppid would have the answer.

Peggy
03-28-2006, 10:09 PM
our hero! :D

Blackice
03-28-2006, 11:38 PM
Yeah, thanks so much :D It worked great!!