The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with displaying an image in a forum block based onusergroup membership
A little bit of background here to help with my question:
I am planning on creating some forums that, by default are not visible on the forumdisplay template, but are accessable based on usergroup membership (ie: if UserX is a member of usergroup #12 they have access to forum #9). That part is easy as it's simple forum permissions. What I would like to do is create a forumblock that displays an image (in this case a treasure map) that has been coded so that the user can get to the forum by clicking a link within the image (a simple imagemap), which is where I am in the coding aspect. My imagemap is as follows: PHP Code:
Would I be correct in thinking that if I used this code: Code:
if (is_member_of($vbulletin->userinfo, 12)) { the code above } else { display some other image } Code:
if (is_member_of($vbulletin->userinfo, 12)) { the code above } else if (is_member_of($vbulletin->userinfo, 13)) { display image#2 } else if (is_member_of($vbulletin->userinfo, 14)) { display image#3 } Thanks for your assistance. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|