Now member select some check boxes that are right for there link and i would like to show them on link detail page what link variable must i put there to show only the check values.
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 03/12/08 - 05:07 AM:
#2
According to http://scripts.webmastersite.net/wsnlinks/wsnmanu... , "If you're dealing with a checkbox or single selector and want to test if a value is selected, you can use {LINKCHECKED[fieldname]} (or {CAT, {MEMBER etc) in your template conditional. If dealing with a multi-value checkbox or selector, you can use {LINKCHECKED[fieldname <,> value]} to test for each value."
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 41
Total Posts: 127
Posted 04/26/08 - 01:09 PM:
#3
I have a problem Paul I would like to use filters to filter the resaults of the custom multi-value checkbox i have made these and they dont work can you tell me where is the problem?
<IF {LINKCHECKED[category <,> Other]}>Other</IF> <IF {LINKCHECKED[category <,> Online store/shop]}>Online store/shop</IF> This works great ----------------------------------
I tried this to filter by link but its not working <a href="{LINKFILTERLINK[category <,> Other]}">Other</a> i get this link in broswer http://..../index.php?action=displaycat&catid=1&linkfilteraction=add&filter=category&filtervalue=%7C%7C%7CCars%7C%7C%7CCSS%7C%7C%7CWeb+design%7C%7C%7COther
I also tryed by form its not working <form action="http://www.webmastersite.net/forums/index.php?action=displaycat&catid={CATID}&f ilter=category&linkfilteraction=add" method="post"> <select name="filtervalue"> <option value="Other">Other</option> </select> <input type="submit"> </form>
To filter to any text that contains a term, use filtertype=contains. To filter to any text that is not equal to the specified text, use filtertype=not.
When you don't specify a filter type, it does greater than.
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/27/08 - 05:24 PM:
#6
You have to construct the link manually, not using {LINKFILTERLINK}.
Actually I don't see any {LINKFILTERLINK} in the docs anywhere. There's a {LINKFILTER} but it only has one parameter, so I don't where you got the idea of {LINKFILTERLINK[category <,> Other]} from.
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 41
Total Posts: 127
Posted 04/28/08 - 04:20 AM:
#8
Paul wrote:
Actually I don't see any {LINKFILTERLINK} in the docs anywhere. There's a {LINKFILTER} but it only has one parameter, so I don't where you got the idea of {LINKFILTERLINK[category <,> Other]} from.
----> this is in filters manual
You can customize the HTML in whatever way you like by using <a href="{LINKFILTERLINK[fieldname]}" 62;<img src="{LINKFILTERIMAGE[fieldname]}" border="0"></a> instead of {LINKFILTER[fielname]}.
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/29/08 - 03:19 AM:
#10
Damir wrote:
----> this is in filters manual
You can customize the HTML in whatever way you like by using <a href="{LINKFILTERLINK[fieldname]}" 62;<img src="{LINKFILTERIMAGE[fieldname]}" border="0"></a> instead of {LINKFILTER[fielname]}.
I see. Added second parameter there. It's described in advance in the KB:
Note that you can make numeric filters filter to <= instead of >= by using a filtertype=less parameter in a url. To filter between two numeric values, use filtertype=between and supply the filter value hyphen separated, like 100-200. To filter to any text that contains a term, use filtertype=contains. To filter to any text that is not equal to the specified text, use filtertype=not. You can pass the filter type as the second parameter to {LINKFILTERLINK}, like {LINKFILTERLINK[descripton <,> contains]}. It can also be passed to {FILTERLINK} as the third parameter, like {FILTERLINK[1 <,> description <,> contains]}.