MyBB Community Forums

Full Version: Placing Searchbox issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry, its me again.

Blush

How can i get my search box here:

[Image: 30nhn47.png]

Everytime i try, it goes below the logo and shifts the blue down another <br>

Here is the code currently:

<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
<table border="0" cellspacing="0" cellpadding="0"  class="unheader">
<tr>
			<td class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a><div>
</td>
<td class="user">
{$welcomeblock}
</td>
</tr>
</table>


<form action="http://www.google.co.uk/cse" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-4595198420871047:dsb6jd54ds6" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="50" />
    <input type="submit" name="sa" value="Search" />
  </div>
</form>
<script type="text/javascript" src="//www.google.co.uk/cse/brand?form=cse-search-box&amp;lang=en"></script>




<div class="pasek">
<div id="szukaj">

 </div>

			
</div>
			<hr class="hidden" />
		</div>
		<hr class="hidden" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}{$aamessage}
			{$pending_joinrequests}
			{$myshowcase_unapproved}{$myshowcase_reported}

<center><div style="font-weight: bold; font-size: 12px">

<a href="http://www.berlingoforum.co.uk/index.php">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/memberlist.php">Member List</a>&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/misc.php?page=usermap">Member Map</a>&nbsp;&nbsp;|&nbsp;&nbsp;

Garage (Coming Soon!)&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/donate.php">Donate</a>&nbsp;&nbsp;|&nbsp;&nbsp;

Game Section (Coming Soon!)&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/misc.php?action=help">Help</a>&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/contact.php">Contact Us</a>

                </div>

<br />
<navigation>
<br />
Replace above code with this;
<div id="container">
        <a name="top" id="top"></a>
        <div id="header"><div class="float_right"><form action="http://www.google.co.uk/cse" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-4595198420871047:dsb6jd54ds6" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="50" />
    <input type="submit" name="sa" value="Search" />
  </div>
</form>
<script type="text/javascript" src="//www.google.co.uk/cse/brand?form=cse-search-box&amp;lang=en"></script></div>
<table border="0" cellspacing="0" cellpadding="0"  class="unheader">
<tr>
            <td class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a><div>
</td>
<td class="user">
{$welcomeblock}
</td>
</tr>
</table>
<div class="pasek">
<div id="szukaj">
</div>
            </div>
            <hr class="hidden" />
        </div>
        <hr class="hidden" />
        <div id="content">
            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}{$aamessage}
            {$pending_joinrequests}
            {$myshowcase_unapproved}{$myshowcase_reported}

<center><div style="font-weight: bold; font-size: 12px">

<a href="http://www.berlingoforum.co.uk/index.php">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/memberlist.php">Member List</a>&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/misc.php?page=usermap">Member Map</a>&nbsp;&nbsp;|&nbsp;&nbsp;

Garage (Coming Soon!)&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/donate.php">Donate</a>&nbsp;&nbsp;|&nbsp;&nbsp;

Game Section (Coming Soon!)&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/misc.php?action=help">Help</a>&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/contact.php">Contact Us</a>

                </div>

<br />
<navigation>
<br />
Thanks for responding once again Yaldaram, but its put it in the top right.

www.berlingoforum.co.uk - You can see top right.
Alright, replace above with this;
<div id="container">
        <a name="top" id="top"></a>
        <div id="header">
<table border="0" cellspacing="0" cellpadding="0"  class="unheader">
<tr>
            <td class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a><div>
</td><div style="float: right; valign: top;"><form action="http://www.google.co.uk/cse" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-4595198420871047:dsb6jd54ds6" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="50" />
    <input type="submit" name="sa" value="Search" />
  </div>
</form>
<script type="text/javascript" src="//www.google.co.uk/cse/brand?form=cse-search-box&amp;lang=en"></script></div><br/>
<br/>
<td class="user">
{$welcomeblock}
</td>
</tr>
</table>
<div class="pasek">
<div id="szukaj">
</div>
</div>
            <hr class="hidden" />
        </div>
        <hr class="hidden" />
        <div id="content">
            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}{$aamessage}
            {$pending_joinrequests}
            {$myshowcase_unapproved}{$myshowcase_reported}

<div style="font-weight: bold; font-size: 12px">

<a href="http://www.berlingoforum.co.uk/index.php">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/memberlist.php">Member List</a>&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/misc.php?page=usermap">Member Map</a>&nbsp;&nbsp;|&nbsp;&nbsp;

Garage (Coming Soon!)&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/donate.php">Donate</a>&nbsp;&nbsp;|&nbsp;&nbsp;

Game Section (Coming Soon!)&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/misc.php?action=help">Help</a>&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="http://www.berlingoforum.co.uk/contact.php">Contact Us</a>

                </div>

<br />
<navigation>
<br />
nearly? lol...

Sorry man.
Your header template is heavily modified, so I'm confused in editing. Its my 'Default' header template and here is working fine;
<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
<div style="float: right; valign: top;"><form action="http://www.google.co.uk/cse" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-4595198420871047:dsb6jd54ds6" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="50" />
    <input type="submit" name="sa" value="Search" />
  </div>
</form>
<script type="text/javascript" src="//www.google.co.uk/cse/brand?form=cse-search-box&amp;lang=en"></script></div><br/>
<br/><div class="menu">
				<ul>
					<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
					<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
					<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
				</ul>
			</div>
			<hr class="hidden" />
			<div id="panel">
				{$welcomeblock}
			</div>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			{$pending_joinrequests}
			<navigation>
			<br />

Just check to see where to edit it in your header template.
Im getting it like this atm

[Image: f9QDh.png]

On your site, id want it like opposite the logo Yaldaram on the right hand side. Higher than it is.