vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   dl php session variable in the path to album thumbnails (https://vborg.vbsupport.ru/showthread.php?t=282841)

Chris8 05-13-2012 01:44 AM

dl php session variable in the path to album thumbnails
 
What is it and what for?
Ok. it is something with dateline to do as I see in in the function file: dl=$pictureinfo[thumbnail_dateline] but what is the purpose of it in the case of album picture thumbnails?
Can I remove it?
The problem is that it seems that the session variable appended to the end of image file path make them not displaying in some browsers. But I'm confused about the function of it. I wouldn't like to remove it not knowing the purpose of it first. What is this needed for?
Thanks in advance for any ideas.

kh99 05-13-2012 02:06 AM

I believe the purpose is to provide a part of the url that will change when the image is updated. That way browsers can cache the image but still know when to reload it. Normally a browser will cache an image but send a request to check if the file has changed or not, but since those thumbnails are saved in the database it would be a lot of work to run a php script just to check the date when it last changed. That would kind of defeat the purpose.

So I guess the short answer is that you probably shouldn't remove it.

Chris8 05-13-2012 02:20 AM

That makes sense. Thank you Kevin. I guess I will try to remove it then only for those certain browsers by wrapping it in browsers conditionals or I will just leave it.

Edit: LOL I've just realized it was my fault, because my custom script is serving images and not vbulletin directly, and I forgot that it already is using other variables so the & instead of second ? is needed. Arghhhh.... I need sleep.


All times are GMT. The time now is 06:07 AM.

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.00995 seconds
  • Memory Usage 1,715KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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