vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Changing location of the searchbar (https://vborg.vbsupport.ru/showthread.php?t=326145)

Barzor 02-23-2018 11:27 AM

Changing location of the searchbar
 
1 Attachment(s)
Hi guys,

I tried to move the search bar from navbar to the location where the welcome_to_the_x usually belongs.
but the bar still shows op at the top right corner but is functional


my code:
HTML Code:

        <div id="pagetitle">
        <h1>Vacatures zoeken</h1>
<vb:if condition="$vboptions['enablesearches']">
    <div id="globalsearch" class="globalsearch">
        <form action="search.php?do=process" method="post" id="navbar" class="navbar">
            <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
            <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
            <input type="hidden" name="do" value="process" />
            <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
            <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.png" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
        </form>
        <ul class="navbar_advanced_search">
            <li><a href="search.php{vb:raw session.sessionurl_q}">{vb:rawphrase advanced_search}</a></li>
        </ul>
    </div>
    </vb:if>
    </div>

What am i doing wrong?

romaine 02-23-2018 12:37 PM

Check CSS class is display none or your search bar is only appeared when it is clicked.

Barzor 02-23-2018 01:25 PM

I can already see the search bar, but I don't know how to move it to the right place.

I need step by step guidement please

In Omnibus 02-23-2018 01:51 PM

You're going to have to experiment with the exact number but try placing this in your additional.css template:

.globalsearch {
position:absolute;
width:180px;
right: 1680px;
top: 0px;
float: left;
clear: right;
text-align:right;
line-height: 1.0em;
display:block;
}

The right value is the one that may require adjustment.

Barzor 02-23-2018 03:15 PM

Thanks for the effort.

I've learned a new thing, thanks for that. The issue now is that the seachbar moves out of position if I make the window of my browser smaller.


All times are GMT. The time now is 11:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01421 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete