Back to vBulletin 3.6 Template Modifications

Refine this search and pasteable search URL pseudo-features
Mod Version: 1.00, by malmazan

This modification is in the archives.
vB Version: 3.6.3 Rating: (0 vote - 0 average) Installs: 4
Released: 26 Nov 2006 Last Update: Never Downloads: 1
Not Supported Template Edits  

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) :

Download

No files for download.

Screenshots

Click image for larger version
Name:	feature_in_disguise.gif
Views:	74
Size:	2.9 KB
ID:	56587   Click image for larger version
Name:	feature_surfaced.gif
Views:	82
Size:	3.1 KB
ID:	56588  


vblts.ru supports vBulletin®, 2022-2024