Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 02-19-2005, 04:06 PM
io Offline
pp regular
 
Join Date: Feb 2005
Location: tokio/japan
Posts: 28
catgory list & monthly list on browse_template

ciao.

i found this post and use it now.

http://www.pixelpost.org/index.php?x...amp;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/viewt...hlight=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?
Reply With Quote
  #2  
Old 02-20-2005, 04:31 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
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
Code:
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.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #3  
Old 02-20-2005, 10:41 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
OK I tried and that's the result!
a new addon
you can read the description here
http://www.pixelpost.org/forum/viewt...hp?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.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:06 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs