Author Topic: [1.7.3 - 1.7.6] After login always redirect to index.php  (Read 86049 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
[1.7.3 - 1.7.6] After login always redirect to index.php
« on: October 11, 2008, 04:44:58 AM »
After login 4images redirects to index.php instead of the same page the visitor logged in at.

In global.php find:
  $url get_basefile(getenv("HTTP_REFERER"));


Replace it with:
  $url get_basename(getenv("HTTP_REFERER"));
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 ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #1 on: October 11, 2008, 10:59:37 AM »
yes vano, works fine ;)
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #2 on: October 11, 2008, 12:06:14 PM »
V@no,
            Not working for me   :(  .. Still it redirects to index.php ..


Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #3 on: October 11, 2008, 12:18:22 PM »
this site(s) redirects to index.php
index.php,login.php,register.php,member.php
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #4 on: October 11, 2008, 04:17:40 PM »
I need in this way ... . If one user is logging in  on detail page then he should remain in that detail page after login. Is it possible ?


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 #5 on: October 11, 2008, 06:31:36 PM »
That's what this fix does.
If if it doesn't work for you, there is must be something else you've modified that prevents it from working properly...

P.S.
I haven't test this fix on other 4images version then v1.7.6, however I pretty sure it should work on v1.7.3 and newer.
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 batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #6 on: October 12, 2008, 07:15:13 AM »
hmm..  :(  .. then how to find out that ??


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 #7 on: October 12, 2008, 10:41:25 AM »
add this into user_logininfo.html template:
Code: [Select]
<?php
global $url$user_info;
if (
$user_info['user_level'] == ADMIN) echo "URL: ".$url;
?>
Login as administrator and see what it shows
If it shows correct path, then most probably something wrong with your login.php file
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 batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #8 on: October 12, 2008, 12:49:21 PM »
Hi,
     It shows "URL: index.php"   .  Is this correct ?

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 #9 on: October 12, 2008, 04:29:00 PM »
If on every page, then, no its not correct.
Please attach your global.php
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 DilnüvaZ

  • 4images Moderator
  • Hero Member
  • *****
  • Posts: 527
  • Gönül Okşayıcı
    • View Profile
    • Nuvanda Resimlere Dair Ne Varsa
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #10 on: October 13, 2008, 09:48:18 AM »
it is work very well thanks...

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #11 on: October 14, 2008, 04:23:09 AM »
Yes V@no .. its on every page .. 

Here is my global.php

Code: [Select]
removed
« Last Edit: October 14, 2008, 11:55:55 PM by V@no »

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 #12 on: October 14, 2008, 04:51:44 AM »
OK, did you try this fix at all? Your global.php doesn't have this fix applied. I tried using your global.php with fix applied on my test site and it worked fine.
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 batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #13 on: October 14, 2008, 04:29:17 PM »
Yes the file I have provided doesn't contain the fix. 
I have applied the mentioned change in my test site.. there also its not working .. :(

can you please send me the modified global.php file..


Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.407
    • View Profile
    • 4images - Image Gallery Management System
Re: [1.7.3 - 1.7.6] After login always redirect to index.php
« Reply #14 on: October 14, 2008, 04:52:17 PM »
Thanks for the fix. Works great!
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

 

Post your comments here