Log in

View Full Version : Removing Underscores From Filepaths


dog-tag
11-03-2012, 07:25 PM
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.

Lynne
11-03-2012, 10:15 PM
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?

dog-tag
11-04-2012, 07:43 AM
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.

kh99
11-04-2012, 01:09 PM
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.

dog-tag
11-04-2012, 09:39 PM
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!