I'm wondering if anyone can advise on this?
VBulletin has special PHP variables that you can use in notices, such as {userid} and {username}, which will generate an output specific to the user.
I would like to use these variables in a search string (I know this works in notices) but, obviously, it doesn't work in these dropdowns because the search string is in javascript and won't be parsed (see example code below).
Is it somehow possible to get the special variable parsed server-side, then handed over to the javascript?
I've seen people talk about it, but nobody's provided a solution.
Thanks,
tambo
PHP Code:
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Menu test</a>
<ul class="popupbody popuphover">
<li><a href="http://www.example.com/search.php?do=process&query={username}">Test Search</a></li>
</ul>
</li>