View Full Version : display date under thumbnail
amintorres
07-13-2007, 02:42 AM
hi there. :)
i see this person http://24by36.richardalmasi.com/index.php?x=browse
was able to display the date of the posted image right under each thumbnail.
anywhere where i can find some instructions to accomplish the same?
any help will be awesome!
thanks
amin*
Dkozikowski
07-13-2007, 04:02 AM
This is probably a "hack" as I don't know of any addon capable of doing this.
The good thing is, it's a relatively easy one.
open includes/functions_browse.php
Find:
$thumb_output .= "<a href=\"$showprefix$id\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" class=\"thumbnails\" /></a>";
and replace with:
$thumb_output .= "<div class=\"thumbnailContainer\">"; // thumbnail date hack
$thumb_output .= "<a href=\"$showprefix$id\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" class=\"thumbnails\" /></a>";
$thumb_output .= "<span class=\"thumbnailCaption\">$datetime</span></div>"; // thumbnail date hack
and in your CSS file add:
.thumbnailContainer {
width:120px;
float:left;
margin:10px;
}
.thumbnailCaption {
display:block;
}
You may need to tweak the above CSS code to work with your template.
amintorres
07-13-2007, 05:13 AM
umm, i dont think i have a "thumbnails_browse.php" file under my includes folder!
sure thats the name?
amin*
Dkozikowski
07-13-2007, 06:30 AM
That means you are using Pixelpost v1.5 or lower.
Once you upgrade to v1.6 this hack will work.
amintorres
07-13-2007, 10:46 AM
wow that's crazy! i just started my blog less than a month ago!
i dont understand how this can be other than the 1.6 or latest version...
anyways! i guess there are instructions on the 1.6 package to do the upgrading?
Dkozikowski
07-13-2007, 11:02 AM
Oh, i am sorry. the file is called functions_browse.php not thumbnails_browse :p
amintorres
07-13-2007, 11:10 AM
Oh, i am sorry. the file is called functions_browse.php not thumbnails_browse :p
hehe, damm dude, you really got me scared here! i already contacted my hosting company to have them back up my database. :) hehe well i least i know i will have a back up now! :)
amintorres
07-13-2007, 11:18 AM
done! :) thanks so much for the help
you can see it in action: http://amintorres.com/blog/index.php?x=browse
thanks again!
amin*
Dkozikowski
07-13-2007, 11:58 AM
hehe, damm dude, you really got me scared here! i already contacted my hosting company to have them back up my database. :) hehe well i least i know i will have a back up now! :)
:p sorry about that
done! :) thanks so much for the help
you can see it in action: http://amintorres.com/blog/index.php?x=browse
thanks again!
amin*
Lookin' good!
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.