PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost Bug Reports (http://www.photopost.com/forum/reviewpost-bug-reports/)
-   -   IPB2 avatars(FIXED) (http://www.photopost.com/forum/reviewpost-bug-reports/115544-ipb2-avatars-fixed.html)

ljcook September 3rd, 2005 10:36 PM

IPB2 avatars(FIXED)
 
Strange occurrence...
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.

Any ideas?

Arnie September 4th, 2005 06:03 AM

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.

Arnie September 4th, 2005 06:06 AM

Well this is probably the problem.. there's a typo in the file IB2.php (found in reviewpost/forums):

Code:

Content visible to verified customers only.
The line "elseif ( $av_type=="url" )" should be "elseif ( $avatar_type=="url" )".

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.

Chuck S September 4th, 2005 06:39 AM

That would be the correct answer as its a typo exactly as stated by Arnie.

ljcook September 4th, 2005 09:42 AM

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:
Code:

Content visible to verified customers only.
Note the "/upload:" instead of a just a "/" after uploads.

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.

Arnie September 4th, 2005 09:59 AM

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:

Code:

Content visible to verified customers only.
(lines 228-236 ish)

The addition is "if ($avatar_type=="upload" ) $avatar_location = str_replace ( "upload:", "", $avatar_location);" as a first statement.

ljcook September 4th, 2005 10:06 AM

Thanks that worked.
Quote:

Are you sure you're running an unhacked version of IPB2?
My IPB is a legal (paid for) copy since IPB 1.0. I have certainly made many mods - none of which have anything to do with the avatars or the member_extra table.

Arnie September 4th, 2005 10:08 AM

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:

Code:

Content visible to verified customers only.
It seems that uploads could be tagged like that depending on when your install dates from, and what upgrades you've done from that.

OmegaTron: I'd suggest that the one line fix is added to the next release for compatibility ;)

ljcook September 4th, 2005 10:12 AM

Thanks again!

Chuck S September 4th, 2005 10:16 AM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97