The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
what is the code for limiting access to certain usergroup?
what is the code to make only certain usergroups view things
|
#2
|
|||
|
|||
That would be under either the forum permissions if you wanted to modify forum access, or for most other things it would be under the edit usergroup page (ie vBplaza, vbux, etc. I few things like the shoutbox permissions are changed under the main settings page.
|
#3
|
|||
|
|||
thanks, i knew that in the acp some things have a permission setting. but what about those that you have to add a code into the template for it to work.
|
#4
|
||||
|
||||
a simple conditional would do.
Code:
<if condition="is_member_of($bbuserinfo, USERGROUPID)">Some Codes Go HERE</if> |
#5
|
||||
|
||||
another would be:
Code:
<if condition="$show['guest']"> content for guests goes here... <else /> content for everyone else goes here... </if> |
#6
|
||||
|
||||
what would the conditional be to limit access to certain code only being displayed in certain forums. Let's say I don't want a certain gif image to be displayed in postbit in one particular forum? how would I do that?
|
#7
|
||||
|
||||
I don't think that can be done by conditionals in template. You would have to write some plugin or modifying the file.
|
#8
|
||||
|
||||
Code:
<if condition="$foruminfo[forumid] == XX"> <center><img src="images/lobby_head.gif" alt="Lobby" /></center> </if> <if condition="$foruminfo[forumid] == XX"> <center><img src="images/news_head.gif" alt="News" /></center> </if> |
#9
|
||||
|
||||
thanks much acidburn0520. Lets say I wanted to put this in postbit to disallow the IP address tracking for a certain forum - would it look like this?
Code:
<if condition="$foruminfo[forumid]==49"> <else /> <if condition="$post[iplogged]">$post[iplogged] <else />$post[iplogged]</if> </if> |
#10
|
||||
|
||||
No, I don't think that's possible without some extra hacking. Wouldn't that be somewhat pointless, seeing as someone could get the IP Address from a post by a specific user in another forum?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|