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

Register | Forgot Password

Divide links by state
Using custom field on a link for filtering content

Version: 3.14
printPrint


Divide links by state
cr_odp
Beginner

Usergroup: Customer
Joined: Mar 09, 2005
Total Topics: 1
Total Posts: 1
Posted 03/09/05 - 06:29 PM:
quote post
#1
Several questions:

Is it possible to divide the links by state? If WSN Links was set up to hold businesses…for example:
Category (eg. Fishing)
Sub Category (eg. Rods)
Link (eg. Barry’s Rod Store)

With the Link having a custom field called “state”, could WSN Links be made to only show links that are in that user’s location (state) which they would have selected via a drop-down menu on the main page (possibly by use of a GET variable in the URL).

We have also been having problems when a link is added it would show up twice in the admin panel needing validation which gets quite messy.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6163
Posted 03/09/05 - 09:56 PM:
quote post
#2
See http://www.webmastersite.net/forums/thread/4875 and http://www.webmastersite.net/forums/thread/4880

Here's a possibility for an equals option filter, but I'm probably not going to fix it anytime soon if it doesn't work:

In start.php, change
if ($filtertype == 'less') $settings->condition .= ' '. $field .' <= '. $value .' AND';
to
if ($filtertype == 'less') $settings->condition .= ' '. $field .' <= '. $value .' AND';
else if ($filtertype == 'equals') $settings->condition .= " $field == '$value' AND";


Then use the filter condition 'equals' in the same way the manual instructs for 'less' and 'between'.

We have also been having problems when a link is added it would show up twice in the admin panel needing validation which gets quite messy.

You'll need to be more specific there.

Edited by Paul on 03/09/05 - 11:31 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.