Forums / Templates, Stylesheets, Page Layout / searchbox in centerpage

searchbox in centerpage

Locked

Started by broeder on 25 Apr 2009, 1:20 PM · Views: 775

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Apr 2009, 1:20 PM
#1
broeder avatar

broeder

New Zenner

Join Date:
Dec 2008
Posts:
49
Plugin Contributions:
0

searchbox in centerpage

Hi,

I have https://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 :)

25 Apr 2009, 2:34 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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)

25 Apr 2009, 2:36 PM
#3
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

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
// 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

26 Apr 2009, 2:13 PM
#4
broeder avatar

broeder

New Zenner

Join Date:
Dec 2008
Posts:
49
Plugin Contributions:
0

Re: searchbox in centerpage

Thanks,

It's all set!