Author Topic: [1.7.3 - 1.7.6] After login always redirect to index.php  (Read 83898 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #30 on: December 18, 2009, 06:30:17 AM »
Try add into user_loginform.html above </form>:

Code: [Select]
<?php
global $self_url;
echo 
'
      <input type="hidden" name="url" value="'
.$self_url.'" />
'
;
?>

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline k1lljoy

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Razruha.Ru
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #31 on: December 18, 2009, 07:20:07 AM »
That worked out!  8O :D
Thank You, V@no!!  :thumbup:

Try add into user_loginform.html above </form>:

Code: [Select]
<?php
global $self_url;
echo 
'
      <input type="hidden" name="url" value="'
.$self_url.'" />
'
;
?>



Offline shahrahan

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • میلگرد
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #32 on: December 30, 2018, 07:35:50 AM »
If on every page, then, no its not correct.
میلگرد | قیمت میلگرد