rdf.php accept multiple cat arguments [message #16401] |
Wed, 28 January 2004 18:03 |
Squeebee
Messages: 110 Registered: November 2003
Karma: 0
|
Senior Member |
|
|
Hi Ilia!
Well, I can say one thing for sure, the RDF feed is awesome. Instead of using some of the more complicated hacks for getting a list of recent messages/topics on my site's main page, I am simply parsing the RDF feed, and it works great!
Now that I have flattered you, on to the suggestion:
I have a category in my forums that just holds mailing list mirrors, and I do not want to list any posts from those forums on my main page, just posts to the other two categories.
Now, from the looks of things this is the handler for category:
if (isset($_GET['cat'])) {
$lmt .= ' AND f.cat_id ='.(int)$_GET['cat'];
}
Now it seems to me that if you changed the equals sign to an IN() clause the user could pass a comma-seperated list of categories and you would probably get the same end result, but allow for more than one category to be specified.
What do you think?
|
|
|
|
|
|
|
|
|