|
Title: Advanced Search Module out for testing Post by: Alejandro 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. Title: Re: Advanced Search Module out for testing Post by: holahola84 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 :D!
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=" Title: Re: Advanced Search Module out for testing Post by: Alejandro on April 25, 2007, 05:51:46 PM Glad you liked it :) I uploaded a new version to fix the problems you found.
Title: Re: Advanced Search Module out for testing Post by: holahola84 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? :)
Title: Re: Advanced Search Module out for testing Post by: Alejandro on April 25, 2007, 06:02:44 PM You have to use the new template in the zip or update the itemid hidden field.
Title: Re: Advanced Search Module out for testing Post by: holahola84 on April 25, 2007, 06:07:59 PM Oh.. Ya. Thx for that!
Title: Re: Advanced Search Module out for testing Post by: holahola84 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.
Title: Re: Advanced Search Module out for testing Post by: Alejandro 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.
Title: Re: Advanced Search Module out for testing Post by: holahola84 on April 26, 2007, 11:05:06 AM Can't thank you enough!
Title: Re: Advanced Search Module out for testing Post by: Alejandro 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!
Title: Re: Advanced Search Module out for testing Post by: holahola84 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.
(http://www.myhebe.com.sg/MyUploads/adv_search_example.gif) Enjoy this great module! Title: Re: Advanced Search Module out for testing Post by: Technivore 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).
Code: 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 Title: Re: Advanced Search Module out for testing Post by: Alejandro 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:
Code: if (!file_exists("modSearchAdv_extractVars")) { with: Code: if (!function_exists("modSearchAdv_extractVars")) { Title: Re: Advanced Search Module out for testing Post by: Technivore on May 02, 2007, 10:03:56 AM It's working now. Thank you.
Title: Re: Advanced Search Module out for testing Post by: holahola84 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?
Title: Re: Advanced Search Module out for testing Post by: Alejandro on May 02, 2007, 01:53:40 PM No, it's not possible. The default advanced search form also does not search in all fields and the module is just another way of using the advanced search. The ability to add custom fields to the form is what allows you to search on those fields, otherwise, keyword text field and any other field would be overlapping.
Only simple search allows you to search on all fields, because there's no other field involved in the search. Maybe that was confusing, but this is not something that can be easily changed. Title: Re: Advanced Search Module out for testing Post by: holahola84 on May 02, 2007, 01:55:39 PM Oh, Ic. Dats ok & no problem! I'll just add a keywords field to have authors type in keywords themselves.
Title: Re: Advanced Search Module out for testing Post by: Lavvy01 on May 02, 2007, 04:39:46 PM This module is a great addition to JReviews, just what I need for my site. I have managed to adapt the html template to include four of my custom fields. However it displays the first five options in that custom field, resulting in this module taking up a large part of the front page all the time. I was wondering if it is possible to show the text "Select {custom field name} only, for each custom field, and then see all options once the dropdown arrow is clicked. As with the category field, which initially just show the text "Select Category". This would result in a more concise search module on the front page of my website
Title: Re: Advanced Search Module out for testing Post by: Alejandro on May 02, 2007, 04:52:00 PM ... it displays the first five options in that custom field, resulting in this module taking up a large part of the front page all the time. Are you talking about a multiple select list? If you go to modules and edit the module, read the instructions and you will find how to convert that field to a single select field. Title: Re: Advanced Search Module out for testing Post by: Lavvy01 on May 02, 2007, 05:18:22 PM Thanks that does exactly what I need. Next time I will try and read all the instructions
Title: Re: Advanced Search Module out for testing Post by: holahola84 on May 04, 2007, 03:23:28 PM Hey, is it possible to control the width of the select list and textfield? For some multiple option fields, I have values that are quite long, which cause the select list in the module to stretch out of the module. The textfield fits ok to the my template default's width, but stretched out a little in narrowed width.
So is it possible to set a fix width for these fields in the module? Title: Re: Advanced Search Module out for testing Post by: Alejandro on May 04, 2007, 03:36:24 PM Edit the module's customfield template, found in the module folder and style the input elements anyway you want.
Title: Re: Advanced Search Module out for testing Post by: holahola84 on May 04, 2007, 03:43:55 PM Bcos I have tried things like <div style="width:140px;">{JR_SERVICESTYPE|S}</div> or <span> tags to control the width. And also used tables to manually sets width for cells, but none works. Do you have any suggestions?
Title: Re: Advanced Search Module out for testing Post by: Alejandro on May 04, 2007, 03:50:55 PM Not that template, the customfields template. You will find there the code that generates the fields.
Title: Re: Advanced Search Module out for testing Post by: holahola84 on May 04, 2007, 03:53:26 PM Oh my bad! K i'll try :) Thx
Title: Re: Advanced Search Module out for testing Post by: holahola84 on May 05, 2007, 02:58:26 AM I think the section id filter for this module is not working (maybe also the category and criteria). Can u check again to confirm? Thx :)
Title: Re: Advanced Search Module out for testing Post by: Alejandro on May 05, 2007, 09:26:21 AM It works. If you put your mouse over Category Select List Settings you will read that it says:
Quote These settings affect the category select list if present in the form. Which means the filter only affects which categories are shown on the list. If you are not showing the categories, then they don't do anything. If you still want to filter by category or criteria without showing the category list, then you can add hidden fields to the form: CATEGORIES: Code: <input id="categories" name="categories[]" value="14" type="hidden"> <input id="categories" name="categories[]" value="5" type="hidden"> CRITERIA: Code: <input id="criteria" name="criteria" value="14" type="hidden"> You just need to look at the source of the advanced search form and you can pretty much build forms anyway you want with this module. For the time being, I am not going to complicate the module with more settings. Title: Re: Advanced Search Module out for testing Post by: danny_tian434 on May 07, 2007, 03:03:25 AM Hi,
After finished installation, I can see nothing in the advance search page. How to configure the file?Any documents for me to download? Title: Re: Advanced Search Module out for testing Post by: Alejandro on May 07, 2007, 07:02:14 AM This board is for the modules. I think your problem is with the custom fields, no? You should read the quick setup guide included in the zip file and also the documentation here:
http://www.reviewsforjoomla.com/Documentation/Getting-started-Installation-and-setup_3/ Title: Re: Advanced Search Module out for testing Post by: pietrogallo on May 17, 2007, 04:50:52 AM If I'm editing an entry, an editor panel shows in the advanced search module as well.
Title: Re: Advanced Search Module out for testing Post by: Alejandro on May 17, 2007, 07:07:11 PM Thanks, I will have to look into this and have no immediate solution.
Title: Re: Advanced Search Module out for testing Post by: uriel on February 18, 2008, 01:43:58 PM Hi There People,
Getting a few horrible errors when i try and use this : Warning: include_once(/var/www/web492/web/modules/../components/com_jreviews/jreviews.init.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/web492/web/modules/mod_jreviews_advsearch.php on line 39 Warning: include_once() [function.include]: Failed opening '/var/www/web492/web/modules/../components/com_jreviews/jreviews.init.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/web492/web/modules/mod_jreviews_advsearch.php on line 39 Fatal error: Class 'patTemplate' not found in /var/www/web492/web/modules/mod_jreviews_advsearch.php on line 80 Any ideas what might be happening here ? Title: Re: Advanced Search Module out for testing Post by: Alejandro on February 18, 2008, 03:43:58 PM Are you using the version of the module that is included in the jReviews zip package from the client area?
Title: Re: Advanced Search Module out for testing Post by: uriel on February 19, 2008, 03:55:12 AM Hi Alejandro,
I used the module from here : http://www.reviewsforjoomla.com/option,com_smf/Itemid,34/topic,1515.0/ Title: Re: Advanced Search Module out for testing Post by: Alejandro on February 19, 2008, 06:15:34 AM Uriel, update your forum email to match client area email. Until then I will not answer any more questions.
Title: Re: Advanced Search Module out for testing Post by: uriel on February 19, 2008, 07:30:56 AM Dear Alejandro,
1) I did not know i have to be a registered user to use this module. 2) I used only 1 email address to sign up with - that being my mail email address. 3) Can you actually tell me what is going on here ? - I got refered to this forum from joomla.org so i registered here and downloaded the module. Why is it that you will not answer my posts ? Do i have to have membership to this site or what ? ??? Title: Re: Advanced Search Module out for testing Post by: Alejandro on February 19, 2008, 08:26:28 AM 1) I did not know i have to be a registered user to use this module. Not a registered user, a trial user or a paying customer. Quote 2) I used only 1 email address to sign up with - that being my mail email address. I see now. It was my understanding that you were either a trial user or a paying customer.Quote 3) Can you actually tell me what is going on here ? - I got refered to this forum from joomla.org so i registered here and downloaded the module. Why is it that you will not answer my posts ? Do i have to have membership to this site or what ? ??? There's no membership on this site. I refrain from answering posts from users that don't have either a trial or a full licensed version of jReviews because in the past I have found out I had been helping users with old, pirated copies of jReviews. You can't use this module without the jReviews component because the advanced search capability is in jReviews, not the module.Title: Re: Advanced Search Module out for testing Post by: uriel on February 19, 2008, 01:00:35 PM Apologies - i did not know i need to buy other components to use this.
I will stop asking questions then as i clearly don't have the correct level on this site and i don't want to install all sorts of other stuff to achieve something simple. Thank you for pointing me in the right direction. Cheers
Powered by SMF 1.1.4 |
SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com |