baptizer
08-11-2004, 09:11 AM
Hello All!
Hope the thread title makes sense, but if not, Ill describe things a bit more clearer. What I want to do is instead of the avatar being displayed in the news threads on the vbadvanced homepage, I would like the profile image to be displayed instead. Why? Well, I have a certain set of users who are news contributors and I want to give them specific news avatars that are different than their normal avatars. I figured this would be the easiest way!
EDIT: Just to get the ball rolling on this a bit, I figured I would post what I 'think' needs to be done. I believe I need to edit the adv_index.php file. I think the following section needs changed to point to the profile image instead of the avatar image:
if ($vboptions['usefileavatar'])
{
$newsavatarurl = "$vboptions[bburl]/$vboptions[avatarurl]/avatar$news[postuserid]_$news[avatarrevision].gif";
}
else
{
$newsavatarurl = "$vboptions[bburl]/image.php?$session[sessionurl]u=$news[userid]&dateline=$news[avatardateline]";
any ideas how to change this to display the profile image?
Hope the thread title makes sense, but if not, Ill describe things a bit more clearer. What I want to do is instead of the avatar being displayed in the news threads on the vbadvanced homepage, I would like the profile image to be displayed instead. Why? Well, I have a certain set of users who are news contributors and I want to give them specific news avatars that are different than their normal avatars. I figured this would be the easiest way!
EDIT: Just to get the ball rolling on this a bit, I figured I would post what I 'think' needs to be done. I believe I need to edit the adv_index.php file. I think the following section needs changed to point to the profile image instead of the avatar image:
if ($vboptions['usefileavatar'])
{
$newsavatarurl = "$vboptions[bburl]/$vboptions[avatarurl]/avatar$news[postuserid]_$news[avatarrevision].gif";
}
else
{
$newsavatarurl = "$vboptions[bburl]/image.php?$session[sessionurl]u=$news[userid]&dateline=$news[avatardateline]";
any ideas how to change this to display the profile image?