The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Permissions for Forum Sidebar Blocks
There really needs to be a way to add conditionals to our sidebar blocks.
In particular: USERGROUP permissions and FORUM SECTION permissions One feature that would be great is to enable/disable for usergroups. One example, guests see advertisements, members don't. There are already mods now that allow you to display the sidebar on pages other than the homepage, so nothing needs to be done there. But now we need to enable/disable for forum sections. So I think there are a million of us that would agree, a modification that solely allows us to use usergroup and forum section conditionals for each forum sidebar block. |
#2
|
|||
|
|||
this is what I have in mine. Paid members only see "Welcome to the forums" while everyone else sees the adverts.
HTML Code:
if(is_member_of(vB::$vbulletin->userinfo,24)){ $my_output='<center><b>Welcome to the Forum</b></center>'; }else{ $my_output='<script type="text/javascript"><!-- google_ad_client = "ca-pub-2764312150803413"; /* sideblock */ google_ad_slot = "1598615235"; google_ad_width = 250; google_ad_height = 250; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>'; } return$my_output; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|