Re: How I got the SEARCH to appear on all pages
And REMEMBER TO DELETE EVERYTHING IN SEARCH_BOX.TPL !!!
Re: How I got the SEARCH to appear on all pages
Quote:
Originally Posted by grynmoors
I noticed that the search wasn't appearing on all pages and I wanted it to. NOTE: THIS WAS WRITTEN FOR VSHARE 2.4
Here is my solution:
In HEADER.tpl look for
Code:
<CENTER>
{if $head_bottom ne ""}
{include file = head_bottom/$head_bottom}
{/if}
{if $head_bottom_add ne ""}
{include file = head_bottom/$head_bottom_add}
{/if}
THEN RIGHT ABOVE THAT PUT IN:
Code:
<FORM name=searchForm action="{$baseurl}/search.php" method="get">
<table border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td height="34"><INPUT class=search_box tabIndex=1 maxLength=128 name="search_id" value="{$smarty.request.search_id}"></td>
<td width="20"></td>
<td><SELECT name=search_type class=search_select>
{if $smarty.request.search_type eq "search_videos"}<OPTION value=search_videos selected>Search Videos</OPTION>{else}<OPTION value=search_videos>Search Videos</OPTION>{/if}
{if $smarty.request.search_type eq "search_users"}<OPTION value=search_users selected>Search Users</OPTION>{else}<OPTION value=search_users>Search Users</OPTION>{/if}
{if $smarty.request.search_type eq "search_groups"}<OPTION value=search_groups selected>Search Groups</OPTION>{else}<OPTION value=search_groups>Search Groups</OPTION>{/if}
</SELECT>
</td>
<td width="10"></td>
<td><input type=image src="{$baseurl}/templates/images/search.gif" width="90" height="20"></td>
</tr>
</table>
</FORM>
Then open search_box.tpl and delete everything in there.
As always, before uploading anything, make sure you make a back up of your original (by renaming it search_box_original.tpl and header_original.tpl in case it doesn't work like you want it to.
Thet first section of code is NOT in my header.tpl
Re: How I got the SEARCH to appear on all pages
the original post was for vShare 2.4 I believe.
Go to search_box.tpl and copy and paste the FORM that appears there and stick that FORM code anywhere in your header that you want the search to appear and then delete everything from search_box.tpl