FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » rdf.php accept multiple cat arguments
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
rdf.php accept multiple cat arguments [message #16401] Wed, 28 January 2004 18:03 Go to previous message
Squeebee is currently offline  Squeebee   Canada
Messages: 110
Registered: November 2003
Karma:
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: Very Happy

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?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: User list in admin panel
Next Topic: Multiple topic hits in RDF feed
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 10:28:28 GMT 2024

Total time taken to generate the page: 0.04406 seconds