redirect un-registered users to login (bridged vb3) redirect un-registered users to login (bridged vb3)
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

redirect un-registered users to login (bridged vb3)

Started by m0nty, December 14, 2004, 12:37:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m0nty

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

Nibbler

It'll work. The bridge files still set the standard constants like USER_ID and USER_NAME.