Advanced Search in Prosilver

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
Locked
Darthmat
Registered User
Posts: 114
Joined: Mon Jun 23, 2008 4:08 pm

Advanced Search in Prosilver

Post by Darthmat »

I have the advanced search, but I'm not sure how to link to it in the forum header. :?
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: Advanced Search in Prosilver

Post by Raimon »

Normally ( on a default prosilver ) you have a headerbar and on the right side you have a search bar with a link to the advance search (search.php) .
Do you want to add the Advanced search link under the searchbar, or do you want to add a search link on the navbar, like here on phpbb.com ?
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!
Darthmat
Registered User
Posts: 114
Joined: Mon Jun 23, 2008 4:08 pm

Re: Advanced Search in Prosilver

Post by Darthmat »

Yeah, I don't have that link.
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: Advanced Search in Prosilver

Post by Raimon »

Could you provide a URL to your board please ?
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!
Darthmat
Registered User
Posts: 114
Joined: Mon Jun 23, 2008 4:08 pm

Re: Advanced Search in Prosilver

Post by Darthmat »

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: Advanced Search in Prosilver

Post by Raimon »

Open overall_header.html

search:

Code: Select all


<!-- IF S_VIEWFORUM and S_DISPLAY_SEARCH and not S_IN_SEARCH -->
		<div id="search-box">
			<form method="post" id="forum-search" action="{S_SEARCHBOX_ACTION}">	
			<fieldset>
				<input class="inputbox search tiny" type="text" name="keywords" id="search_keywords" size="22" value="{L_SEARCH_FORUM}" onclick="if (this.value == '{LA_SEARCH_FORUM}') this.value = '';" onblur="if (this.value == '') this.value = '{LA_SEARCH_FORUM}';" />
				<input class="button1" type="submit" value="{L_SEARCH}" />	
				<input type="hidden" value="{FORUM_ID}" name="fid[]" />

				<input type="hidden" name="sr" value="topics" />
			</fieldset>
			</form>
		</div>
<!-- ENDIF -->	  

<!-- IF S_VIEWTOPIC and S_DISPLAY_SEARCH and not S_IN_SEARCH -->
		<div id="search-box">
			<form method="post" id="topic-search" action="{S_SEARCHBOX_ACTION}">
			<fieldset>
				<input class="inputbox search tiny"  type="text" name="keywords" id="search_keywords" size="22" value="{L_SEARCH_TOPIC}" onclick="if(this.value=='{LA_SEARCH_TOPIC}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_TOPIC}';" />

				<input class="button1" type="submit" value="{L_SEARCH}" />
				<input type="hidden" value="{TOPIC_ID}" name="t" />
				<input type="hidden" value="msgonly" name="sf" />
			</fieldset>
			</form>
		</div>
<!-- ENDIF -->


<!-- IF SEARCH_IN_RESULTS and S_DISPLAY_SEARCH and not S_IN_SEARCH -->
		<div id="search-box">

			<form method="post" id="search" action="{S_SEARCH_ACTION}">
			<fieldset>
				<input class="inputbox search tiny" type="text" name="add_keywords" id="search_keywords" value="{L_SEARCH_IN_RESULTS}" size="23" onclick="if(this.value=='{L_SEARCH_IN_RESULTS}')this.value='';" onblur="if(this.value=='')this.value='{L_SEARCH_IN_RESULTS}';"/> 
				<input class="button1" type="submit" name="submit" value="{L_SEARCH}" />
			</fieldset>
			</form>
		</div>
<!-- ENDIF -->

replace with:

Code: Select all

<!-- IF S_VIEWFORUM and S_DISPLAY_SEARCH and not S_IN_SEARCH -->
		<div id="search-box">
			<form method="post" id="forum-search" action="{S_SEARCHBOX_ACTION}">	
			<fieldset>
				<input class="inputbox search tiny" type="text" name="keywords" id="search_keywords" size="22" value="{L_SEARCH_FORUM}" onclick="if (this.value == '{LA_SEARCH_FORUM}') this.value = '';" onblur="if (this.value == '') this.value = '{LA_SEARCH_FORUM}';" />
				<input class="button1" type="submit" value="{L_SEARCH}" />	
				<input type="hidden" value="{FORUM_ID}" name="fid[]" />

				<input type="hidden" name="sr" value="topics" />
<br />
<a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a>
			</fieldset>
			</form>
		</div>
<!-- ENDIF -->	  

<!-- IF S_VIEWTOPIC and S_DISPLAY_SEARCH and not S_IN_SEARCH -->
		<div id="search-box">
			<form method="post" id="topic-search" action="{S_SEARCHBOX_ACTION}">
			<fieldset>
				<input class="inputbox search tiny"  type="text" name="keywords" id="search_keywords" size="22" value="{L_SEARCH_TOPIC}" onclick="if(this.value=='{LA_SEARCH_TOPIC}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_TOPIC}';" />

				<input class="button1" type="submit" value="{L_SEARCH}" />
				<input type="hidden" value="{TOPIC_ID}" name="t" />
				<input type="hidden" value="msgonly" name="sf" />
<br />
<a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a>
			</fieldset>
			</form>
		</div>
<!-- ENDIF -->




<!-- IF SEARCH_IN_RESULTS and S_DISPLAY_SEARCH and not S_IN_SEARCH -->
		<div id="search-box">

			<form method="post" id="search" action="{S_SEARCH_ACTION}">
			<fieldset>
				<input class="inputbox search tiny" type="text" name="add_keywords" id="search_keywords" value="{L_SEARCH_IN_RESULTS}" size="23" onclick="if(this.value=='{L_SEARCH_IN_RESULTS}')this.value='';" onblur="if(this.value=='')this.value='{L_SEARCH_IN_RESULTS}';"/> 
				<input class="button1" type="submit" value="{L_SEARCH}" /><br />
<a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
			</fieldset>
			</form>
		</div>
<!-- ENDIF -->
after that refresh your template ( acp -> styles -> templates -> refresh ) .
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!
Darthmat
Registered User
Posts: 114
Joined: Mon Jun 23, 2008 4:08 pm

Re: Advanced Search in Prosilver

Post by Darthmat »

Thanks! :D

(You just gave it to me so it would display on viewtopic and viewforum, but I figured it out and put in on the index as well. :))
Locked

Return to “[3.0.x] Styles Support & Discussion”