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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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