PDA

View Full Version : Using VB authentication for external pages


The Watcher
October 31st, 2003, 02:55 PM
I have another question ...

I have installed vb to the /forums/ directory on my server. I also have a /sites/ directory which contains :

/sites/site01/
/sites/site02/
/sites/site03/

What I want to know is, is it possible to use the user ranks feature in vb to limit access to these 3 subsites/folders. I would like it so that only registered froum users can view site 01, only plus members can view site 02 and only premium members can view site03.

I'm sure this is possible by adding a simple php call function to the top of each php page in the sites sections but the question is - what function do i use ???

thanks

Floris
October 31st, 2003, 03:18 PM
Make a default.php file with details from vb3 and do a php check on the user, his permissions, usergroup and his posts. See how it is done in misc.php and slim that down :)

The Watcher
October 31st, 2003, 04:28 PM
thank you