Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
Refine this search and pasteable search URL pseudo-features Details »»
Refine this search and pasteable search URL pseudo-features
Version: 1.00, by malmazan malmazan is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.6.3 Rating:
Released: 11-24-2006 Last Update: Never Installs: 4
Template Edits
 
No support by the author.

This is not really a new feature but just surfaces one that was readily available, though in such a way that it was hard to notice.

The feature does two things:
  1. Provides a Refine This Search type feature
  2. Provides a URL to a search that includes all options and can be shared with other users

In the search_results template look for :
Code:
		<a href="search.php?$session[sessionurl]$searchquery"><strong>$vbphrase[search]:</strong></a>
Replace by:
Code:
		<if condition="$displayWords"><!--Edit search Hack--><strong>&nbsp;$vbphrase[search]&nbsp;(<a href="search.php?$session[sessionurl]$searchquery" style="text-decoration: underline;">$vbphrase[edit]</a>):</strong><else /><a href="search.php?$session[sessionurl]$searchquery"><strong>$vbphrase[search]:</strong></a></if>
The link uses tcat css definition and is therefore not underlined and hence does not look like a link, which is one of the reasons why the feature is so hard to find, so i have forced the underline with style="text-decoration: underline;". Alternatively, you will surface lots of links disguised as plain text by editing the tcat css so that tcat links are underlined, which is what i do and recommend.

No new phrases are needed as i am only re-using phrases. And works for all languages.

The conditional is used to avoid the feature being shown on search results that are not quite such things, such as 'New Posts'.

Before and after screen dumps enclosed (keywords look like links in both cases because they are underlined. Not very intuitive really (they are not links), but the fix for this needs editing search.php where the <b> codes reside) :

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-06-2006, 02:56 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the above code can be found in the search_results template
Reply With Quote
  #3  
Old 12-06-2006, 05:57 AM
malmazan malmazan is offline
 
Join Date: Feb 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo View Post
the above code can be found in the search_results template
Indeed, i forgot that very important piece of info. I have edited the initial post. Thanks.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03603 seconds
  • Memory Usage 2,207KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete