![]() |
How do i check if the user is part of a group
Hello,
I've created a forum and inside the description i added a html code that embed a flash palyer. The code works great! <div style="border:0px solid red;margin-top:5px;"> <embed src="/flv_mediaplayer44/player.swf" width="350" height="20" bgcolor="#E1E4F2" allowscriptaccess="always" allowfullscreen="true" flashvars="file=/media/fileoftheweek_indi.mp3" /> </div> I want to take it one step higher and i want to add a code that checks if the user is part of the registered group. If he is, then i show the code for the flash player. Is this feasable? Thanks Marco |
Well, the code for checking for usergroups would be either:
In a template: HTML Code:
<if condition="is_member_of($bbuserinfo, x,y,z)"> PHP Code:
I have no idea if that will work in your description. If not, you'll have to edit your templates to use the condition. |
You did this in a template?
You could always stick that code in a template conditional... Code:
<if condition="$bbuserinfo[userid] != 0"> |
1 Attachment(s)
no, not on a template... directly on my forum description (check image)... it's working perfectly and the users are very happy....
i think condition don't work in forum descriptions...i'm not sure about php , if i only know how to put php in html.... any ideas? i'll keep doing some research. If nothing comes out, i guess i'll have to modified the template... thanks again |
If the condition doesn't work in the description (and I would guess it doesn't), then you will have to do some sort of template edit or maybe a plugin.
|
All times are GMT. The time now is 05:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|