Goal: In vB search results, to include posts that “quotes” the user when that user name is search keyword.
In a post body, it looks like [QUOTE=”username”] and vB seems not searching inside the BB code.
How can I do that?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When vBulletin does a search by username, it ends up doing a database query like this:
Find that query (it’s in search.php) and change it to something like this:
You’ll probably need a bunch of tweaks and testing to get it right, but that should get you closer to a solution.
N.B. Be sure to sanitize the username. Usernames are not safe to insert into SQL directly!