View Full Version : {vb:raw criteriaDisplay} Where is this defined?
TWood
05-19-2011, 12:15 AM
{vb:raw criteriaDisplay}
In a templates search this only shows up where it is called in the template search_resultlist:
<p class="description">
{vb:raw criteriaDisplay}
</p>
It returns a value:
Tag: the search term
Where can I find where this is defined? I want to get rid of the word 'Tag:' so I can use just the search term as a variable for an ad server.
Thanx
Boofo
05-19-2011, 01:53 AM
A quick search of the files turned this up:
forums\vb\search\resultsview.php
TWood
05-19-2011, 03:16 AM
A quick search of the files turned this up:
How did you do that? I searched my local copies of the files using the standard Microsoft search thingy, and it didn't turn up, even though it's there.
Boofo
05-19-2011, 03:54 AM
I used Total Commander's search files feature. It searches inside files and is fairly quick. Best file manager available for Windows. ;)
TWood
05-19-2011, 04:14 AM
Thanks.
I still can't figure out how:
<p>{vb:raw criteriaDisplay}</p>
generates:
<p>Tag: <b><u>my tag search term</u></b></p>
How is the word 'Tag:' being inserted, and where is the inline formatting coming from that adds the underline and bolding?
********EDIT**********
I found this in vb/search/criteria.php at line 1048:
$this->display_strings['tag'] = "$vbphrase[tag]: <b><u>" .
$tag->fetch_field('tagtext') . "$syn_text</u></b>";
and changed it to:
$this->display_strings['tag'] = "" .
$tag->fetch_field('tagtext') . "$syn_text";
That gets rid of the word "Tag:" and also removes the bold and underline. But, is this the right way to do this since I still need the end result - criteriaDisplay - as a variable I can use to build some other functions around? Would it be better to just get either 'tagtext' or '$syn_text' directly, and if so, how?
Thanx
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.