PDA

View Full Version : How do I display profile picture/avatar instead of normal avatar for news?


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?

majorj0nny1
05-23-2005, 05:13 AM
I too want something 'similar' to this ... for me Id like to change the welcome block from displaying the users avatar - to displaying the users profile pic instead? this is because I have avatars disabled on my forums so everyone gets the noavatar icon - even though they still have a profile pic ?

Our Sponsors
 

majorj0nny1
05-24-2005, 02:16 PM
oh well perhaps this cant be done ? or no one knows ?

:confused:

DarkDD
06-08-2005, 11:17 PM
I need something like this myself but i want to use the Article Display Image from Geeks Articles to use with the lovely portal...so did anyone figure this out or atleast something similair?