PDA

View Full Version : catgory list & monthly list on browse_template


io
02-19-2005, 04:06 PM
ciao.

i found this post and use it now.

http://www.pixelpost.org/index.php?x=downloads&details=29

and i use the two tags which are...

*<CATEGORY_LINKS_AS_LIST>
*<ARCHIVES>// not pull down list. i rewrite index.php with the help of http://www.pixelpost.org/forum/viewtopic.php?t=403&highlight=monthly
*<THUMBNAILS_WHOLE_PAGED>[/list]

The reason i use <THUMBNAILS_WHOLE_PAGED> indtead of <THUMBNAIL> is because i don't show the title and the posted date, and i can limit the number of the pictures on one page.

unfortunately, there seems to be no relation between <CATEGORY_LINKS_AS_LIST>, <ARCHIVES> and <THUMBNAILS_WHOLE_PAGED>. it doesn't work right.

is it possible to make it work correctly?

raminia
02-20-2005, 04:31 AM
aha....
I didn't try do make it that way. I write that addon for an additional archive capability and if someone want's to see the archive by category it does not works for him/her. If you want this behavior you should change index.php or replace code from about line 383
if($_GET['x'] == "browse") {
$thumb_output = "";
$where = "";
if($_GET['category'] != "") { $where = "and (category='".$_GET['category']."')"; }
$query = mysql_query("select id,headline,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') $where order by datetime desc");
while(list($id,$title,$name) = mysql_fetch_row($query)) {
$title = pullout($title);
$thumbnail = "thumbnails/thumb_$name";
$thumb_output .= "<a href='$PHP_SELF?showimage=$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";
}
$tpl = ereg_replace("<THUMBNAILS>",$thumb_output,$tpl);
}
with similar code in the archive-paged-addon.

raminia
02-20-2005, 10:41 AM
OK I tried and that's the result!
a new addon
you can read the description here
http://www.pixelpost.org/forum/viewtopic.php?p=2412#2412

for months there is drop box only and no list as links there. you could simply do it by some slight modification.