Announcement

Collapse
No announcement yet.

Add search bar between forum and statistic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Add search bar between forum and statistic

    I want to add a search bar,not the one from vbulletin. I want it to be between the bottom of the forum and the statistic box

    Thank you

  • #2
    You can copy the quick search form from the navbar, paste it to the FORUMHOME and modify it to your liking:

    Add the red code:

    Code:
    	</tr>
    </tbody>
    </table>
    $forumhome_markread_script
    <!-- /main -->
    
    <br />
    <br />
    
    [color=red]<if condition="$show['searchbuttons']">
    		<form action="search.php?do=process" method="post">
    		<table cellpadding="4" cellspacing="1" border="0">
    		<tr>
    			<td class="thead">$vbphrase[search_forums]</td>
    		</tr>
    		<tr>
    			<td class="vbmenu_option" title="nohilite">
    				<input type="hidden" name="do" value="process" />
    				<input type="hidden" name="quicksearch" value="1" />
    				<input type="hidden" name="s" value="$session[sessionhash]" />
    				<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
    			</td>
    		</tr>
    		<tr>
    			<td class="vbmenu_option" title="nohilite">
    				<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
    				&nbsp;
    				<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
    			</td>
    		</tr>
    		<tr>
    			<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
    		</tr>
    		</table>
    		</form>
    </if>
    <br />[/color]
    
    <!-- what's going on box -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
    	<tr>
    		<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
    	</tr>
    </thead>
    <if condition="$show['loggedinusers']">
    <!-- logged-in users -->

    Comment


    • #3
      thank you ver much

      Comment

      Loading...
      Working...
      X