Results 1 to 5 of 5

Thread: Remove Distance/ZIP search frontpage

  1. #1
    marbaz
    Guest

    Default Remove Distance/ZIP search frontpage

    Hi, i searched the forum but cannot find a solution..
    I use newest version with latest patch and act template.

    On the frontpage there is the quick search ,with the search within (distance and ZIP) function.
    I want to remove thes, anyone can tell me how to do that...?

    Thanks a lot,

    Martin

  2. #2
    Kleetus
    Guest

    Default

    Hi Marbaz,

    search for function "PageCompQuickSearchIndex" in your templates/tmpl_act/scripts/index.php file and delete the following:
    PHP Code:
    $ret .= '<div class="qsi_line">';
            
    $ret .= '<div class="qsi_first"style="position:relative; left:-15px;">';
                
    $ret .= _t("_within");
            
    $ret .= '</div>';
            
    $ret .= '<div class="qsi_second">';
                
    $ret .= '<span style="position:absolute; top:0px; left:-45px;">';
                    
    $ret .= '<input type="text" name="distance" style="width:50px;" />';
                
    $ret .= '</span>';
                
    $ret .= '<span style="position:absolute; top:0px; left:15px;" >';
                    
    $ret .= '<select name="metric" style="width:54px;">';
                        
    $ret .= '<option selected="selected" value="miles">' _t("_miles") . '</option>';
                        
    $ret .= '<option value="km">' _t("_km") . '</option>';
                    
    $ret .= '</select>';
                
    $ret .= '</span>';
            
    $ret .= '</div>'
        
    $ret .= '</div>';
        
        
    $ret .= '<div class="qsi_line">';
            
    $ret .= '<div class="qsi_first">';
                
    $ret .= _t("_from ZIP");
            
    $ret .= '</div>';
            
    $ret .= '<div class="qsi_second">';
                
    $ret .= '<input type="text" name="zip" style="width:90px;position:absolute;left:-25px;" />';
            
    $ret .= '</div>'
        
    $ret .= '</div>'

  3. #3
    marbaz
    Guest

    Default Thankx

    Thank you !

    Works fine

  4. #4
    windy's Avatar
    Join Date
    Sep 2006
    Posts
    46

    Default

    Hi

    I have done this mod and it is fine but-

    How do I remove search by distance on the extended search page also?

    I have removed the reference to it in 'search.php' but I am left with '_Zip_locator_' showing

    Any ideas?anyone?

    Many thanks

    ver 6.02
    Last edited by windy; 10-20-2007 at 11:04 AM.

  5. #5
    windy's Avatar
    Join Date
    Sep 2006
    Posts
    46

    Default

    Silly me

    The answer was in admin settings - uncheck - search by Zip

    sorry

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. zip code/distance search not working
    By chameleon in forum Dolphin General Discussion v5.3 to v5.6.5
    Replies: 20
    Last Post: 11-06-2007, 09:44 AM
  2. Post code distance search
    By chrisatuni in forum Dolphin General Discussion v5.3 to v5.6.5
    Replies: 1
    Last Post: 08-25-2007, 11:32 PM
  3. Get rid of title or headers on frontpage
    By ijk in forum General Troubleshooting
    Replies: 0
    Last Post: 04-16-2007, 06:16 AM
  4. Remove Part Of The Search
    By stevie in forum General Troubleshooting
    Replies: 7
    Last Post: 02-10-2006, 10:18 AM
  5. Search By Zip Code Distance
    By GJGUY in forum Bugs aeDating v4.0.2
    Replies: 2
    Last Post: 10-03-2005, 11:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •