PDA

View Full Version : Permissions for Forum Sidebar Blocks


addamroy
03-15-2013, 02:23 PM
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.

Skivey
03-22-2013, 01:24 PM
this is what I have in mine. Paid members only see "Welcome to the forums" while everyone else sees the adverts.

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;