logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

MultiCheck boxes

Version:


MultiCheck boxes
Damir
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 41
Total Posts: 127
Posted 03/08/08 - 04:42 AM:
quote post
#1
Can someone help?

I have created Multicheckboxes for link

<tr>
<td class="labelscolumn"><span class="labels">Template Category</span></td>
<td class="optionscolumn"><input type="hidden" name="linkcat[123]" value="" /><input type="checkbox" name="linkcat[]" value="3 colors" {LINKCHECKED[linkcat <,> 3 colors]} /> 3 colors <input type="checkbox" name="linkcat[]" value="3D style" {LINKCHECKED[linkcat <,> 3D style]} /> 3D style <input type="checkbox" name="linkcat[]" value="Agriculture" {LINKCHECKED[linkcat <,> Agriculture]} /> Agriculture <input type="checkbox" name="linkcat[]" value="Animals & Pets" {LINKCHECKED[linkcat <,> Animals & Pets]} /> Animals & Pets <input type="checkbox" name="linkcat[]" value="Architecture" {LINKCHECKED[linkcat <,> Architecture]} /> Architecture <input type="checkbox" name="linkcat[]" value="Art & Photography" {LINKCHECKED[linkcat <,> Art & Photography]} /> Art & Photography <input type="checkbox" name="linkcat[]" value="ArtWorks" {LINKCHECKED[linkcat <,> ArtWorks]} /> ArtWorks <input type="checkbox" name="linkcat[]" value="Beauty" {LINKCHECKED[linkcat <,> Beauty]} /> Beauty <input type="checkbox" name="linkcat[]" value="Books" {LINKCHECKED[linkcat <,> Books]} /> Books <input type="checkbox" name="linkcat[]" value="Business" {LINKCHECKED[linkcat <,> Business]} /> Business</td>
</tr>







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.

Like this

Template Category: Architecture, Books, Business
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 03/12/08 - 05:07 AM:
quote post
#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."

<IF {LINKCHECKED[linkcat <,> Architecture]}>Architecture</IF> etc
Damir
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 41
Total Posts: 127
Posted 04/26/08 - 01:09 PM:
quote post
#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>

Edited by Damir on 04/26/08 - 01:18 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/26/08 - 11:29 PM:
quote post
#4
http://scripts.webmastersite.net/wsnlinks/wsnmanu...
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.
Damir
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 41
Total Posts: 127
Posted 04/27/08 - 12:13 PM:
quote post
#5
Ok in the form it works great when i add filtertype=contains

But where do i put filtertype=contains in this so i can make it as a link?

<a href="{LINKFILTERLINK[category <,> Other]}">Other</a>
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/27/08 - 05:24 PM:
quote post
#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.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/27/08 - 05:35 PM:
quote post
#7
Changing now to add a second parameter to {LINKFILTER}.
Damir
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 41
Total Posts: 127
Posted 04/28/08 - 04:20 AM:
quote post
#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]}.
Damir
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 41
Total Posts: 127
Posted 04/28/08 - 04:21 AM:
quote post
#9
Paul wrote:
Changing now to add a second parameter to {LINKFILTER}.


What will be the second parametar? filtertype=contains?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/29/08 - 03:19 AM:
quote post
#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]}.
Damir
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 41
Total Posts: 127
Posted 04/29/08 - 03:44 AM:
quote post
#11
I beliewe that pagination is not working when using filters can you check that i think there is a error
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 05/02/08 - 02:41 AM:
quote post
#12
Confirmed. There seem to be wider filter issues as well. Fixing.

Edited by Paul on 05/02/08 - 12:33 PM
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.