1
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?