Good news for adding search box, but.....

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Good news for adding search box, but.....

Post by abcd2014 » Sun Feb 25, 2018 1:25 pm

I add following code in navbar_header.html as

Code: Select all

<!-- ENDIF -->

<!-- added by me -->
<li style='float:right;'>
	<div id="search-box" class="search-box search-header" role="search" style='float:top;'>
		<form action="{U_SEARCH}" method="get" id="search">
		<fieldset>
			<input name="keywords" id="keywords" type="search" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search tiny" size="20" value="{SEARCH_WORDS}" placeholder="{L_SEARCH_MINI}" />
			<button class="button icon-button search-icon" type="submit" title="{L_SEARCH}">{L_SEARCH}</button>
			<a href="{U_SEARCH}" class="button icon-button search-adv-icon" title="{L_SEARCH_ADV}">{L_SEARCH_ADV}</a>
			{S_SEARCH_HIDDEN_FIELDS}
		</fieldset>
		</form>
	</div>
</li>	<!-- end of added -->
I just copy code from overall_header.html

Now I want to move the search-box up to same line as "Board index".

I don't understand so many IDs in above code, can you help to complete the up-movement?

Thanks.

User avatar
Christian 2.0
Former Team Member
Posts: 4442
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Good news for adding search box, but.....

Post by Christian 2.0 » Fri Mar 02, 2018 12:58 am

Hi :)

Do you have a link to a live example of this?

Thanks!
🚀 Premium phpBB Styles
Premium 3.2 Styles: Modern phpBB Style, NEW - Volare Material phpBB Style
Premium 3.2 Extensions: phpBB sidebar Extension
Custom work available on request

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 4 guests