Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: How I got the SEARCH to appear on all pages

  1. #11
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: How I got the SEARCH to appear on all pages

    And REMEMBER TO DELETE EVERYTHING IN SEARCH_BOX.TPL !!!
    If it's not fun, stop doing it!

  2. #12

    Default 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

  3. #13
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default 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
    If it's not fun, stop doing it!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Search Fix for Vshare 2.6 tag-only search
    By mersh in forum Fixed Bugs
    Replies: 3
    Last Post: 01-07-2010, 03:59 PM
  2. New Pages
    By pitox in forum Installation Support
    Replies: 2
    Last Post: 05-17-2008, 10:43 PM
  3. 2.6 with no pages
    By datasmith in forum Installation Support
    Replies: 3
    Last Post: 01-07-2008, 03:20 AM
  4. search feature on all pages
    By lesansan in forum Template Modifications
    Replies: 3
    Last Post: 11-06-2007, 10:00 AM
  5. Editing the pages in the "web pages"
    By ofir in forum Installation Support
    Replies: 2
    Last Post: 07-02-2007, 05:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •