PDA

View Full Version : External.php - How many photos included?


pgowder
December 31st, 2013, 08:41 AM
How many photos are included in the rss feeds generated by external.php?

Can that be changed? Is it possible to include all photos in a category?

Chuck S
December 31st, 2013, 09:03 AM
The external rss feed has a limit of 50 and you can alter the sql however you wish in the file on the query is simply this

LIMIT 50

pgowder
December 31st, 2013, 09:10 AM
Is this in external.php?

pgowder
December 31st, 2013, 09:12 AM
Just checked I don't see Limit 50 in external.php. Where is the sql query?

Chuck S
December 31st, 2013, 09:16 AM
Line 69 on the query I sure do ;)


$res = ppmysql_query("SELECT * FROM {$Globals['pp_db_prefix']}photos $cats ORDER BY date DESC LIMIT 50", $link);

pgowder
December 31st, 2013, 09:17 AM
Line 69 on the query I sure do ;)


$res = ppmysql_query("SELECT * FROM {$Globals['pp_db_prefix']}photos $cats ORDER BY date DESC LIMIT 50", $link);



I must have an older version. My line 69 is not that.

pgowder
December 31st, 2013, 09:18 AM
Found it, mine is line 59.

Thanks!

Chuck S
December 31st, 2013, 09:46 AM
Yes you must have an older version as it is most definately line 69 ;) in version 8.42 of Photopost and yours must be extremely old or modified as if I go all the way back to 7.1 of Photopost the line I am noting is line 66

pgowder
December 31st, 2013, 09:51 AM
I'm on 8.3

Chuck S
December 31st, 2013, 10:48 AM
In 8.3 it is line 69 of external.php I maintain all the builds I have from 7.1 all the way through to 8.42 on my home computer. Older ones I would need to go to the company server but 7.1 takes us back 4 years.

I have no idea how your coming up with line 59 unless you have modified something else but all that does not matter.