Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 09-10-2008, 07:18 PM
aengblom Offline
forum loafer
 
Join Date: Sep 2008
Posts: 7
Does this exist? [Show alternative image on rollover]

I've been playing around with Pixelpost and it's great, but there's one thing I would do on my current "hand coded" photo blog that I was wondering if pixelpost could do.

Specifically, I set it up so that when the user rolled over the image they saw a version that had been processed in another way (usually black and white).

You can see what I'm talking about here:
http://www.aengblom.com/blog/blog110.html

Are there any addons/hacks to pixelpost that might allow this?

-Drew
Reply With Quote
  #2  
Old 09-10-2008, 07:55 PM
Trauko's Avatar
Trauko Offline
pp veteran
 
Join Date: Sep 2006
Location: Dalcahue, Chiloé
Posts: 99
Secret image

Look at this
http://www.pixelpost.org/extend/addons/secret-image/

Suerte
Reply With Quote
  #3  
Old 09-10-2008, 07:56 PM
dhdesign's Avatar
dhdesign Offline
pixelpost guru
 
Join Date: Mar 2007
Location: Ohio
Posts: 431
What you are looking for is the Secret Image addon.
__________________
My photoblog: KP Images
Reply With Quote
  #4  
Old 10-24-2008, 03:48 AM
aengblom Offline
forum loafer
 
Join Date: Sep 2008
Posts: 7
Hello all,

Thanks for the replies (and sorry for the belated thanks!). I was finally getting around to installing this and I'm finding the documentation a bit, how do you say, lax ;-). I was able to copy the addon into the directory and then turn it on, but then nothing seems to happen even when I upload two images.

Quote:
SECRET IMAGE ADDON reveals a "secret" image by a simple mouseover. You can use this addon for showing the raw image before processing or to show any other image instead.

Installation: Drop the admin_secret.php into addons folder. Create two little grafic elements for the "secret" grafic (one for normal, one for highlight) and save them as .gif-files. Upload new "secret" grafics in admin addons area

Use it: Upload the secret image along when uploading a new image. Edit the secret image in a submenu of image edit.

Adjustments: (optional) Change the title of the secret grafic in admin_secret.php (line 2) Switch off/on the JavaScript fade effect (line 3) Change the values of the JavaScript fade effect (lines 4 and 5)

Prefix for secret image: "o_" (Don't care about it unless you want to upload secret images with FTP.)

NEW TAGS (for use in image_template.html): - Main image must have attribute "name" for the JavaScript working! Put this tag after " ! - The Secret grafic with mouseover, place it wherever you want in the image_template.html

No changes to database are made.
What confuses me is whether there's something I need to do beyond copying the file into the addon director and turning it on. I'm guessing I need to make some sort of change to the template, but I just don't understand exactly what change the developer is asking me to make.

If anyone is willing to help out I'd be quite greatful. Thanks!
Reply With Quote
  #5  
Old 10-24-2008, 05:35 PM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
plz read the last part of the documentation (found in the Addons section after turning it on):

NEW TAGS (for use in image_template.html):
<ATTRIBUT_NAME> - Main image must have attribute "name" for the JavaScript working! Put this tag after <img src="images/<IMAGE_NAME>" !
<SECRET_LINK> - The Secret grafic with mouseover, place it wherever you want in the image_template.html

I just saw that in the documentation in the Extend Section this sentence is corrupted, I will repair it at once

KArin
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #6  
Old 10-24-2008, 11:08 PM
aengblom Offline
forum loafer
 
Join Date: Sep 2008
Posts: 7
Thanks for the quick reply! Sadly, I'm afraid I'm still a little confused.

This is the first time I've used an addon/edited a pixelpost template, so my apologies for my probably is an inability to read between the lines.

I can edit the template, but I'm either putting things in the wrong place or something else is going oddly.

You can my attempt here:

http://www.aengblom.com/pixelpost/in...p?showimage=35

When I hover over the "secret graphic" label the first image goes away, but nothing new comes in its place even though I loaded another graphic through the "submenu."

On a related note, I uploaded a two graphics , but they also don't show up.

Any ideas?
Reply With Quote
  #7  
Old 10-25-2008, 08:12 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
the source code of your image page is correct but it looks as if the secret image icons (s_grafic1.gif and s_grafic2.gif) and the secret image itself (o_20081023233354_courthousebuildingbw-f.jpg) are not uploaded. I get a "Forbidden" Error when I call them directly.

Please check this in your FTP program, if the images are in place (the icons in the thumbnails folder and the secret image in the images folder). Maybe the upload didn't work.
Please also check the folder permission (CHMOD) of the thumbnails and images folder, it should be set to '777' (allow everything to all).

If everything fails it may help if you could temporarily give me access to your admin area or even to your FTP

KArin
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #8  
Old 10-25-2008, 04:55 PM
aengblom Offline
forum loafer
 
Join Date: Sep 2008
Posts: 7
Hmm, well that's a start. The images were uploading, but apparently are being uploaded with the wrong file permissions (600 instead of 644). Is this something I can fix within the addon?
Reply With Quote
  #9  
Old 10-31-2008, 04:38 PM
aengblom Offline
forum loafer
 
Join Date: Sep 2008
Posts: 7
Err, bump? ;-)

Hey austriaka,

Thanks for all the help so far. I was wondering if you had any idea about my remaining problem?

Thanks!
Reply With Quote
  #10  
Old 10-31-2008, 05:27 PM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
you can try the php command "chmod()" directly after the upload of the image:
after line 105
if(move_uploaded_file($_FILES['secretfile']['tmp_name'], $s_uploadfile)) {
insert this one:
chmod($s_uploadfile, 0644);

but with some hosts it won't work

I guess the secret grafic icons are not the problem since you upload them only once, so you can do that manually

HTH
KArin
__________________
Uh!log Photoblog
My Addons
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:01 AM.

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