PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 3.6x (http://www.photopost.com/forum/bugs-vbulletin-3-6x/)
-   -   Problem with custom Avatars under 3.8... kind of fix (http://www.photopost.com/forum/bugs-vbulletin-3-6x/138970-problem-custom-avatars-under-3-8-kind-fix.html)

Luciano January 17th, 2009 02:37 PM

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 :eek:
  • 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

Chuck S January 17th, 2009 06:19 PM

I will do further testing and see what I come up with.

KenDude January 28th, 2009 12:38 AM

Chuck any word on the testing on this?


All times are GMT -5. The time now is 08:52 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