vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Custim Avatar filenames not correct in DB (https://vborg.vbsupport.ru/showthread.php?t=306544)

pattycake 01-02-2014 11:25 PM

Custim Avatar filenames not correct in DB
 
If I look in the customavatars table, I see amongst other things, the filename of the custom avatar.

The filename is av-33.gif, and the actual avatar does exist in the ./customavatars folder.

When I look at any post for this person, I see the word's "Jim's Avatar" instead of the avatar.
When I right click the missing avatar, the properties show the name as avatar33_0.gif

Where the heck did that name come from?? It's not in the customavatars table.

kh99 01-03-2014 11:08 AM

If I remember correctly, the filename field is the name of the file that was uploaded. But I think the '0' in avatar33_0.gif is the avatarrevision field from the user table. I hink it's added when you store files in the filesystem so that if, for example, Jim uploads a new avatar with the same name, the avatar revision will be increased so that the new file has a different name and people's browsers will load the new image instead of continuing to see a cached image.

But I don't know why you're not seeing Jim's avatar. There should be a file with that name (with the _0) in the customavatars folder.


All times are GMT. The time now is 05:51 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.02151 seconds
  • Memory Usage 1,702KB
  • 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
  • (2)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