GuruXL
10-20-2002, 10:00 PM
Please note I will NOT provide support for this hack as it is not mine, I am posting it because I made a request for it and I thought it would be nice to be available for those who wanted to use it. I made one small modification to it but other than that its Copyright 2002 to Neo.
FIND In admin/functions.php
if ($post[avatarid]!=0) {
$avatarurl=$post[avatarpath];
} else {
if ($post[hascustomavatar] and $avatarenabled) {
$avatarurl="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]";
} else {
$avatarurl="";
}
}
if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
$post[avatar]="";
} else {
eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
}
AND REPLACE WITH
if ($post[avatarid]!=0) {
$avatarurl=$post[avatarpath];
} else {
if ($post[hascustomavatar] and $avatarenabled) {
$avatarurl="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]";
} else {
$avatarurl="http://www.domain.com/forum/images/avatars/default.gif";
}
}
if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
$post[avatar]="http://www.domain.com/forum/images/avatars/default.gif";
} else {
eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
}
Now you will see that part that I edited. The blank $avatarurl.
Now you can change the path within the one that contains $avatarurl="http://www.domain.com/forum/images/avatars/default.gif"; to any path you want. Just dont touch the other two with parses the avatars on the site.
Thanks again Neo and also hellsatan for his nice input!
FIND In admin/functions.php
if ($post[avatarid]!=0) {
$avatarurl=$post[avatarpath];
} else {
if ($post[hascustomavatar] and $avatarenabled) {
$avatarurl="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]";
} else {
$avatarurl="";
}
}
if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
$post[avatar]="";
} else {
eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
}
AND REPLACE WITH
if ($post[avatarid]!=0) {
$avatarurl=$post[avatarpath];
} else {
if ($post[hascustomavatar] and $avatarenabled) {
$avatarurl="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]";
} else {
$avatarurl="http://www.domain.com/forum/images/avatars/default.gif";
}
}
if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
$post[avatar]="http://www.domain.com/forum/images/avatars/default.gif";
} else {
eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
}
Now you will see that part that I edited. The blank $avatarurl.
Now you can change the path within the one that contains $avatarurl="http://www.domain.com/forum/images/avatars/default.gif"; to any path you want. Just dont touch the other two with parses the avatars on the site.
Thanks again Neo and also hellsatan for his nice input!