|
#11
|
||||
|
||||
|
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:
Code:
$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&category=" . $cid;
} else if ( $thumblinks == "image" ) {
$catthumblink = "index.php?showimage=" . $pic_id;
} else {
$catthumblink = "index.php?x=browse&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);
__________________
folkphotography |
|
#12
|
|||
|
|||
|
Another dead link.
It seems most of the addons are slowly dying. |
|
#13
|
||||
|
||||
|
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, 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 has similar features. |
| Post Reply |
| Thread Tools | |
|
|