4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 19, 2018, 10:47:29 PM

Login with username, password and session length
Search:     Advanced search
4images is now on facebook. Click here and become a fan!
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Bug Fixes & Patches
| | |-+  [1.7.3 - 1.7.6] After login always redirect to index.php
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 » »» Print
Author Topic: [1.7.3 - 1.7.6] After login always redirect to index.php  (Read 77663 times)
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« 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:
1
  $url get_basefile(getenv("HTTP_REFERER"));

Replace it with:
1
  $url get_basename(getenv("HTTP_REFERER"));
Logged

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)
ivan
4images Moderator
4images Guru
*****
Offline Offline

Posts: 2279

Thank You
-Given: 4
-Receive: 31


View Profile WWW
« Reply #1 on: October 11, 2008, 10:59:37 AM »

yes vano, works fine Wink
Logged

greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery
batu544
Sr. Member
****
Offline Offline

Posts: 336

Thank You
-Given: 2
-Receive: 29


View Profile WWW
« Reply #2 on: October 11, 2008, 12:06:14 PM »

V@no,
            Not working for me   Sad  .. Still it redirects to index.php ..

Logged

ivan
4images Moderator
4images Guru
*****
Offline Offline

Posts: 2279

Thank You
-Given: 4
-Receive: 31


View Profile WWW
« 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
Logged

greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery
batu544
Sr. Member
****
Offline Offline

Posts: 336

Thank You
-Given: 2
-Receive: 29


View Profile WWW
« 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 ?

Logged

V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« 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.
Logged

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)
batu544
Sr. Member
****
Offline Offline

Posts: 336

Thank You
-Given: 2
-Receive: 29


View Profile WWW
« Reply #6 on: October 12, 2008, 07:15:13 AM »

hmm..  Sad  .. then how to find out that ??

Logged

V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« Reply #7 on: October 12, 2008, 10:41:25 AM »

add this into user_logininfo.html template:
1
2
3
4
<?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
Logged

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)
batu544
Sr. Member
****
Offline Offline

Posts: 336

Thank You
-Given: 2
-Receive: 29


View Profile WWW
« Reply #8 on: October 12, 2008, 12:49:21 PM »

Hi,
     It shows "URL: index.php"   .  Is this correct ?
Logged

V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« Reply #9 on: October 12, 2008, 04:29:00 PM »

If on every page, then, no its not correct.
Please attach your global.php
Logged

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)
DilnüvaZ
4images Moderator
Hero Member
*****
Offline Offline

Posts: 527

Thank You
-Given: 1
-Receive: 2

Gönül Okşayıcı


View Profile WWW
« Reply #10 on: October 13, 2008, 09:48:18 AM »

it is work very well thanks...
Logged

batu544
Sr. Member
****
Offline Offline

Posts: 336

Thank You
-Given: 2
-Receive: 29


View Profile WWW
« Reply #11 on: October 14, 2008, 04:23:09 AM »

Yes V@no .. its on every page .. 

Here is my global.php

« Last Edit: October 14, 2008, 11:55:55 PM by V@no » Logged

V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« 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.
Logged

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)
batu544
Sr. Member
****
Offline Offline

Posts: 336

Thank You
-Given: 2
-Receive: 29


View Profile WWW
« 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 .. Sad

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

Logged

kai
Administrator
Addicted member
*****
Offline Offline

Posts: 1405

Thank You
-Given: 66
-Receive: 199


View Profile WWW
« Reply #14 on: October 14, 2008, 04:52:17 PM »

Thanks for the fix. Works great!
Logged


Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search
Pages: [1] 2 3 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.041 seconds with 19 queries.