Webmastersite.net
Register Log In

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

Comments on Divide links by state

cr_odp
Beginner

Usergroup: Customer
Joined: Mar 09, 2005

Total Topics: 1
Total Comments: 1
cr_odp
Posted Mar 09, 2005 - 9:29 PM:

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
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Mar 10, 2005 - 12:56 AM:

See https://www.webmastersite.net/forums/thread/4875 and https://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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.