Advanced search  

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

Pages: [1]   Go Down

Author Topic: How to redirect user after login  (Read 3620 times)

0 Members and 1 Guest are viewing this topic.

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107
How to redirect user after login
« on: January 06, 2007, 08:01:40 pm »

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
« Last Edit: January 06, 2007, 09:47:31 pm by Nibbler »
Logged
a

Nibbler

  • Guest
Re: How to redirect user after login
« Reply #1 on: January 06, 2007, 08:51:43 pm »

Assuming you are not bridged, login.php

change

Code: [Select]
$referer=preg_replace("'&'","&",$referer);
to

Code: [Select]
$referer='thumbnails.php?album=lastupby&uid=' . USER_ID;
Logged

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107
Re: How to redirect user after login
« Reply #2 on: January 06, 2007, 09:29:27 pm »

Assuming you are not bridged, login.php

change

Code: [Select]
$referer=preg_replace("'&'","&",$referer);
to

Code: [Select]
$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?
Logged
a

Nibbler

  • Guest
Re: How to redirect user after login
« Reply #3 on: January 06, 2007, 09:34:36 pm »

Sorry, use

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

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107
Re: How to redirect user after login
« Reply #4 on: January 06, 2007, 09:45:20 pm »

Yes Nibbler, now all work fine!  :)

Thank you
Logged
a
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.