Support Forums

How to add "Search All" to extra fields

This is a discussion on How to add "Search All" to extra fields within the Technical Support forums, part of the Technical Support Forums category; v4.2.3 default template Everything is working fine, but i would love to change the wording from "Please Select" to "Search ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-24-2011, 01:23 AM   #1
Junior Member
 
Join Date: May 2011
Posts: 9
Rep Power: 0
codybrucewilliams is on a distinguished road
Default How to add "Search All" to extra fields

v4.2.3
default template

Everything is working fine, but i would love to change the wording from "Please Select" to "Search All".. any easy way?

trying link pic.... don't know if you can see it or not...


https://picasaweb.google.com/lh/phot...eat=directlink

Last edited by codybrucewilliams; 06-24-2011 at 11:51 AM. Reason: added pic
codybrucewilliams is offline  
Old 06-24-2011, 10:45 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

'Please select' is not the same as search all in terms of the action. Are you sure you wish to change this? If you do then I believe it is in the language file where most other labels are defined. If you don't want a 'search all' action then you will need to recode the search form in search.tpl to stop that.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Old 06-24-2011, 11:50 AM   #3
Junior Member
 
Join Date: May 2011
Posts: 9
Rep Power: 0
codybrucewilliams is on a distinguished road
Default

yes, a "search all" would be very handy.

For example:

Someone didn't just want to find all Acuras under $3000 but ALL the models under $3000...

If a person chooses NO model, then yet is searches all, but its not clear to the user they can leave it on "please select", i would love to change the words "Please Select" to "Select All" and thats it... just the words.

Is it just something simple I may have overlooked?

Last edited by codybrucewilliams; 06-24-2011 at 11:53 AM.
codybrucewilliams is offline  
Old 06-24-2011, 12:16 PM   #4
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

You can't change it via language without it changing outside of the search. However the extra fields for search are all done via ajax, so you could alter the javascript to rewrite it to anything you want:

I've added this in two places see below:
Code:
msg = msg.replace(/Please Select/g, 'Search All');
Code:
$("#type").change(function()
    {
        $("#response").show();
        $("#optResponse").hide();
        //alert($('#type option:selected').val());
        $.ajax({
            url: 'ajax.php',
            data: 'action=extra_listing_fields&do=search§ion=' + $('#type option:selected').val(),
            type: 'post',
            success: function (msg) {
                msg = msg.replace(/Please Select/g, 'Search All');
                $("#response").html(msg);
            }
        });
    });
    $("#parent").change(function()
    {
        $("#response").show();
        //alert($('#section option:selected').val());
        $.ajax({
            url: 'ajax.php',
            data: 'action=extra_listing_fields§ion=' + $('#type option:selected').val(),
            type: 'post',
            success: function (msg) {
                msg = msg.replace(/Please Select/g, 'Search All');
                $("#response").html(msg);
            }
        });
    });
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline  
Old 06-24-2011, 12:55 PM   #5
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Just to clarify John's excellent response, the javascript code that he is referring to is in the template file not the ajax file itself. search.tpl
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 06-24-2011, 02:40 PM   #6
Junior Member
 
Join Date: May 2011
Posts: 9
Rep Power: 0
codybrucewilliams is on a distinguished road
Default

i was just about to ask that! thanks
codybrucewilliams is offline  
Old 06-24-2011, 04:31 PM   #7
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

Thanks Mike, the info was useless without knowing where to put it.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline  
Old 06-24-2011, 07:52 PM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

OK - you are talking about extrafields and not the category. The screen shot is clear.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Search All" on extra fields roger Technical Support 10 05-10-2010 08:30 PM
"Search All" extra fields option brad33 Technical Support 5 04-30-2009 05:21 PM
How to create dropdown list options for Extra Field in "User Registration Fields"? Success Technical Support 11 06-02-2008 10:38 AM


All times are GMT -4. The time now is 10:18 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0