Forum Support

Shape 5
October 21, 2021, 03:16:47 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Search bar location  (Read 366 times)
mozart
Jr. Member
**
Offline Offline

Posts: 17



« on: July 21, 2007, 02:29:41 PM »

Is it possible somehow to place the search function "inside" the suckerfish menu so that it is placed right-alined in the menu?

Alternatively I would like to place it at the upper right corner. Right now it's placed in "user 3" but I think it is left-aligned here. I would like it to fluctuate with the right side border. Hope you understand what I mean. You can see it on www.markedsfoeringsloven.dk.

Peter
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: July 23, 2007, 09:33:04 PM »

Peter,

I am not sure if you are asking about the Bliss template or Your Store but if you need it for Bliss you can do this:

Right below where these lines in your index.php file:

         <?php if ($suckerfish_glossy == "no") { ?>

            <div id="s5_topmenu"><?php echo "<div style='margin-left:-4px;' id='s5_navv-no'>"; mosShowHFMenu2($params); echo "\n</div>\n";
?></div>

         <?php } ?>


Insert:

<form action="index.php" method="post">
<input class="inputboxsearch" style="float: right; padding-left: 3px; margin-top: 5px; background: #ffffff;" type="text" name="searchword" value="<?php echo _SEARCH_BOX; ?>"  onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX; ?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX; ?>') this.value='';" />
<input type="hidden" name="option" value="search" /></form>


This will insert a search field to the right of the suckerfish menu in Bliss. I hope that is what you are looking for.

Regards,
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
heritage
Jr. Member
**
Offline Offline

Posts: 25



« Reply #2 on: August 01, 2007, 08:52:50 PM »

can you please write directions how to do the same in Youstore template?
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #3 on: August 06, 2007, 02:18:28 PM »

Heritage,

Below is the code to add the search bar at the end of the suckerfish menu on the Your Store template:

Right below where the "div class=right" line in your index.php file:

 <div id='navv'>
    <?php mosShowHFMenu2($params); ?>
</div>                                                   
</div>
<div class="right">

Insert:

<form action="index.php" method="post">
<input class="inputboxsearch" style="float: right; padding-left: 3px; margin-right: 13px;margin-top: 7px; background: #ffffff;" type="text" name="searchword" value="<?php echo _SEARCH_BOX; ?>"  onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX; ?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX; ?>') this.value='';" />
<input type="hidden" name="option" value="search" /></form>

Regards,
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.