vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What is the difference between these ?? (https://vborg.vbsupport.ru/showthread.php?t=178418)

veenuisthebest 05-07-2008 11:02 AM

What is the difference between these ??
 
In my vB templates, at many places I find linking of files in three different ways !!

please tell me the difference among these..

Code:

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 [DATE]1210163015[/DATE] at [TIME]1210163015[/TIME] ---------------

this is the output in the order what I see in Firefox

Code:

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 [DATE]1210163062[/DATE] at [TIME]1210163062[/TIME] ---------------

and this is what I see in IE

Code:

1. <a href="file.php">file</a>

2. <a href="file.php ?s =d919808b3020e93900f5bef63dbe3d05">file</a>

3. <a href="file.php ?s =d919808b3020e93900f5bef63dbe3d05&amp;">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

Quote:

Originally Posted by veenuisthebest (Post 1511544)
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].

Quote:

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


All times are GMT. The time now is 01:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01138 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete