vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Search drop-down has "Search just titles" also. (https://vborg.vbsupport.ru/showthread.php?t=91914)

Abe1 07-09-2005 10:00 PM

Search drop-down has "Search just titles" also.
 
This template change will make the search drop-down menu on your forum have 2 boxes. One to search all posts (the current one), and one to search just thread titles.

Installation:

Open template 'navbar'.

Search for:
HTML Code:

<form action="search.php" method="post">
Place after:
HTML Code:

                                $vbphrase[post]:<br>
                                <input type="hidden" name="do" value="process" />
                                <input type="hidden" name="showposts" value="0" />
                                <input type="hidden" name="quicksearch" value="1" />
                                <input type="hidden" name="s" value="$session[sessionhash]" />
                                <input type="text" class="bginput" name="query" size="20" />$gobutton<br />
                        </form>
                        </td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                        <form action="search.php" method="post">
                                $vbphrase[title]:<br>
                                <input type="hidden" name="titleonly" value="1" />

Dont forget to click install!

FleaBag 07-27-2005 11:13 PM

Sweet, am liking this a lot. Thanks for sharing.

Tony G 07-28-2005 04:03 AM

Nice mod.

Could you please attach it as a .txt file rather than posting the instructions in the thread? It makes it easier for members to refer to your template modification if they need to re-install it for any reason in the future. :) Thank you.

Abe1 07-28-2005 04:34 AM

Quote:

Originally Posted by Tony G
Nice mod.

Could you please attach it as a .txt file rather than posting the instructions in the thread? It makes it easier for members to refer to your template modification if they need to re-install it for any reason in the future. :) Thank you.

done

sketch42 07-28-2005 04:35 AM

can you add radio button to return threads or posts? :D

Abe1 07-28-2005 09:11 AM

Quote:

Originally Posted by sketch42
can you add radio button to return threads or posts? :D

Will try. (nice idea.)

FleaBag 07-28-2005 11:16 AM

Ya know I am really liking this. This should be stock in vB I reckon. I'm going to add a search box for my gallery, link directory e.t.c. underneath it too.

Tony G 07-28-2005 11:30 AM

Quote:

Originally Posted by Abe1
done

Usually involves removing the code from the actual post, but eh that's good enough. :)

Abe1 07-28-2005 11:53 AM

Quote:

Originally Posted by Tony G
Usually involves removing the code from the actual post, but eh that's good enough. :)

Give people a choice. If they want to download something or not.

Tony G 07-28-2005 12:02 PM

Yes, I understand that, I don't have any objections to it being in the post, just thinking out aloud. :)

Gizmo5h1t3 08-10-2005 12:06 PM

doesnt seem to make any change in RC2...first hack that hasnt worked on here so far...

Abe1 08-10-2005 01:27 PM

Quote:

Originally Posted by Gizmo5h1t3
doesnt seem to make any change in RC2...first hack that hasnt worked on here so far...

It should work good on RC2. If you have more then one style, make sure you edited all of them.

turksengel 08-10-2005 03:04 PM

can you do that search for username i mean searching someone's posts ?

Tony G 08-11-2005 04:54 AM

If you want to search posts, you put your search request in the 'Post' box. If you want it to just searcg thread titles, put your search request in the 'Title' box.

Abe1 01-15-2006 02:39 AM

UPDATE:

One line added.

Darat 02-23-2006 09:16 AM

Could you add this to the forumdisplay template to add the option to the "Search this forum" dropdown?

BabyNameAddict 03-09-2006 03:20 AM

Works flawlessly :)

rareclownfish 04-06-2006 01:29 AM

Nice installed

rareclownfish 04-06-2006 02:28 AM

Well It worked for a like a couple sec and them it's not there anymore. What could have happend?

Abe1 04-06-2006 02:41 AM

Quote:

Originally Posted by rareclownfish
Well It worked for a like a couple sec and them it's not there anymore. What could have happend?

Did you only install it in one style?

rareclownfish 04-06-2006 02:44 AM

I olny have one

Abe1 04-06-2006 02:53 AM

Quote:

Originally Posted by rareclownfish
I olny have one

How did it disappear? You only see one option now?

rareclownfish 04-13-2006 02:56 AM

I tried this again and now my search function is out of wack.

this is the error I'm getting ---href="search.php" accesskey="4" rel="nofollow">Advanced Search

I fied that prob, but can't get both to show up.

stinger2 01-30-2007 09:36 AM

cool

yoyoyoyo 09-10-2007 11:42 PM

any way to get this working in 3.6.8?

Abe1 09-16-2007 10:56 AM

Quote:

Originally Posted by yoyoyoyo (Post 1336612)
any way to get this working in 3.6.8?

Go look in my profile for the vb3.6 version.


All times are GMT. The time now is 04:47 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.01393 seconds
  • Memory Usage 1,767KB
  • 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_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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