Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 11-03-2012, 07:25 PM
dog-tag's Avatar
dog-tag dog-tag is offline
 
Join Date: Jan 2012
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Removing Underscores From Filepaths

I've seen some conflicts with plugins, because images like this -

avatar12356_8.gif

Is there anyway to remove all these under-scores gracefully?
I would love to know why vBulletin decides to insert one of these, maybe I can comment it out.

I'd like to hear your ideas.
Reply With Quote
  #2  
Old 11-03-2012, 10:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have never heard of the underscore causing issues with any modifications. Are you sure it isn't the face that a file is being called instead of the image.php file being called that is causing the issue?
Reply With Quote
Благодарность от:
dog-tag
  #3  
Old 11-04-2012, 07:43 AM
dog-tag's Avatar
dog-tag dog-tag is offline
 
Join Date: Jan 2012
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I have never heard of the underscore causing issues with any modifications. Are you sure it isn't the face that a file is being called instead of the image.php file being called that is causing the issue?
When I moved my avatars etc into the filesystem I seen loads of them now have that filepath.

It currently conflicts with the chiplove thumbnail plugin. That plugin works when the avatars are in the database, but not in the filesystem with underscores.

Also I was having crazy trouble with VB Optimise, and I'm now just trouble shooting.

I was just wondering if it were possible to stop vbulletin creating these underscores?
To me they're unnecessary but maybe to core VB files they're needed.
Reply With Quote
  #4  
Old 11-04-2012, 01:09 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dog-tag View Post
I was just wondering if it were possible to stop vbulletin creating these underscores?
To me they're unnecessary but maybe to core VB files they're needed.
The number after the underscore is the avatar revision number, which I assume is used so that when a user uploads a new custom avatar it will have a unique file name. The only way to remove it would be to find each place in the vb code it's used and take it out (and when I do a search for 'avatarrevision' it's found 45 times, so you probably don't want to go that route).

I think it might be easier to figure out why the mod doesn't work.
Reply With Quote
  #5  
Old 11-04-2012, 09:39 PM
dog-tag's Avatar
dog-tag dog-tag is offline
 
Join Date: Jan 2012
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
The number after the underscore is the avatar revision number, which I assume is used so that when a user uploads a new custom avatar it will have a unique file name. The only way to remove it would be to find each place in the vb code it's used and take it out (and when I do a search for 'avatarrevision' it's found 45 times, so you probably don't want to go that route).

I think it might be easier to figure out why the mod doesn't work.
Ohh OK, yeah your probably right!

I didn't understand how it all worked, but yeah it does make sense now.

After I installed and uninstalled VB optimise, loads of my plugins went crazy, it really messed things up on me (no offence to the creator). That chiplove plugin did work fine before when the avatars were in the database, it might be worth just moving them back.

Thank you for giving me a detailed reply also, its hard to learn these things when people post short blunt answers!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06566 seconds
  • Memory Usage 2,199KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete