Forums / Templates, Stylesheets, Page Layout / Instructions To: Relocate Advanced Search Header Below Menu

Instructions To: Relocate Advanced Search Header Below Menu

Locked

Started by royal on 4 Jan 2009, 11:36 PM · Views: 2,219

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
4 Jan 2009, 11:36 PM
#1
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
261
Plugin Contributions:
0

Instructions To: Relocate Advanced Search Header Below Menu

Hello Everyone,

For those who love to relocate their Advanced Search Header below Menu.

Position your advanced Search either Left or Right.

Always Back Up, Backup before making any changes.

In (includes/templates/Your_Template/common/ tpl_header.php)

Look for:

<!--bof-drop down menu display-->
<?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
<!--eof-drop down menu display-->
[B]<div class="clearBoth"></div>
<!--bof-header ezpage links-->[/B]
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>

**
Add code between the blue lines:**

<!--bof-drop down menu display-->
<?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
<!--eof-drop down menu display-->
[B]<div class="clearBoth"></div>[/B]
[B]<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>[/B][B]
<!--bof-header ezpage links-->[/B]
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>

Go to (includes/templates/Your_Template/css/stylesheet.css)

Look for #navMainSearch

#navMainSearch {
	 float: right;
         }

Change to:

#navMainSearch {
         float: left;
         margin: 2em;
         background-image: url(../images/your_background.gif);
         padding: 0.2em;
         }

Style your #navMainSearch the way you like it.

To change keyword, width, and search button go to:

(/includes/templates/Your_Template/sideboxes/tpl_search_header.php)

 if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
    $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="[B]30[/B]" style="width: [B]100px[/B]" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . ' ' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
  } else {
    $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="" style="width: [B]100px[/B]" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . ' <input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: [B]45px[/B]" />';
  }

Change the keyword, width and button size to your preference:

 if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
    $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="[B]100[/B]" style="width: [B]400px[/B]" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . ' ' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
  } else {
    $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="[B]100[/B]" style="width: [B]400px[/B]" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . ' <input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: [B]100px[/B]" />';
  }

Have a wonderful year everyone!:smile:

Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

6 Jan 2009, 3:26 AM
#2
unhappydave avatar

unhappydave

New Zenner

Join Date:
Jul 2008
Posts:
52
Plugin Contributions:
0

Re: Instructions To: Relocate Advanced Search Header Below Menu

Great explanation, do you have one for removing it from the header?

Here is what i need-

I have it installed in the header top right corner-

I want to replace it with google adsense search bar. ( java edition)

I am swamped and know if i start this it could be hours till i get it installed correctly-

any help would be greatly appreciated.

Got Baby Heels? Your Hooter Hider resource!

6 Jan 2009, 3:33 AM
#3
unhappydave avatar

unhappydave

New Zenner

Join Date:
Jul 2008
Posts:
52
Plugin Contributions:
0

Re: Instructions To: Relocate Advanced Search Header Below Menu

Never mind- Thanks again for you awesome screen shots- I figured it out -

Got Baby Heels? Your Hooter Hider resource!

6 Jan 2009, 3:48 AM
#4
unhappydave avatar

unhappydave

New Zenner

Join Date:
Jul 2008
Posts:
52
Plugin Contributions:
0

Re: Instructions To: Relocate Advanced Search Header Below Menu

Add code between the blue lines:

Code:

<!--bof-drop down menu display--> <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?> <!--eof-drop down menu display-->

<div class="clearBoth"></div>
<div id="navMainSearch">ADDED HERE
<!--bof-header ezpage links-->

<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '

Got Baby Heels? Your Hooter Hider resource!

6 Jan 2009, 3:48 AM
#5
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
261
Plugin Contributions:
0

Re: Instructions To: Relocate Advanced Search Header Below Menu

unhappyDAVE:

Never mind- Thanks again for you awesome screen shots- I figured it out -

I'm glad you figure it out. You beat me by 2 minutes.:smile:

You are very welcome!

Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

6 Jan 2009, 5:29 AM
#6
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
261
Plugin Contributions:
0

Re: Instructions To: Relocate Advanced Search Header Below Menu

Always remember to Backup before doing any changes.

Tested on v1.38a

I used Explorer (IE) and Firefox browser for Post 1 to view website.

Website contents were on the Far right for Google Chrome and Safari when check.

Correction: Using float move contents to the far right for most browsers.

Royal:

Go to (includes/templates/Your_Template/css/stylesheet.css)

Look for #navMainSearch

#navMainSearch {
float: right;
}

> 
> 
> **Change to:**
> 
> ```
#navMainSearch {
         float: left;
         margin: 2em;
         background-image: url(../images/your_background.gif);
         padding: 0.2em;
         }

Style your #navMainSearch the way you like it.

Remove code: float: left; from #navMainSearch and you will be able to view IE, Firefox, Opera, Safari, Sea Monkey and Google Chrome Browsers.

Go to your Admin/Tools/Layout Boxes Controller.

Look for search_header.php.

  1. Turn - Left/Right Column Status: OFF
  2. Turn - Single Column Status: ON.

I also notice that I can only have Advanced Search to the left only.

You can still change the width to your preference without having you content swith to either Left/Right.

Go to (includes/templates/Your_Template/css/stylesheet.css)

Look for #navMainSearch

#navMainSearch {
         float: left;
         margin: 2em;
         background-image: url(../images/your_background.gif);
         padding: 0.2em;

         }

Change to:

#navMainSearch {
         [B]background-image: url(../images/your_background.gif);
         width: 100%;
         font-size: 1.2em;[/B]         }

Used your background color. Example: (background-color: #9a9a9a;)

Or

Your background image. Example: (url(../images/your-background.gif)

If your width is 750px or any other number you can used that instead of 100%.

Go to http://www.browsershots.org to see how your website look on other browsers.

Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

6 Jan 2009, 6:31 AM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,746
Plugin Contributions:
0

Re: Instructions To: Relocate Advanced Search Header Below Menu

Great explanation, do you have one for removing it from the header?

Here is what i need-

I have it installed in the header top right corner-

I want to replace it with google adsense search bar. ( java edition)

I am swamped and know if i start this it could be hours till i get it installed correctly-

any help would be greatly appreciated.

You know you can simply turn it off? Admin> Tools> Layout Boxes Controller> Header Search

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

6 Jan 2009, 2:44 PM
#8
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
261
Plugin Contributions:
0

Re: Instructions To: Relocate Advanced Search Header Below Menu

Remember to Backup before making any changes.

Just remove the blue lines and add the red lines.

I just notice the extra space. Know that look about right

I promise myself I will get some sleep.:wink:

Go to (includes/templates/Your_Template/css/stylesheet.css)

#navMainSearch {
        [B] float: left;
         margin: 2em;
         background-image: url(../images/your_background.gif);
         padding: 0.2em;[/B]
         }

Change to:

#navMainSearch {
         [B]background-image: url(../images/your_background.gif);
         width: 100%;
         font-size: 1.2em;[/B]       
         }

Used your background color. Example: (background-color: #9a9a9a;)

Or

Your background image. Example: (url(../images/your-background.gif)

If your width is 750px or any other number you can used that instead of 100%.

Go to http://www.browsershots.org to see how your website look on other browsers.

Validate your store: http://validator.w3.org/

Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca