coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: m0nty on December 14, 2004, 12:37:53 PM

Title: redirect un-registered users to login (bridged vb3)
Post by: m0nty on December 14, 2004, 12:37:53 PM
hi, a client of mine asked me last night if it was possible to make her gallery viewable to members only, which i know is possible.

but she requires that people who aren't logged on to not be able to view the gallery at all, and would like them to be redirected to the login page.

i found this topic > http://forum.coppermine-gallery.net/index.php?topic=3503.20

but it's just for standalone version, and i'm wondering if this would still work with a CPG 1.3.2 bridged VB3 install, or would further hacking be needed?

i'm not at home for a couple days, so i can't access her server or my test server at home to be able to try it but i would like to know if the if (USER_ID) method will work the same.

regards

Vaughan
Title: Re: redirect un-registered users to login (bridged vb3)
Post by: Nibbler on December 14, 2004, 02:32:44 PM
It'll work. The bridge files still set the standard constants like USER_ID and USER_NAME.