Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 02-21-2005, 03:10 PM
io Offline
pp regular
 
Join Date: Feb 2005
Location: tokio/japan
Posts: 28
about RSS Feed

hi, there.

now i succeeded in feeding RSS on my private site, and checked it by sage with Firefox. it looks fine.

here is my question;

how can i limit the number of the posts shown on the RSS Reader?

now i can see all the posts on the sage. i want to limit the number (more or less 10 posts).

does anyone know about it?
Reply With Quote
  #2  
Old 02-21-2005, 03:17 PM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
I believe you replace (could be wrong)

Code:
$query = mysql_query("select id,datetime,headline,body,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by datetime desc");
with

Code:
$query = mysql_query("select id,datetime,headline,body,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by LIMIT 0,10 datetime desc");
on index.php line....errr...near 400 i think

well, that would limit it to 10 (if it works)
__________________
i should say more clever stuff
Reply With Quote
  #3  
Old 02-21-2005, 04:29 PM
io Offline
pp regular
 
Join Date: Feb 2005
Location: tokio/japan
Posts: 28
hi, blinking8s! Thank you for your reply.

yes, i've tired what you taught me.

this is the result;

Quote:
<rss version="2.0">
<channel>
<title>fotoecco</title>
<link>http://ecco.mond.jp/fotoblog/</link>
<description>fotoecco photoblog</description>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>

<generator>pixelpost</generator>

</channel>
</rss>
it doesn't seem to work correctly. i checked my sage on Firefox and found that there's no entry shown.
Reply With Quote
  #4  
Old 02-22-2005, 12:10 PM
steff Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Milan, Italy
Posts: 151
Send a message via MSN to steff
damn... it's true, the RSS feed returns all posts!
I checked your nice 88:88 blog, the feed shows 84 photos...
can anyone fix it? I think 10 posts, or a selectable value, will match the needs of feed-reader users
Reply With Quote
  #5  
Old 02-23-2005, 11:09 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
whoops...here you go

Code:
 $query = mysql_query("select id,datetime,headline,body,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by datetime desc limit 10");
works fine now

http://blog.blinking8s.com/?x=rss
__________________
i should say more clever stuff
Reply With Quote
  #6  
Old 02-24-2005, 02:26 AM
io Offline
pp regular
 
Join Date: Feb 2005
Location: tokio/japan
Posts: 28
Quote:
Originally Posted by blinking8s
whoops...here you go

Code:
 $query = mysql_query("select id,datetime,headline,body,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by datetime desc limit 10");
works fine now

http://blog.blinking8s.com/?x=rss
Beauuuutiful! Thank you, blinking8s!

io
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:56 PM.

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