PDA

View Full Version : Urgent help needed in vbulletin search function


intensecool
02-27-2011, 04:46 PM
Hey guys,

I am writing out a php code which appears on the search result page, now that code needs the SEARCH QUERY words inside.

Just like i search for : VBULLETIN themes.
Now on the SEARCH RESULTS page, it should pop up words like .

Hey, you just searched for VBULLETIN Themes.


Now, this is what i want.
How do i do this, i need EXACT SAME SEARCH WORDS that this guy searches on board.
For this i need some vbulletin search engine tag like {vb:rawphrase search hash}

I am not able to find what vbulletin calls it..??:confused:
Can anyone tell this..??

Please help me, its really URGENT..??:erm:

Replies awaited.

intensecool
03-01-2011, 06:13 AM
So, no one ..
No one knows this thing..
Not even senior programmers

Lynne
03-01-2011, 04:22 PM
The words show up at the top of the search page already, so I'm not sure what you are asking about.
Search:

Keyword(s): VBULLETIN themes


<p class="description">
{vb:raw criteriaDisplay}
</p>
So, try a search in the files for that variable and you should see what comes up.

intensecool
03-06-2011, 11:39 AM
Nothing,
vbcriteria display pops up this :

Type : Keywords: Posts : keyword_term

I cant extract keyword_term from this.

Lynne
03-06-2011, 04:07 PM
I can't tell what you are talking about from that little information. If you are going to use the variable I posted, you will need to make sure it is available in whatever template you want to use it in. Making it available means making sure the code has already run and the variable is registered for use in the template you plan to use it in .

BeoRski
01-22-2012, 04:30 PM
Hello Lynne, I guess what the thread starter, and me for that matter, is looking for is a way to just get the raw "search keywords". Example is I search for "vBulletin", we need a way to just extract the keyword "vBulletin" instead of "Keyword(s): <b><u>vBulletin</u></b>" which is what the function {vb:raw criteriaDisplay} returns. Any ideas? ^_^