Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 02-11-2005, 06:18 AM
-okapi-'s Avatar
-okapi- Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Vienna, Austria
Posts: 252
default settings for archive?

is it possible to set a default category or a default amount of thumbs displayed on the archive page?
i don't want to have ALL the thumbs loaded every time i go to the archive, but only the latest 30 for example, or the thumbs of images of the last month - by default.

is there a way to achieve this?
__________________
a visual notebook
michael singer photography
http://www.a-visual-notebook.at
Reply With Quote
  #2  
Old 02-11-2005, 06:52 PM
mark Offline
pp veteran
 
Join Date: Feb 2005
Location: Atlanta, GA USA
Posts: 89
archive limiter

im looking at doing this exact thing also...Im currently working on it...i'll let you know when i have some code to show ya.
Reply With Quote
  #3  
Old 02-11-2005, 08:04 PM
-okapi-'s Avatar
-okapi- Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Vienna, Austria
Posts: 252
archive limiter

this would be great!
but... coding an archive limiter would also leed into coding a navigation for the archive...

[by the way, high quality photography on your site and a very nice layout, mark! i wonder how you implemented the function "most recent comments"...]
__________________
a visual notebook
michael singer photography
http://www.a-visual-notebook.at
Reply With Quote
  #4  
Old 02-11-2005, 09:08 PM
mark Offline
pp veteran
 
Join Date: Feb 2005
Location: Atlanta, GA USA
Posts: 89
last 10 comments

In Index.php

under this section
// visitor information in comments
// fix a popuplink

I added:

Code:
// last 10 comments
    $comment_count = 0;
    $recent_comments = ""; // comments stored in this string
    if($_GET['showimage'] == "") { $imageid = $image_id; } else { $imageid = $_GET['showimage']; }
    $recentquery = mysql_query("select t1.parent_id, t1.message, t1.name, t1.url, t2.headline, t2.id from ".$pixelpost_db_prefix."comments as t1 inner join pixelpost_pixelpost t2 on t1.parent_id = t2.id ORDER BY t1.id DESC limit 10");
    while(list($parent_id, $comment_message, $comment_name, $comment_url, $comment_headline, $comment_image_id) = mysql_fetch_row($recentquery)) {
	    $comment_message = pullout($comment_message);
	    $comment_name = pullout($comment_name);
	    $comment_headline = pullout($comment_headline);
	    $comment_image = pullout($comment_image);
	    if($comment_url != "") {
	    	$comment_url = "http://$comment_url"; // i'm running for president...
	    	$comment_url = str_replace("http://http://","http://",$comment_url); // you see?
	    	$comment_name = "<a href='$comment_url' title='$lang_visit_homepage' target='_blank'>$comment_name</a>";
	    	}
	    $comment_headline = "<a href='/index.php?showimage=$comment_image_id' title='$comment_headline' target='_blank'>$comment_headline</a>";
	    $recent_comments .= "<b>$comment_name</b> on <b>$comment_headline</b><br />$comment_message <br \><br \>";
	    $comment_count++;
	    }
    $recent_comments .= "";
    $tpl = ereg_replace("<LAST_COMMENTS>",$recent_comments,$tpl);
Probably should have done it as an "addon", but not exactly sure how to...
Reply With Quote
  #5  
Old 02-11-2005, 09:10 PM
mark Offline
pp veteran
 
Join Date: Feb 2005
Location: Atlanta, GA USA
Posts: 89
last 10 comments

btw, thanks so much on the compliments about my site and photos!!

Reply With Quote
  #6  
Old 02-11-2005, 11:18 PM
-okapi-'s Avatar
-okapi- Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Vienna, Austria
Posts: 252
wow...

thank you, mark!

for a while i wondered what calls that function to have the last 10 comments displayed... now i know, it's <LAST_COMMENTS>

thanks again!
__________________
a visual notebook
michael singer photography
http://www.a-visual-notebook.at
Reply With Quote
  #7  
Old 02-12-2005, 12:06 AM
Zlato Offline
pp regular
 
Join Date: Feb 2005
Location: Paris - FRANCE
Posts: 43
Hi MArk !
First of all, congratulations for your site, really good inspiration and good looking layout... :wink:

Second, maybe you can help me : i wish i have the same navition as you in archive page : a ceratin amount of thumbnails then a new page, and so on like on your pages, can you help me to achieve on my page ?

By advance Thanks a lot.

( sorry for bad english... )
__________________
A. Zlatogorov
Ecrivain de lumière
Reply With Quote
  #8  
Old 02-12-2005, 02:10 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
Zlato, thanks for the nice comments about my site...i really appreciate it..

My archive page doesnt yet limit a certain amount of photos. I am working on it though as we speak. I can get it to limit however many i want, but am having problems getting just the remainder...

If you're talking about the drop down boxes for archive categories and date, i think they are available on the "addon" page...i just used what they had....

I'll hopefully have something working soon..
Reply With Quote
  #9  
Old 02-12-2005, 03:06 AM
usafdcc's Avatar
usafdcc Offline
pp regular
 
Join Date: Jan 2005
Location: New Mexico, USA
Posts: 36
Great script, you should definantly make it into an addin. I did notice that it did not validate, but I was able to get it to validate by changing


Quote:
$recent_comments .= "$comment_name on $comment_headline<br />$comment_message <br \><br \>";
$comment_count++;
to

Quote:
$recent_comments .= "$comment_name on $comment_headline<br>$comment_message <br><br>";
$comment_count++;
Keep up the good work
__________________
Steve@ISeeItLikeThis.com
Reply With Quote
  #10  
Old 02-12-2005, 03:51 AM
mark Offline
pp veteran
 
Join Date: Feb 2005
Location: Atlanta, GA USA
Posts: 89
ah, ur right! It looks like i had some / pointing the wrong way...
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 10:47 AM.

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