vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   I Want help with Search Function (https://vborg.vbsupport.ru/showthread.php?t=256164)

Cobra-J82 12-30-2010 12:35 AM

I Want help with Search Function
 
I have this Search Box on my Forumhome
Its a customised one

So basically it only searches for User names


How can I change it to search for all forum like a normal quick search

thanks

This is the code:
Code:

<!-- ##### MEMBER SEARCH & RIGHT MENU ##### -->
<div align="left" style="padding-top:0px;padding-bottom:0px;padding-right:300px;">

<if condition="$show['popups'] AND !$show['usergroup']">
<form class="tmenu" action="memberlist.php?do=getall" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="getall" />
<input type="text" class="bginput inlineimg" name="ausername" size="50" value="$ltr" title="$vbphrase[username]" /><input type="image" class="inlineimg" src="http://www.wassoufbook.com/fanclub/images/styles/new_facebook/images/buttons/search_button.gif" value="Submit" alt="Submit"/>
</form>
</if>
<!-- ##### /MEMBER SEARCH & RIGHT MENU ##### -->


metalguy639 12-31-2010 05:27 PM

Have not tried it but possibly this will work as the code you need. you may need to edit/tweak it a bit for your site.

Code:

<table cellpadding="4" cellspacing="1" border="0">
                <tr>
                        <td class="thead">$vbphrase[search_forums]</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                                <form action="search.php?do=process" method="post">

                                        <input type="hidden" name="do" value="process" />
                                        <input type="hidden" name="quicksearch" value="1" />
                                        <input type="hidden" name="childforums" value="1" />
                                        <input type="hidden" name="exactname" value="1" />
                                        <input type="hidden" name="s" value="$session[sessionhash]" />
                                        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                        <div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>

like I said I did not test it, but its the standard code for the search box so it should pull from all threads/forums/posts etc.

Cobra-J82 01-04-2011 09:50 PM

Thanks for the help
I did some tweeks to it to look exactly like the design I wanted
Works great :)

metalguy639 01-04-2011 10:15 PM

No problem, glad to have helped.


All times are GMT. The time now is 09:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01008 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete