|
Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews. |
Advertisement | |
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Filter Problem
After using the filter with various criteria (I know it's not nested) I've come across a strange occurance. With each option list displayed the filter works fine but the problem doesn't come with the filtering but the labelling, instead of showing each label/title by the side of the options it only shows the last option title at the front of the filter set.
I've looked through the PHP file and noticed that the title setting is not within the loop for displaying the title by the options, any idea on how to do this? Example: http://forums.nexusrealms.co.uk/forumdisplay.php?f=20 |
#2
|
||||
|
||||
There is a how-to page here with instructions for adding a filter, but you can use only one filter on the page. If you want to change this behavior, one place to start is to look at the prep_filter function in the gars_class_list.php page.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#3
|
|||
|
|||
I think you've misunderstood what I'm asking. In fact let me show you what I mean. Currently I have this:
I get the feeling I need to place the following near where the option list is created but I'm struggling to find where you are echoing the options. PHP Code:
|
#4
|
||||
|
||||
Oh okay, that is in the filter.php file found inside the /geek/gars/mods/display directory. You might want to set $rowtitle to an array of titles instead of $rowtitle = $titles[$result['id']]; so then you could use the array variable with key name in the GARS_mod_filter template.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#5
|
|||
|
|||
Thanks for the pointers, I've now managed to do a fix however it does remove the point of selecting whether it's a vertical or horizontal layout. There's two ways to do this:
Original filter.php PHP Code:
filter.php PHP Code:
filter.php PHP Code:
PHP Code:
PHP Code:
The horizontal layout needs some tweaking to look right, I'll most likely use CSS to distinguish between the options, though you can see how they separate from eachother now. Hope this helps. You can now see it working here: http://forums.nexusrealms.co.uk/forumdisplay.php?f=20 |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Filter Issues | Billspaintball | Geek Auto-Linker | 1 | 01-26-2008 10:49 PM |
Filter | Damir | Geek Article and Review System | 5 | 06-28-2007 01:50 PM |
Filter Module | nymyth | Geek Article and Review System | 3 | 06-05-2007 04:44 PM |
Filter This! | The Geek | Tutorials | 19 | 01-20-2007 03:15 PM |
GARS filter | osirisjem | Geek Article and Review System | 1 | 01-09-2006 09:05 AM |