Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 12-26-2005, 11:30 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
GeoS EDIT THIS

Today I wrote for myself something like this:

Name: GeoS EDIT THIS
Addon details:
Version: 0.2
Added: 2005-12-26 06:18:42
Updated: 2005-12-26 06:44:42
Category: addon
Requires Pixelpost version: 1.5 BETA or newer

Description:
GeoS EDIT THIS ADDON makes enable link to 'Edit this picture' in front end of PixelPost (template tag <GEOS_EDIT_THIS>) if user browsing the site is logged in admin.

EDIT:
Small "bugfix".
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #2  
Old 12-26-2005, 11:31 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
How is this different from the Fast Edit Addon?
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some]
My Pixelpost Addons, Cheesecake-Photoblog Software
Reply With Quote
  #3  
Old 12-26-2005, 11:32 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
It uses sessions. It isnt hack. You can turn it off from admin panel.

PS I didnt check Fast Edit Addon. I only saw its code in forum in previous posts.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #4  
Old 12-26-2005, 11:34 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
Fast Edit for 1.5 also uses session and is an addon (read - can be turned off from admin panel)

Anyway great to have more than one way to do the same thing
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some]
My Pixelpost Addons, Cheesecake-Photoblog Software
Reply With Quote
  #5  
Old 12-26-2005, 11:36 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
If so Ill check its code right now.

EDIT:
IMHO Fastedit doesnt use sessions but cookies and is compatabile with older PP versions (1.4.2 or newer).
In PP 1.5BETA there is a little better solved security issue. I mean loging in process, cookie storing, ... . Thats why Fastedit isnt compatabile with next public version of PP.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #6  
Old 12-26-2005, 11:55 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
At the risk of sounding arguementative I would like to post this line from Fast Edit for 1.5
PHP Code:
if(!isset($_SESSION["pixelpost_admin"]) || $cfgrow['password'] != $_SESSION["pixelpost_admin"]) { 
I know this because I am using it since morning on my site and I usually do not use code which I have not looked thru

I am sorry I do not off hand remember the URL from where I downloaded the Fast Edit version for 1.5 may be the original author of Fast Edit will stumble upon the thread and take it further

EOT for me
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some]
My Pixelpost Addons, Cheesecake-Photoblog Software
Reply With Quote
  #7  
Old 12-26-2005, 12:03 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Yeap. This code isnt at our site. Thats why I was talking about sessions.

After that both addons are the same (only difference is that I should check password)

EDIT: Im moving my addon off the site.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #8  
Old 12-26-2005, 12:16 PM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
and you complained that connie and i were working on similar things :P
__________________
touchnothing.net
Reply With Quote
  #9  
Old 12-26-2005, 01:38 PM
eon's Avatar
eon Offline
pixelpost guru
 
Join Date: Nov 2005
Location: Ned
Posts: 280
Send a message via ICQ to eon
For the people who want use "Fastedit for Pixelpost 1.5", you can find it here or here.

And this is de code:
PHP Code:
$addon_name "Fastedit for Pixelpost 1.5";
$addon_description "Display a link/shortcut on your Pixelpost-homepage when you are logged in as admin. The link $
(Don't forget to place <FAST_EDIT> someware image_template.html)"
;
$addon_version "1";

//change this if you want.
$link_name "| Admin";

if(!isset(
$_SESSION["pixelpost_admin"]) || $cfgrow['password'] != $_SESSION["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\">$link_name</a>";
        
$tpl str_replace("<FAST_EDIT>",$fastedit,$tpl); //show link

The template tag is <FAST_EDIT>.
__________________
Northing.nl
Reply With Quote
  #10  
Old 12-26-2005, 02:25 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
check out my new addon my friends happy new year :P
http://forum.pixelpost.org/showthrea...1490#post21490
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:15 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs