Alejandro
Global Moderator
Administrator
Hero Member
   
Offline
Posts: 7962
|
 |
« on: April 25, 2007, 12:06:29 AM » |
|
I put this together relatively quick so I am sure it's not perfect. Let me know if you find any problems with it. The module is quite flexible and allows you to create custom search forms using the fields you want.
Module output looks like the attached image. (Thanks holahola)
Updated file - April 25 - Added better support for numeric and date fields - Search values now also retained in text fields - Textarea,code fields automatically converted to text fields
Updated file - April 25 - 2 - Fixed template suffix not being recognized - Fixed itemid hidden field for Itemid hack to xajax file
Updated file - April 25 - 3 - Added keywords text field to default template. Of course it can be removed if not necessary.
|
|
|
|
« Last Edit: April 26, 2007, 11:37:34 AM by Alejandro »
|
Logged
|
|
|
|
|
holahola84
|
 |
« Reply #1 on: April 25, 2007, 04:54:42 PM » |
|
Haha, I'm so happy with this module! Haven't test through every part of it but so far it is really good and suit exactly my needs. Man, like you said, a very powerful module  ! Anyway, 2 bugs. Or maybe u can test it again to confirm if it is a bug. The template suffix parameter is not working. I added a "_places" suffix but its still using the default template. And the Itemid is not retained. " Itemid="
|
|
|
|
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
   
Offline
Posts: 7962
|
 |
« Reply #2 on: April 25, 2007, 05:51:46 PM » |
|
Glad you liked it  I uploaded a new version to fix the problems you found.
|
|
|
|
|
Logged
|
|
|
|
|
holahola84
|
 |
« Reply #3 on: April 25, 2007, 06:00:22 PM » |
|
Haha you are fast! The templates suffix issue has been solved, but the null Itemid issue still remains. Any idea? 
|
|
|
|
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
   
Offline
Posts: 7962
|
 |
« Reply #4 on: April 25, 2007, 06:02:44 PM » |
|
You have to use the new template in the zip or update the itemid hidden field.
|
|
|
|
|
Logged
|
|
|
|
|
holahola84
|
 |
« Reply #5 on: April 25, 2007, 06:07:59 PM » |
|
Oh.. Ya. Thx for that!
|
|
|
|
|
Logged
|
|
|
|
|
holahola84
|
 |
« Reply #6 on: April 25, 2007, 06:20:16 PM » |
|
Seems quite stable now although haven't test with all types of fields  . I think can make announcement for it so other users can benefits! Anyway is it possible to integrate jreviews search module with it? Means that works as a keyword filter field, on top of those other list and text field.
|
|
|
|
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
   
Offline
Posts: 7962
|
 |
« Reply #7 on: April 25, 2007, 09:56:20 PM » |
|
I have added the keywords text field as well. Remember you have to use the new template because the field is in it. Replace all module files if you downloaded a previous version.
|
|
|
|
|
Logged
|
|
|
|
|
holahola84
|
 |
« Reply #8 on: April 26, 2007, 11:05:06 AM » |
|
Can't thank you enough!
|
|
|
|
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
   
Offline
Posts: 7962
|
 |
« Reply #9 on: April 26, 2007, 11:12:08 AM » |
|
It would be great if you can post a picture/s of the module output so other's can have an idea of what the module does. Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
holahola84
|
 |
« Reply #10 on: April 26, 2007, 11:32:29 AM » |
|
To every1, I would say this is a must have module! It is also really easy to customize to fit your needs, just read the instructions. A simple sample looks like this.  Enjoy this great module!
|
|
|
|
« Last Edit: April 26, 2007, 11:36:43 AM by holahola84 »
|
Logged
|
|
|
|
|
Technivore
|
 |
« Reply #11 on: May 02, 2007, 07:31:42 AM » |
|
The module is working very well. I have only one problem : I can't display two occurences of the module in the same page (with different templates and criterias). Fatal error: Cannot redeclare modsearchadv_extractvars() (previously declared in /home/www/xxx/xxx/xxx/modules/mod_jreviews_advsearch.php:14) in /home/www/xxx/xxx/xxx/modules/mod_jreviews_advsearch.php on line 14
|
|
|
|
« Last Edit: May 02, 2007, 07:40:12 AM by Technivore »
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
   
Offline
Posts: 7962
|
 |
« Reply #12 on: May 02, 2007, 08:37:31 AM » |
|
I small error on my part. Open the mod_jreviews_advsearch.php file and at the top, change: if (!file_exists("modSearchAdv_extractVars")) { with: if (!function_exists("modSearchAdv_extractVars")) {
|
|
|
|
|
Logged
|
|
|
|
|
Technivore
|
 |
« Reply #13 on: May 02, 2007, 10:03:56 AM » |
|
It's working now. Thank you.
|
|
|
|
|
Logged
|
|
|
|
|
holahola84
|
 |
« Reply #14 on: May 02, 2007, 12:43:50 PM » |
|
Hi, I realize that unlike the default search field, the keywords field doesn't search through all custom fields. Is it possible to make it search through all custom fields?
|
|
|
|
|
Logged
|
|
|
|
|