View Single Post
Old January 17th, 2009, 02:37 PM   #1 (permalink)
Luciano
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Problem with custom Avatars under 3.8... kind of fix

Ok.. I seem to have a problem for avatars in posts after upgrading to vb 3.8..
I only use custom avatars..
and they dont seem to display in image replies.. (but they do in forum and profile etc...)

I didnt check if normal avatars were working..

so i thought it was time to fix that..
but then.. i ran into several problems.. because: the avatar stuff as it is, is messed up...
  • guests cant see avatars
  • non admin users that are not allowed to use a standard avatar, cant see avatars from other users... (very strange)
  • checks if user has an avatar in database.. not file avatar.. (NOT ISNULL(customavatar.filedata) AS hascustom !!!!)
So i decided to fix it.. the way I wanted it..
which is: all users can see avatars as long as the poster is allowed to use an avatar! AND vbulletin options allows avatars.

so here is the fix:
open showimage.php
find:
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
Check the line: $dummyavatar = true;
if a user has no avatar.. this gives him a dummy avatar..
to disable this.. change this line to: $dummyavatar = false;
for vbulletin versions under 3.7 you must set to false, unless you copy a dummy avatar to forum/images/misc/unknown.gif !!! (this image is present in versions above 3.7).


then further on find:
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
Hope this helps someone! It now works for me.. All users can see avatars.. and there is a dummy avatar if user has none..

Luc

Last edited by Luciano; January 18th, 2009 at 01:17 AM. Reason: spelling typo in description...
Luciano is offline   Reply With Quote