Kars10
23rd July 2003, 08:44 PM
Hello Guys!
Anybody got this working? I need the Avatar of the User on Forumhome (like the old Welcomepanel-Avatar for vB2)...
Thanks in advance
Kars :)
Daniel P
23rd July 2003, 09:09 PM
We haven't done this yet. I will give it a go and see.
Floris
23rd July 2003, 09:43 PM
As long as index.php doesn't include the query to pull the images, like done in showthread, I don't think you can do this with a template mod. I think the id for the avatar is available already, but the image pulling hasn't been realized for forumhome. I didn't look into it yet.
Squawell
24th July 2003, 01:25 AM
i know someone did that in vbulletintemplates.com..i tested..it works~
maybe u can take a look~~
Kars10
31st July 2003, 08:58 AM
Thanks Squawell.
I use the code from the welcomepanel released there. :)
Kars
Floris
31st August 2003, 04:17 AM
Could someone link me up, so I can have a looksy ? :D
Preech
7th October 2003, 06:50 AM
I didn't use the link from vbulletintemplates.
I used the old code from the welcome panel. Worked.
I believe I put it in the phpinclude, or headerinclude, than called for it.
Had to dig through the postbit template to find the right code.
SilverDennis
7th October 2003, 10:19 AM
Floris, i looked for you:
and i think the mean:
http://www.vbulletintemplates.com/mods/showthread.php?t=3997&highlight=avatar
or
http://www.vbulletintemplates.com/mods/showthread.php?t=4066&highlight=avatar
_C4
7th October 2003, 02:47 PM
^^^^^^^^^^^^^^^^^^^^^^^
Thats it, If you wanna see it, go to www.xblgamers.com/forums , Working great :)
SilverDennis
8th October 2003, 08:49 AM
Lookt good _C4 :)
trafix
9th October 2003, 06:03 AM
umm, all you need to do is
Find in root/index.php
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('FORUMHOME') . '");');
before it add
//get avatar
if ($bbuserinfo[avatarid] != 0)
{
// using a predefined avatar
$avatar = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "avatar WHERE avatarid = $seller[avatarid]");
$avatarid = $avatar['avatarid'];
$currentavatar="<img src=\"$avatar[avatarpath]\" alt=\"$avatar[title]\" border=\"0\">";
$bbavatar = $avatar;
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $DB_site->query_first("SELECT dateline FROM " . TABLE_PREFIX . "customavatar WHERE userid=$seller[userid]"))
{
// using a custom avatar
if ($vboptions['usefileavatar'])
{
$seller['avatarurl'] = "$vboptions[avatarurl]/avatar$seller[userid]_$seller[avatarrevision].gif";
}
else
{
$seller['avatarurl'] = "image.php?u=$seller[userid]&dateline=$avatar[dateline]";
}
$currentavatar="<img src=\"$seller[avatarurl]\" border=\"0\" >";
}
else
{
// no avatar specified
$currentavatar="";
}
}
and then put the following in the template:
$currentavatar
DONE! :)
NexVision
5th February 2004, 10:05 PM
sorry i know this is old but in vb3 beta 7 i dont know where in the template to add $currentavatar