4images Help / Hilfe > Bug Fixes & Patches

[1.7.3 - 1.7.6] After login always redirect to index.php

<< < (6/7) > >>

V@no:
Hello and welcome to 4images forum.

I don't know how your login page works, but you can try "capturing" the page visitor came from and then adding it into a hidden <input>:

--- Code: ---<input type="hidden" name="url" value="blah.php" />
--- End code ---

tanirtheone:
www.photobangla.com

pls visit it if u hv sir.. and sorry for the late responce cz of my screwed net ..

well just did a bit of modification !!! if u want i can send u the php files.... not too big a modification was done .... but its quiet goood hope u like it !!!

welll um a noob in php ... but if u can pls explain how the input capturing thing works in a bit more detail then it will b a great help

and plus do we have a mod in which v can search the image by its ID .....
and nother mod...very imp....
by which v can dl the Image using the image ID but not he name wit which it was uploaded .... thnks in advance ur responce is highly anticipated @ V@no !!

k1lljoy:
Hi, V@no!  :)
This fix also didn't work for me - always ge redirected to index.php
I have this MOD installed: Search Engine Friendly URLs aka Short URLs ( http://www.4homepages.de/forum/index.php?topic=6729.0 ), may it be the issue?  :roll:

By the way, after adding

--- Code: ---<?php
global $url, $user_info;
if ($user_info['user_level'] == ADMIN) echo "URL: ".$url;
?>
--- End code ---
into user_logininfo.html - I always see "URL: index.php" there...

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


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

--- End code ---

k1lljoy:
That worked out!  8O :D
Thank You, V@no!!  :thumbup:


--- Quote from: V@no on December 18, 2009, 06:30:17 AM ---Try add into user_loginform.html above </form>:


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

--- End code ---

--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version