View Full Version : Avatar in UserCP
assassingod
03-21-2003, 10:00 PM
Avatar in User CP
Author: assassingod
Description: This will show you avatar in your User CP.
The avatar is also a link to the 'Edit Avatar' page
Screenshots:
https://vborg.vbsupport.ru/attachment.php?s=&postid=371199
Download:
https://vborg.vbsupport.ru/attachment.php?s=&postid=371198
Tested on vB version:
2.2.9 https://vborg.vbsupport.ru/
2.3.0 https://vborg.vbsupport.ru/
If you use this hack please click the INSTALL (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=50619) button - thank you!
assassingod
03-22-2003, 07:38 AM
ScreenShot:
PSI|Dr-X
03-22-2003, 08:25 AM
Nice but not much use .. :)
assassingod
03-22-2003, 08:29 AM
Oh, forgot to mention that the avatar is a link to the edit avatar page:)
Chris Gwynne
03-22-2003, 08:42 AM
This could be done, template style....
assassingod
03-22-2003, 09:33 AM
Yeah, but if you want the code to appear in every-page then its best to do it by hacking
X-Fan
03-22-2003, 11:02 AM
Just a quick fix for the template mod to ensure individual forums' colors show up:
<br>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="{ tablebordercolor}" width="100%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr id="cat">
<td bgcolor="{ categorybackcolor}" nowrap><normalfont color="{ categoryfontcolor}"><b>Avatar</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{ firstaltcolor}"><smallfont>$avatar</smallfont></td>
</tr></table></td></tr></table>
Just remove the spaces after each instance of "{
assassingod
03-22-2003, 11:22 AM
Thanks X-Fan. I forgot about the replacement :rolleyes:
X-Fan
03-22-2003, 11:51 AM
No prob :)
Neat hack, thanks!
LOD-squa
03-22-2003, 03:57 PM
I did a similar hack, just I didn't include the link or the table. Nice though ;)
Craigr
03-22-2003, 06:09 PM
Installed it on my forum thanks. :D
Thanks again,
Craig
joeboo
03-22-2003, 06:16 PM
Today at 05:57 PM gohanssj2 said this in Post #10 (https://vborg.vbsupport.ru/showthread.php?postid=371398#post371398)
I did a similar hack, just I didn't include the link or the table. Nice though ;)
Yeah, with my help ;)
LOD-squa
03-22-2003, 06:18 PM
yup jawa man ^^;
assassingod
03-22-2003, 07:00 PM
Thanks all for the feedback:D
This has been tested on 2.2.9 & 2.3.0 so I doubt any problems should occur
I'll use it. Thanks. One thing though, you forgot the "{" in
<normalfont color=" categoryfontcolor}"><b>Avatar</b></normalfont>
You should add that in the install file. :) Otherwise looks good. I added it above the buddy list though.
assassingod
03-22-2003, 07:05 PM
So I have, thanks 006.
That has been fixed and the file has been updated!
This is a nice userCP enhancement, I wish default vB had a better main userCP page actually, you should release all your addons for userCP like you did with templates for userCP ;).
Lethal
03-28-2003, 07:08 PM
I had to put:
{
$avatarurl=getavatarurl($bbuserinfo[userid]);
$avatar='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0"></a>';
}
in member.php for this to work.
I am running 2.3.0
assassingod
03-28-2003, 07:22 PM
N9ne ; Yeah, might release them all;)
Lethal ; Are you having trouble with the hack. Because I dont know what you mean :confused:
monstergamer
03-29-2003, 04:16 AM
works great in 2.3
great hack :)
assassingod
03-29-2003, 08:58 AM
Thank you for the feedback:D
Mathiau
04-03-2003, 04:45 AM
tryihng this baby out! nice to see your avatr and not have to click a few inks :)
assassingod
04-03-2003, 05:39 AM
Thank you! Don't forget to click the install button;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.