View Full Version : What is the difference between these ??
veenuisthebest
05-07-2008, 11:02 AM
In my vB templates, at many places I find linking of files in three different ways !!
please tell me the difference among these..
1. <a href="file.php">$vbphrase[file]</a>
2. <a href="file.php$session[sessionurl_q]">$vbphrase[file]</a>
3. <a href="file.php?$session[sessionurl]">$vbphrase[file]</a>
thanks :)
GameWizard
05-07-2008, 11:11 AM
<a href="http://www.vbulletin.com/forum/showthread.php?t=146620" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=146620</a>
Opserty
05-07-2008, 11:12 AM
Or just stick them in a template and look at the HTML source of the output ;)
veenuisthebest
05-07-2008, 11:14 AM
fine.. thanks !!
--------------- Added 1210163015 at 1210163015 ---------------
this is the output in the order what I see in Firefox
1. <a href="file.php">file</a>
2. <a href="file.php">file</a>
3. <a href="file.php?">file</a>
how do they actually differ then ??
--------------- Added 1210163062 at 1210163062 ---------------
and this is what I see in IE
1. <a href="file.php">file</a>
2. <a href="file.php ?s =d919808b3020e93900f5bef63dbe3d05">file</a>
3. <a href="file.php ?s =d919808b3020e93900f5bef63dbe3d05&">file</a>
Marco van Herwaarden
05-07-2008, 11:35 AM
$session[sessionurl_q] and $session[sessionurl] will only have a value of the browser doesn't accept cookies.
veenuisthebest
05-07-2008, 11:42 AM
thanks for your reply sir.. but i want to know when to link files with $session[sessionurl_q] and $session[sessionurl] and how do they differ from simply linking file like <a href="file.php">file</a>
in other words.. is there a certain condition to use $session[sessionurl_q] OR $session[sessionurl].
GameWizard
05-07-2008, 11:45 AM
thanks for your reply sir.. but i want to know when to link files with $session[sessionurl_q] and $session[sessionurl] and how do they differ from simply linking file like <a href="file.php">file</a>
in other words.. is there a certain condition to use $session[sessionurl_q] OR $session[sessionurl].
Right, so links that don't have any additional actions (ie. do=something) should now use scriptname.php$session[sessionurl_q] instead of scriptname.php?$session[sessionurl], correct? http://www.vbulletin.com/forum/showthread.php?t=146620
If you exclude this code altogether, what will happen is that if someone does not use cookies, when they click the file.php link they will need to re-login.
veenuisthebest
05-07-2008, 11:53 AM
okkkkk.... perfect !!
i got it, thank you
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.