Galery only for registered users. Galery only for registered users.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Galery only for registered users.

Started by taucher_0815, August 14, 2010, 06:05:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

taucher_0815

Hi @all!

I set up a new gallery on http://www.640stel-sekunde.de

This is only for registered users.
Is it possible (and if yes, how) to display the anycontent.php also to unregistered users?
Right now if you open the gallery you will be directed strait to the login.php

Many thanks!
Sven

papukaija

Reading the documentation is part of board rules. There's even an example code here. Please reply if the example helped and then mark the thread as solved.

taucher_0815

Hi papukaija!

I have read the docs 4 sure... But this did not work for me.

The Index-page is not displayed and the user is redirected to the login-page immediately.
The Config of this gallery is set to be visible for registered users only. 
Even with the line of code from the example nothing is displayed.

Sven

Αndré

Open login.php, find
if ($superCage->get->getInt('force_login')) {
    msg_box($lang_login_php['force_login_title'], $lang_login_php['force_login']);
}

and replace with
if ($superCage->get->getInt('force_login')) {
    msg_box($lang_login_php['force_login_title'], $lang_login_php['force_login']);
}

include('anycontent.php');

taucher_0815