Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 12-30-2005, 12:29 AM
TommyBlue's Avatar
TommyBlue Offline
pp regular
 
Join Date: Dec 2005
Location: Eugene, Oregon
Posts: 32
Send a message via ICQ to TommyBlue
Wink photos_today.php

Hello.
I'm wondering if anyone who knows php (even Raminia, the developer) could help me with the Photos Today addon. It works good, but I would love to make a couple changes.

First, is it possible to add a line break in between each photo? instead of a zero pix margin where they're all touching...

Secondly, I want to modify the img alt tag to contain my EXIF info as well... I found where to do that, if only I knew php, but here's the code:

PHP Code:
      $today_images .= "<a href='$PHP_SELF?showimage=$image_id'><img src='images/$image_name' alt='$image_title' title='$image_title' /></a>"
I realize that it's probably something simple like $image_exif or something, but if someone could confirm that before I spend to much time taking random guesses I'll really appreciate it!
Thanks pixelpost,
__________________
Blink, then think! - www.cleu.org/blink
Reply With Quote
  #2  
Old 12-30-2005, 12:52 AM
TommyBlue's Avatar
TommyBlue Offline
pp regular
 
Join Date: Dec 2005
Location: Eugene, Oregon
Posts: 32
Send a message via ICQ to TommyBlue
Oh, and third I just realized, the link on the current pictures are in a loop to themselves... as in, when I'm viewing photo id 221, the photos all link back to 221, and not 220. Thanks for any help, once again...
__________________
Blink, then think! - www.cleu.org/blink
Reply With Quote
  #3  
Old 12-30-2005, 01:09 AM
TommyBlue's Avatar
TommyBlue Offline
pp regular
 
Join Date: Dec 2005
Location: Eugene, Oregon
Posts: 32
Send a message via ICQ to TommyBlue
Lightbulb

Okay, I figured out the line break, by just adding br tags to the end of that php line I posted up there... also got rid of the link border by adding border='0' to the end of the img tag. Still stuck with the EXIF info, these tags to be specific:
HTML Code:
<EXIF_ISO> <EXIF_EXPOSURE_TIME> <EXIF_APERTURE> <EXIF_FOCAL_LENGTH>
And also the looping links are kinda counter-productive...
Gracias!
__________________
Blink, then think! - www.cleu.org/blink
Reply With Quote
  #4  
Old 12-30-2005, 04:02 PM
SeLeCta Offline
pp regular
 
Join Date: Dec 2005
Location: Germany
Posts: 22
Send a message via ICQ to SeLeCta
if I understood it right, you have still a problem.

maybe you should try this:

Quote:
$today_images .= "<a href='$PHP_SELF?showimage=$image_id'><img src='images/$image_name' alt='<EXIF_ISO> <EXIF_EXPOSURE_TIME> <EXIF_APERTURE> <EXIF_FOCAL_LENGTH>' title='<EXIF_ISO> <EXIF_EXPOSURE_TIME> <EXIF_APERTURE> <EXIF_FOCAL_LENGTH>' /></a>";
?
Reply With Quote
  #5  
Old 12-31-2005, 12:23 AM
TommyBlue's Avatar
TommyBlue Offline
pp regular
 
Join Date: Dec 2005
Location: Eugene, Oregon
Posts: 32
Send a message via ICQ to TommyBlue
Hmm, thanks for the suggestion but it ended up just displaying the actual tags in the img title, not the values of the exif info... What are the php equivalents of those EXIF tags, anybody know?

And more importantly, how do I fix the looped link problem? When I click on the current photo, instead of linking to the previous image as intended, it just reloads the same id photo... Help!

examples of this problem can be seen here:

http://www.cleu.org/blinkpp/

Note it's different than my signature link...
Thanks,
__________________
Blink, then think! - www.cleu.org/blink

Last edited by TommyBlue; 12-31-2005 at 12:24 AM. Reason: forgot a url
Reply With Quote
  #6  
Old 01-01-2006, 04:08 PM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
PHP Code:
$today_images .= "<a href='$PHP_SELF?showimage=$image_previous_id'><img src='images/$image_name' alt='$iso $exposure $aperture $focal' title='$iso $exposure $aperture $focal' /></a>"
try this - i haven't tested it as i don't have the addon but that should be ok.
Reply With Quote
  #7  
Old 01-01-2006, 11:51 PM
TommyBlue's Avatar
TommyBlue Offline
pp regular
 
Join Date: Dec 2005
Location: Eugene, Oregon
Posts: 32
Send a message via ICQ to TommyBlue
Thanks for the suggestion, but no luck... Both the link and the exif info are left blank with that code. Curious that neither worked...maybe a clue why the developer didn't make the link work right from the start, were there problems? Anyone, more thoughts?
The code that Joe[y] posted is still viewable here: http://www.cleu.org/blinkpp/
Thanks,
__________________
Blink, then think! - www.cleu.org/blink
Reply With Quote
  #8  
Old 01-02-2006, 09:14 AM
TommyBlue's Avatar
TommyBlue Offline
pp regular
 
Join Date: Dec 2005
Location: Eugene, Oregon
Posts: 32
Send a message via ICQ to TommyBlue
Okay, I've decided to just not use the photos_today addon, and just have combine seperate photos into one image file if I want multiple shots on one post. Thanks for your help... even if it's still a mystery to me.
__________________
Blink, then think! - www.cleu.org/blink
Reply With Quote
  #9  
Old 01-02-2006, 02:28 PM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
hum. the link didn't even work? what was the url it directed to? just the same image?
Reply With Quote
  #10  
Old 01-03-2006, 08:02 AM
TommyBlue's Avatar
TommyBlue Offline
pp regular
 
Join Date: Dec 2005
Location: Eugene, Oregon
Posts: 32
Send a message via ICQ to TommyBlue
No, instead of the same image, it just got rid of the ID completely so it linked like this on every image:

http://www.cleu.org/blink/index.php?showimage=

Which was just like linking to the current "today" image. Not sure, but obviously raminia had this same problem too otherwise it probably would've been fixed by now. No biggie.
__________________
Blink, then think! - www.cleu.org/blink
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:31 AM.

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