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
THEN RIGHT ABOVE THAT PUT IN: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 open search_box.tpl and delete everything in there.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>
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.




Reply With Quote
Bookmarks