1
kerrysl
Avatar woes.
  • 2004/10/22 6:06

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


I am wondering if anyone can help. I have XOOPS 2.0.7.3 with WfSections and the X-PHPBBM loaded. 99% of everything is working but I have an issue with Avatars.

They don't work on the Message Forum. The avatars work within XOOPS for user listings, who's online, top posters, and site info. They also work within WF-Section articles. However they don't in the message board.

I figure that the relevant file is /modules/pbboard/viewtopic.php and I have found the lines in question that deal with avatars. I am initally playing with avatars that have been uploaded. The image file is in xoops/uploads directory.

No matter what I do in viewtopic.php it does not change the image url within the post, which seems to be set in stone somewhere to be the script path of the forum (eg. domain name.com/modules/pbboard/). Even changes to the ALT tag don't seem to change anything.

Here is the code in question;
$poster_avatar '';

    if ( 
$postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )
    {
        switch( 
$postrow[$i]['user_avatar_type'] )
        {
            case 
USER_AVATAR_UPLOAD:
                
$poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '$board_config['avatar_path'] . '/' $postrow[$i]['user_avatar'] . '" alt="testing" border="0" />' '';            
                break;
            case 
USER_AVATAR_REMOTE:
                
$poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '$postrow[$i]['user_avatar'] . '" alt="" border="0" />' '';
                break;
            case 
USER_AVATAR_GALLERY:
                
$poster_avatar = ( $board_config['allow_avatar_local'] ) ? '$board_config['avatar_gallery_path'] . '/' $postrow[$i]['user_avatar'] . '" alt="" border="0" />' '';
                break;
        }
    }


It is the first CASE that I am playing with. Does anyone have any ideas where this data could be being held. I know people must have avatars working with the PHPBB2 module, but the question is how?

2
kerrysl
Re: Avatar woes.
  • 2004/10/22 6:43

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


Don't worry, this seems to be rectified. It was for some reason using the remote avatar code. I re-uploaded the avatar and now all works.

I think maybe that it does not like you amending the avatar storage directory after the avatars are uploaded. Now that the module's avatar setting points to the xoops/uploads directory, any avatar uploads are now working site wide.

I have tested from both the Forum admin panel user update and the XOOPS user account update and both seem to function properly. One difference is the file name.

XPHBBM - only sequentially increments the filename so you get 2.jpg.
XOOPS - encodes the filename so you get ACDD23442342ADB.jpg. ( I presume that XOOPS does this to minimise/eliminate duplicated filenames.

Login

Who's Online

207 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits