How to redirect user after login How to redirect user after login
 

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

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