For some reviewers their IPB2 avatar is shown for others it is not.
For example I checked the location of several that show and they are board local (that is the avatar was uploaded to the forums). Yet my avatar (which is also board local) does not show.
I'll check my install. I'm running IB2 as well and avatars work here.. but I'ma bout to update to the 3.1 codeset. I'll compare my working version to the new code and see what's up.
Well this is probably the problem.. there's a typo in the file IB2.php (found in reviewpost/forums):
I did submit this code (or one similar to it) to OmegaTron so the typo could well be my fault.
What's your board URL? It's easier to make sense of bugs if the guys here can see the actual HTML output.
That would be the correct answer as its a typo exactly as stated by Arnie.
Well, that fixed the remote avatars but some of the local ones still don't work. If I look at the HTML output the avatars that don't work look like:
That is how it (upload:av-2.jpg) is stored in the memebers_extra table of the database. My guess is that is left over from earlier upgrades of IPB. But it still works on the forums.
That's odd, in my IPB table (running 2.0.4, the current codeset), the data stored in avatar_location is all in the format av-[id].gif/jpg for uploaded images.
Are you sure you're running an unhacked version of IPB2?
In reviewpost/forums/ib2.php, try this change:
The addition is "if ($avatar_type=="upload" ) $avatar_location = str_replace ( "upload:", "", $avatar_location);" as a first statement.
Thanks that worked.
Looking online it seems that the "upload:" tag for aavatar upload in the database dates back to IPB2 2.0PF3 pre-release, as here's some code from IPB products:
OmegaTron: I'd suggest that the one line fix is added to the next release for compatibility ;)
Ah gotta love Invisionboard sounds like someone needs to tell then to clean up there mess after playing with beta code
No biggy I can add that
|All times are GMT -5. The time now is 01:26 PM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0