PDA

View Full Version : 1.5beta1 - kick back to were you came from after edit thumbnail


eon
12-21-2005, 12:24 PM
After you edit a thumbnail in "Images" you are kick back to "New image" instead of "Images".

I have solved this problem in my modification (http://www.pixelpost.org/v1/index.php?x=downloads&details=131).
File: 12cropimageincscripts.php. After this code,
$cfgrow = mysql_fetch_array($cfgquery);
put this code:
//url kicker
if (!empty($_GET['view'])){
$url="?view=".$_GET['view'];
}
and ~row 69 this code:
var url = '?x=12cropthumb&kickto=".$url.

So it will pickup a part of the url and pass it through.

File: 12cropimageinc.php. After this row
$file = $_GET['filename'];
this code:
$kickto = $_GET['kickto'];
and ~row 43
header("Location: index.php".$kickto);

So it will catch the part of the url ans place it behind the url.
Now you will always return from were you came from.

se.nsuo.us
03-14-2006, 04:53 AM
Umm... instead of doing all this if in file 12cropimageinc.php we change the line header("Location: index.php");
to
header("Location: index.php?view=images");

It will work just as well

GeoS
03-14-2006, 04:13 PM
Fixed on CVS.