WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

merge toplist filters

Version: 4.1.49
printPrint


merge toplist filters
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 06/30/08 - 02:45 AM:
quote post
#1
Hi Paul,

Is there a way to merge toplist filters? If I have this as a toplist filter:

catid=63 or catid=87

Can this be made into something shorter? Like catid='63,87'

THanks
David
hai
Forum Regular
Avatar

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 68
Total Posts: 268
Posted 06/30/08 - 05:18 AM:
quote post
#2
According to http://scripts.webmastersite.net/wsnlinks/wsnmanu...
it looks like you should be using catid='63' or catid='87'

High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 06/30/08 - 05:26 AM:
quote post
#3
Hello Hai,

:) Of course, but I would like to condense the filters. Writing catid='63' or catid='88' or catid='89'.... is messy.

David
hai
Forum Regular
Avatar

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 68
Total Posts: 268
Posted 06/30/08 - 05:33 AM:
quote post
#4
Gotcha. Sorry I misunderstood your question. I thought you were just asking about filtering for 2 categories.

High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/30/08 - 09:13 PM:
quote post
#5
I'll never condense that format unless paid to, since it's a whole lot simpler for me to leave it in mysql's format (which also keeps consistency with toplists etc) and I have a million things to do that are much more useful.

Your suggested comma format is the same number of keystrokes per number for a long list anyway, presuming you're using copy/paste on ' OR catid='. If this list is going to take you 10 minutes to type your suggestion isn't going to save you more than a couple of seconds.

Edited by Paul on 06/30/08 - 09:19 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.