PDA

View Full Version : Adding Permissions to Custom vB Page


Masked Crusader
05-01-2010, 06:25 AM
Hey all.

I used this tutorial -- https://vborg.vbsupport.ru/showthread.php?t=62164 -- to create a custom page.

The page is working great and everything is the way it should be, with the exception that unregistered users can view the page.

How can I make it so that certain usergroups cannot visit the page and get the vBulletin default permission denied error?

Thanks!

sheppardzwc
05-10-2010, 03:49 AM
Hey all.

I used this tutorial -- https://vborg.vbsupport.ru/showthread.php?t=62164 -- to create a custom page.

The page is working great and everything is the way it should be, with the exception that unregistered users can view the page.

How can I make it so that certain usergroups cannot visit the page and get the vBulletin default permission denied error?

Thanks!
Usually something like:

if(!$show['member']) {
print_no_permission();
}

works fine. Either way, the function you want to manipulate is print_no_permission(); :)