![]() |
Need a conditional please?
Hi peeps
I have this code to show some rotating banners/ads Code:
<p align="center"> Can anyone advise please |
you would then want to put
Code:
<if condition="is_member_of($user, usergroup id number of your VIP group eg 17)"> Code:
</if> |
Thanks KA will try this :)
|
Hi KA
How would i create a conditional for 1 or multiple members then? example: We have the Moderator Application system installed, We have 1 or 2 members that are repeatedly filling in the application, i would therefore like to be able to add there user ID's to the condtional for the link in the quick links menu, i just aint sure as to the condional to use? |
Where the userIDs are 1 2 and 3:
Code:
<if condition="in_array($vbulletin->userinfo['userid'], array(1, 2, 3))">...</if> Code:
<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7) or in_array($vbulletin->userinfo['userid'], array(1, 2, 3))"> PHP Code:
Code:
<if condition="$show['moderator_app_links']"> |
Hi Sir :)
Thannks, i will have a good read of these and see whats what, thanks again :) I take it thats a plugin to create? then just update it as and when? |
Yeah it's a plugin. I'm not sure I understand your question though...
|
I meant just update it with each user that i dont want to see the link?
Actually i have just tried this and the user in question can still see and click the link heres what i have in the template Code:
<if condition="$show['moderator_app_links']" <tr><td class="vbmenu_option"><a href="$vboptions[bburl]/modapp.php?$session[sessionurl]">Apply To Be A Mod</a></td></tr></if> Code:
$moderator_usergroups = array(5, 6, 7); What do i do to turn it round please? |
lol
PHP Code:
|
Thats the 1 m8, thank you very much for your help!! :)
|
All times are GMT. The time now is 06:42 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:
|