Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    49
    Plugin Contributions
    0

    Default searchbox in centerpage

    Hi,

    I have www.livremoi.ma and am using ZC 1.3.8

    I am trying to create a centerbox displaying the advanced search.
    Also I need it right under the greeting text.

    I guess I have to create a file advancedsearchbox_defines.php
    in includes/languages/mylanguage/extra_definitions

    But what should I put in it ? Or is there another way using Admin ?

    Thanks for your help :)

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: searchbox in centerpage

    There is no way to do this via the Admin. You would need to create a new centerbox based on the advanced_search page. You can feed the results through to the advanced_search_results page.

    The tricky bit would be if you had any need to carry the results forward from one search to the next. I doubt that could be done using a defines block.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: searchbox in centerpage

    My solution would be to edit your template file

    \includes\templates\custom\templates\tpl_index_default.php

    and paste in the code at line 24 just below the customer greeting;

    PHP Code:
    <?php
    // BOF Advanced Search MOD
    $temp_current_page_base=$current_page_base;
    $current_page_base='advanced_search';
    require(
    DIR_WS_MODULES zen_get_module_directory('require_languages.php'));
    $current_page_base=$temp_current_page_base;
    require(
    $template->get_template_dir('tpl_advanced_search_default.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_advanced_search_default.php'); 
    // EOF Advanced Search MOD
    ?>
    ~Steve~

  4. #4
    Join Date
    Dec 2008
    Posts
    49
    Plugin Contributions
    0

    Default Re: searchbox in centerpage

    Thanks,

    It's all set!

 

 

Similar Threads

  1. Custom searchbox issue
    By tor86 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Oct 2010, 07:53 PM
  2. Searchbox font size
    By razzzor in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Jul 2008, 01:17 AM
  3. Searchbox in Breadcrumb
    By soggychicken in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 22 Jul 2007, 06:03 AM
  4. Centerpage Diffrent in Firefox and IE How can I fix this??
    By milobloom in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 26 May 2007, 05:39 PM
  5. custom searchbox help
    By zskiman in forum General Questions
    Replies: 0
    Last Post: 3 Oct 2006, 08:40 PM

Posting Permissions

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