PDA

View Full Version : Category Thumbnails


tinyblob
11-17-2005, 10:44 AM
Following a request by forum member Spazzwig, i've made a quick addon called Category Thumbnails.

It's a simple modification of the existing thumbnails code from the Browse template.
This addon provides a new tag: <CAT_THUMBS>, which displays thumbnails that look similar to those displayed on the Browse template. However, instead of displaying every thumbnail (or those from a specified category), this tag displays the latest thumbnail from each category. Clicking the thumbnails takes you to the relevant browse page for that category.

There's also a simple change you can make to change the thumbnails so that the link takes you to the view page for that specific image.

It's intended as an overview of your categories, it's up to you to explain the functionality to your visitors as this current version of Category Thumbnails is fairly simple (and familiar) in appearance.

You can download the addon here (http://www.touchnothing.net/files/cat_thumbs.zip)!

Bear in mind that this is version 0.1, some testing and feedback would be appreciated.

If anyone wants similar addons created, feel free to PM me.

EDIT: This has now been updated to version 0.5, and now supports the category link table which was added in a recent version.

spazzwig
11-17-2005, 10:52 AM
Thanks so much tinyblob!

I want to add that tinyblob is very friendly and easy to work with. Obviously quite generous too :)

Another great addition to the PP community.

nicola
06-18-2006, 01:12 PM
I come from using wordpress + nigiri sushi photoblog theme
first of all I want to thanks the author of the addon and all of you for this great software.
about category thumbnails addon: I think it's a great addon but I need something.
It would be cool that the latest category thumbnail showed would be different from the image showing (sorry for my english). I mean: no one would click on a thumbnail with the same image of the one that is showing fullsize, it would be cool that the thumbnail showed would differ from image showing.
I hope you'll understand

i'm working on it, my photoblog it's just a beta
http://nicoladimaria.info/pp

thanks

nicola
06-20-2006, 08:48 AM
it's been from 01-28-2006 that the author of the addon does not write anymore in this forum. I hope someone else than tinyblob will help me in my request.
maybe this one is not the right subforum of the site, I'll try in the help section

tinyblob
06-20-2006, 09:07 AM
I've responded to your email Nicola, apologies for the delay :).

nicola
06-29-2006, 10:01 AM
any progress tinyblob ?
It would be cool to have a random thumbnail of each category

thanks anyway

tinyblob
06-29-2006, 10:07 AM
i'm pretty busy with a project at work at the moment, but i'll try to get onto it ASAP :)

nicola
06-30-2006, 09:26 AM
thanks, I just wanted to know if you were still alive =)


nicola

nicola
07-15-2006, 12:13 PM
unfortunately, I'm still waiting for an update.

Giuseppe
09-23-2006, 03:54 PM
I've installed the addons and change in the browse _template.html <THUMBNAILS> with <CAT_THUMBS> that perctly displyed one image for category as i want, but when i click on the thumb click don't work.

any idea please?
my version is: Pixelpost: 1.5 Final - July 2006

zac
03-03-2008, 09:47 PM
I installed this on PP 1.7.1 and it seems to be working as it should. It looks like this thread has been quiet for a while but I was wondering if it would be simple enough to also add the category name as a caption near each thumb? Anyone have any ideas how to do that? Here is the code from that addon:

$cat_thumbs = "";
$query = mysql_query("select * from ".$pixelpost_db_prefix."categories order by name");
while(list($cat_id,$cat_name) = mysql_fetch_row($query)) {
$cid = pullout($cat_id);
$cname = pullout($cat_name);
$query2 = mysql_query("select t2.id,image
from {$pixelpost_db_prefix}catassoc as t1
inner join {$pixelpost_db_prefix}pixelpost t2 on t2.id = t1.image_id
where t1.cat_id = '$cid'
order by datetime desc LIMIT 0,1");

while(list($id,$name,$datetime,$category) = mysql_fetch_row($query2)) {
$pic_id = pullout($id);
if ( $thumblinks == "category" ) {
$catthumblink = "index.php?x=browse&amp;category=" . $cid;
} else if ( $thumblinks == "image" ) {
$catthumblink = "index.php?showimage=" . $pic_id;
} else {
$catthumblink = "index.php?x=browse&amp;category=" . $cid;
}
$cat_thumbnail = "thumbnails/thumb_$name";
$cat_thumbs .= "<a href='$catthumblink'><img src='$cat_thumbnail' alt='$cname' title='$cname' class='thumbnails' /></a>";
}
}

$tpl = str_replace("<CAT_THUMBS>",$cat_thumbs,$tpl);

pmb
06-07-2008, 10:59 PM
Another dead link.
It seems most of the addons are slowly dying.

kevincrafts
06-08-2008, 12:48 AM
That addon hadn't been updated for a couple years - I'd say it was already dead.

The people that develop and design the templates and addons do it on their own time for no compensation. I can understand if one of the developers gets too busy in their working/personal life to be able to update addons or templates or can no longer provide technical support or troubleshooting help.

If anyone is wanting features that aren't provided by the pixelpost framework or one of the available addons (http://www.pixelpost.org/extend/addons/), I urge you to develop a new addon and share it with the community. It will only make the software better and more flexible.

Also, regarding this addon, you will find my album view addon (http://www.pixelpost.org/extend/addons/album-view/) has similar features.