News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

Main Menu

How to redirect user after login

Started by angeldevil, January 06, 2007, 08:01:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

angeldevil

Hi, I've a little question:
how to automatically redirect the user in ->thumbnails.php?album=lastupby&uid=X after login?

Many tnx in advance
a

Nibbler

Assuming you are not bridged, login.php

change

$referer=preg_replace("'&'","&",$referer);

to

$referer='thumbnails.php?album=lastupby&uid=' . USER_ID;

angeldevil

Quote from: Nibbler on January 06, 2007, 08:51:43 PM
Assuming you are not bridged, login.php

change

$referer=preg_replace("'&'","&",$referer);

to

$referer='thumbnails.php?album=lastupby&uid=' . USER_ID;

Hi Nibbler, yes I've not bridged gallery. Tnx for the your suggestion but I've tryed it without success. After login I have been redirected in a "last uploaded by anonymous" empty page, instead of my "last uploaded by [myself]" page.
How to fix?
a

Nibbler

Sorry, use

$referer='thumbnails.php?album=lastupby&uid=' . $USER_DATA['user_id'];

angeldevil

Yes Nibbler, now all work fine!  :)

Thank you
a