Quote:
Originally posted by iblis
NTLDR: I used the code from the "welcome panel" to.. but my index.php is not in the /forum directory..
so the avatar image gets broken, pointing to www.domain.com/avatar.php ..
the correct url would be www.domain.com/forum/avatar.php ..
but I cant find the <a> to fix it
|
You need to change the follwoing:
PHP Code:
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/avatars/noavatar.gif';
}
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';
}
Change the paths for guestavatar.gif and noavatar.gif, also change the href's for member.php and register.php (you can use $bburl to point to your forums directory). You also need to change:
PHP Code:
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
To:
PHP Code:
$avatarimage='<a href="$bburl/member.php?s='.$session[sessionhash].'&action=editavatar"><img src="forums-path'.$avatarurl.'" border="0">';
The last change should work but is untested.