Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Hacks and Modifications (http://www.pixelpost.org/forum/forumdisplay.php?f=16)
-   -   photos_today.php (http://www.pixelpost.org/forum/showthread.php?t=3046)

TommyBlue 12-30-2005 12:29 AM

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,

TommyBlue 12-30-2005 12:52 AM

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...

TommyBlue 12-30-2005 01:09 AM

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!

SeLeCta 12-30-2005 04:02 PM

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>";
?

TommyBlue 12-31-2005 12:23 AM

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,

Joe[y] 01-01-2006 04:08 PM

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.

TommyBlue 01-01-2006 11:51 PM

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,

TommyBlue 01-02-2006 09:14 AM

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. :)

Joe[y] 01-02-2006 02:28 PM

hum. the link didn't even work? what was the url it directed to? just the same image?

TommyBlue 01-03-2006 08:02 AM

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.


All times are GMT. The time now is 04:57 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.