PDA

View Full Version : Images can be viewed too early


XerXes
05-13-2005, 02:49 PM
I tend to upload a bunch of images to my photoblog at a time and then set the appropriate posting times in the admin interface. This should make sure, that the images would only be seen, when I set the to. However, one of my friends discovered this bug:

If you click on any of the old images, the url will change to something like http://fotoblog.xerxes.dk/index.php?showimage=xx, where xx is the id of the image. He found out that you can easily alter the id into a bigger number and see the newer images.

I solved the bug by replacing line 135 with this:
$row = sql_array("select * from ".$pixelpost_db_prefix."pixelpost where (id='".$_GET['showimage']."') AND datetime<='$cdate'");

raminia
05-13-2005, 03:22 PM
yeah!
thanks:)

XerXes
05-13-2005, 03:38 PM
You're welcome :-)

raminia
05-13-2005, 04:43 PM
I made this correction in the CVS version.

fauxtog
06-10-2005, 10:40 PM
The funny thing is that I kinda like being able to see ahead on my own blog. I often forget what pictures I've uploaded for future days and like to look at them full size within the template to see how they look.

It would be cool if this was something we could turn off or on in the admin.

Kenneth K
06-14-2005, 11:44 AM
I'm with fauxtog.

I preview all my posts before they go live to correct my terrible writing and I would really hate if I couldn't do that in a new version of pp.

If the previewing is removed I would really really want some other kind of previewing. A preview feature from inside the admin section would rock. :)

Kenneth

Connie
06-14-2005, 12:51 PM
Kenneth,

if you set the date in future and then in admin, go to IMAGES you can edit all images, you will see the text etc.

that is kind of "preview"... but not the complete view, I know

raminia
06-14-2005, 03:47 PM
try previewing after pressing edit button for that image when you set 12CropImage tool in the admin >> Thumbnail >> Crop Images. It works.

Kenneth K
06-22-2005, 05:06 PM
raminia, Connie: I know but it's still not a true preview. If I make any links I would like to see them formatted and not just the code.

raminia
06-22-2005, 05:48 PM
I underestand good point. :wink: