eon
12-15-2005, 03:08 PM
In this (http://forum.pixelpost.org/showthread.php?t=2815) tread ttlive asked for an "edit this image"-link.
An "edit this" option directly from the Post would be wounderful.
In case I am loged-in in the Admin section and I surfe through my PP blog, than an "edit this" option would be amazing. The Login is saved anyway somewhere, because I don't have to use the PW if I reenter the Adminsection again on the e.g. next day.
In case if there are a lot of images are saved in the database, it is a long way to scroll via "Images/Older Images..." to edit an picture (Title, Category or description / text) that was published a long time ago.
I don't know whether this post ist correct in "Hacks and Modifications" or should have been published in Addon. If it should have been published in Addon, than I am sorry.
Is there a change to get an option like this, sometimes?
I have the same problem and I made a little addon for this called "Fastedit".
http://www.northing.nl/programs/fastedit.tar.gz
(I don't have zip, but you can open tar.gz with 7-zip (http://www.7-zip.org/))
<FAST_EDIT> is the tag to use in your template.
The cookie of pixelpost_admin is stored in /admin.
I can't reach this cookie out of index.php (any suggestions?)
So I moved the cookie to the root ("/").
Edit /admin/index.php
- row 126
if (setcookie("pixelpost_admin",$cfgrow_password,time() +60*60*60*60, "/"))
- row 135
setcookie("pixelpost_admin","nope",time() -60, "/");
This is the code of the addon:
if(!isset($_COOKIE['pixelpost_admin']) && $cfgrow['password'] != $_COOKIE['pixelpost_admin']) {
$tpl = str_replace("<FAST_EDIT>","",$tpl); //delete <FAST_EDIT> when there is no valid cookie
}else{
$fastedit = "<a href=\"/admin/index.php?view=images&id=$image_id\">Admin</a>";
$tpl = str_replace("<FAST_EDIT>",$fastedit,$tpl); //show link
}
Have much fun with the Addon!
An "edit this" option directly from the Post would be wounderful.
In case I am loged-in in the Admin section and I surfe through my PP blog, than an "edit this" option would be amazing. The Login is saved anyway somewhere, because I don't have to use the PW if I reenter the Adminsection again on the e.g. next day.
In case if there are a lot of images are saved in the database, it is a long way to scroll via "Images/Older Images..." to edit an picture (Title, Category or description / text) that was published a long time ago.
I don't know whether this post ist correct in "Hacks and Modifications" or should have been published in Addon. If it should have been published in Addon, than I am sorry.
Is there a change to get an option like this, sometimes?
I have the same problem and I made a little addon for this called "Fastedit".
http://www.northing.nl/programs/fastedit.tar.gz
(I don't have zip, but you can open tar.gz with 7-zip (http://www.7-zip.org/))
<FAST_EDIT> is the tag to use in your template.
The cookie of pixelpost_admin is stored in /admin.
I can't reach this cookie out of index.php (any suggestions?)
So I moved the cookie to the root ("/").
Edit /admin/index.php
- row 126
if (setcookie("pixelpost_admin",$cfgrow_password,time() +60*60*60*60, "/"))
- row 135
setcookie("pixelpost_admin","nope",time() -60, "/");
This is the code of the addon:
if(!isset($_COOKIE['pixelpost_admin']) && $cfgrow['password'] != $_COOKIE['pixelpost_admin']) {
$tpl = str_replace("<FAST_EDIT>","",$tpl); //delete <FAST_EDIT> when there is no valid cookie
}else{
$fastedit = "<a href=\"/admin/index.php?view=images&id=$image_id\">Admin</a>";
$tpl = str_replace("<FAST_EDIT>",$fastedit,$tpl); //show link
}
Have much fun with the Addon!