|
#1
|
||||
|
||||
|
In this tread ttlive asked for an "edit this image"-link.
Quote:
http://www.northing.nl/programs/fastedit.tar.gz (I don't have zip, but you can open tar.gz with 7-zip) <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 PHP Code:
PHP Code:
PHP Code:
Have much fun with the Addon!
__________________
Northing.nl Last edited by eon; 12-15-2005 at 05:50 PM. Reason: grammar + read suggestion Joe[y] |
|
#2
|
||||
|
||||
|
what if pixelpost really is in the root - ie, what to put instead of /pixelpost/ ?
__________________
Affordable Website Design in North Wales |
|
#3
|
||||
|
||||
|
I use my server to test different PHP opensource Contentmanagement-systems. Every system use his own index.php
.When your pixelpost is on root it must be "/" instand of "/pixelpost/". I will rebuild the addon for the normal user. Done
__________________
Northing.nl |
|
#4
|
||||
|
||||
|
This is an addon i always wanted, great!
Please can you explain me step by step what i need to do to use this addon. I put it in the addon directory and placed the tag <FAST_EDIT> in the image template but nothing happens. Do I also need to modify the index.php? Please explain step-by-step, i'm not a PHP code writer. |
|
#5
|
||||
|
||||
|
Quote:
There is something more that you have to do. Find in "/admin/index.php" this code. It starts at row 123. PHP Code:
BUT the addon is searching for a cookie in the directory "/", the root. So we have a problem. I thried to let the addon search in "/admin/" but that didn't work out. My solution is this. Move the cookie to "/". That's what you have to do to use the addon. Replace this script: PHP Code:
PHP Code:
Set a cookie with the name "pixelpost_admin" and it contains the password of the admin ($cfgrow_password). The cookie will be expired at "time" + 15 days (60sec * 60 * 60 * 60) and will be stored in "/". And replace this script: PHP Code:
PHP Code:
Set a cookie with the name "pixelpost_admin" and it contains the word "nope". The cookie will be expired at "time" - 60sec and wil be stored in "/". The cookie will be deleted because the time is in the history. That's all folks! I have explained this little modification in the addon itself. But maybe I made the explination too short . Let me know if it's working or not.
__________________
Northing.nl Last edited by eon; 12-17-2005 at 07:08 PM. Reason: more information |
|
#6
|
||||
|
||||
|
be aware that this addon is going to have to be re-written when 1.5 comes out
|
|
#7
|
||||
|
||||
|
Keeps me off the street
__________________
Northing.nl |
|
#8
|
||||
|
||||
|
The addon Fastedit version 1 contains a bug.
This code: PHP Code:
PHP Code:
Please replace the code or download the new version here or here. There is also an Fastedit version for Pixelpost 1.5! You can download it here or here.
__________________
Northing.nl |
|
#9
|
||||
|
||||
|
awesome addon, eon. thanks!!
|
|
#10
|
||||
|
||||
|
Quote:
__________________
Northing.nl |
| Post Reply |
| Thread Tools | |
|
|