Web Hosting Talk







View Full Version : code question


iowaguy1
02-14-2006, 01:07 AM
Someone told me to find this code in one of my pages:

<td id="navbar_search" class="vbmenu_control"><a href="search.php" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>



but the closest I can find is:


<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>



The only difference I can find between the two is that mine has:


$session[sessionurl_q]

in the "<a href=" link.

What does that do?

PlanetWebHost
02-14-2006, 01:09 AM
it's the same line, the difference is the first one is the generated source as you see it when you 'view source' from your browser,

the 2nd one is the acual PHP source ( which will not be visible from your browser )

iowaguy1
02-14-2006, 01:12 AM
I thought that might be the case but the thing is that the first one was copied from the template editing system for vbulletin. I figured that the templates would show the actual PHP source.

PlanetWebHost
02-14-2006, 01:15 AM
sound like your installing a mod? that mod is probably just for a slightly different version. go ahead and contiune with that mod using that line. and if it wants you to replace that line, just put the $session[sessionurl_q] back in where it goes.

iowaguy1
02-14-2006, 01:19 AM
Actually I'm trying to change the 'destination' that the "Search" link takes you to.