View Full Version : Show an Avatar on Who's Online Above the Username
amykhar
08-19-2005, 10:00 PM
This one is a quickie PLUGIN that I threw together. Hope you like it.
Update - I changed the template to show the avatar over the username instead of replacing the username.
Boofo
08-20-2005, 03:37 AM
I think it's great but I would still have the username there, too, for those that don't associate the avatar with a username. ;)
amykhar
08-20-2005, 03:56 AM
Just slap it under the avatar picture in the template. That's what I ended up doing for the same reason :D
Barakat
08-20-2005, 08:34 AM
great from a great Coder ........ Installed
Wordplay
08-20-2005, 08:35 AM
thank you dear i requested this hack, i appriciate you doing it for me.
Talisman
08-20-2005, 05:28 PM
The added username is a good improvement. Some people like to change their avatars alot.
Nice hack.
I was going to start working on something like this for my board, thanks for saving me some time! :D
Wordplay
08-21-2005, 11:30 AM
could you please help me out amykhar? i also installed your column on the right side of the forum plugin.
now i want to show a quick who's online table in there that shows only the avatars, and next to it their username, or maybe even just a link to where they currently are. could you show me how do do that?
Adrian Schneider
08-21-2005, 06:20 PM
Cool Idea Amy, I may use this.
ajpritch
09-16-2005, 08:04 PM
How would I add the usernames back along with the avatars?
amykhar
09-17-2005, 11:30 AM
Instead of doing a replace in the template, you would paste the code above.
ajpritch
09-17-2005, 05:01 PM
I get this error when I post right above it
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in \includes\adminfunctions_template.php(3519) : eval()'d code on line 11
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Roxie
09-17-2005, 08:36 PM
I get this error when I post right above it
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in \includes\adminfunctions_template.php(3519) : eval()'d code on line 11
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I also get this error.
amykhar
09-18-2005, 03:08 PM
use this replace block instead:
<if condition="$show[loggedinuser]">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]" target="_blank">
<if condition="$userinfo[avatarurl]">
<a href="member.php?u=$userinfo[userid]"><img src="$userinfo[avatarurl]" border="0" alt="$userinfo[username]" height="60" width="60"/><br /><strong>$userinfo[musername]</strong>
<else />
$userinfo[musername]$userinfo[hidden]<if condition="$show[buddy]">+</if></a>
</if>
ajpritch
09-19-2005, 03:53 AM
Works great. Thanks
secret1980
10-10-2005, 06:44 AM
looks great :) but will create load on the server :(
Extreme John
10-25-2005, 05:14 AM
Nice easy hack and I love it, your awesome!
nicedreams
01-26-2006, 09:30 PM
This is cool. What about having an option to display the profile pic instead of an avatar?
Jim
AshokForums.com
01-26-2006, 09:38 PM
What if 2 or more users have the same avatar ???
amykhar
01-26-2006, 10:53 PM
If you've put the name under it, that won't be a problem.
PennylessZ28
01-27-2006, 05:36 PM
I'd kiss you, I've been trying to figure this one out myself Amy!!!
GamerJunk.net
02-01-2006, 04:41 AM
Does it resize the avatars? This could get kinda messy
The Chief
02-01-2006, 02:08 PM
works great, installed :)
* The Chief clicks install
shadowdancer36
02-01-2006, 04:32 PM
Do someone mind tweaking this so that i shows the last person who signed on in a block for VBad? Something that would show the person's avatar and their name under it. Then another link under that which would point to all those online at that moment.
shadowdancer36
02-01-2006, 04:33 PM
Does it resize the avatars? This could get kinda messy
U can set what size limit u want avatars to be in admincp
amykhar
02-01-2006, 05:09 PM
Do someone mind tweaking this so that i shows the last person who signed on in a block for VBad? Something that would show the person's avatar and their name under it. Then another link under that which would point to all those online at that moment.
That's not tweaking this mod. That's writing a completely different mod.
skorzguy
02-01-2006, 05:55 PM
I tried this and it doesn't show. What could I be doing wrong? I like the concept of the avatars.
I uploaded the plugin and added the code but I don't see any results. Do the avatars show up on the forum home page near the bottom of the page?
I am using 3.5.2, could this be the problem
PennylessZ28
02-02-2006, 04:16 AM
amy would there be a way to display the avatars say 4 colums a row?
Gripemaster
02-02-2006, 02:57 PM
Very nice addition thank you! *Clicks Install*
S@NL - BlackBik
02-02-2006, 03:23 PM
Nice :)
amykhar
02-03-2006, 11:55 AM
I changed the template directions to put the avatar over the username instead of replacing the username.
PennylessZ28
02-03-2006, 02:16 PM
Nice update, but that was the first thing I did. Amy, any thoughts about 5 colums of users?
amykhar
02-03-2006, 02:19 PM
It's not something I'm going to tackle because I don't need it. Sorry.
S@NL - BlackBik
02-03-2006, 09:34 PM
And you're right....
The thing about those hacks is that I never know how to begin.
So if a coder lik Amykhar posts a hack, I'm normaly able to costumize it to my needs. At least I try to. Cause everybody just wants it a little bit different. A hacker can never make something to everybody's liking. But they always did the difficult job of figuring out where to put something.
And that is why I love this forum so much :)
PennylessZ28
02-03-2006, 09:44 PM
After looking at the php files and it would be a seprate process from this hack.
Tralala
03-01-2006, 02:52 AM
This is working great for me! Thanks amykhar!
I notice though, that users without an avatar show up as a "broken image" icon.
Anyway to make them appear as blank space, or a generic "no avatar" GIF or something? Cuz currently it looks ugly (or worse... broken.)
yinyang
03-01-2006, 11:55 PM
is there anyone to do this in the forum home page's What's Going On? Instead of showing who's online via username, it'd show the avatar. Is this possible?
Tralala
03-11-2006, 12:16 PM
This is working great for me! Thanks amykhar!
I notice though, that users without an avatar show up as a "broken image" icon.
Anyway to make them appear as blank space, or a generic "no avatar" GIF or something? Cuz currently it looks ugly (or worse... broken.)
I resolved this, by the way, by uploading a suitable "no avatar" image to my style's images/misc folder, called "noavatar.gif"
Wordplay
06-27-2006, 08:39 PM
is there anyway of showing this directly on the forumhome's who's online part? i'm actually trying to display it in a module on vbadvanced, but haven't been able too nor do i know anybody working on it.
Tralala
06-28-2006, 02:54 AM
is there anyway of showing this directly on the forumhome's who's online part? i'm actually trying to display it in a module on vbadvanced, but haven't been able too nor do i know anybody working on it.
Do you mean something like this?
https://vborg.vbsupport.ru/showthread.php?t=110058
Wordplay
06-29-2006, 06:09 AM
HELL YEAH!
well sort of, guess that'll do!
Chicago_VLNU_4s
08-06-2006, 12:06 AM
would have been better if you explained it to where a new user like myself could understand, more instructions next time
The Chief
11-02-2006, 03:02 PM
Does this work with 3.6?
amykhar
11-03-2006, 12:22 AM
Probably. I haven't tried it. Give it a shot and let us know. ;)
The Chief
11-03-2006, 04:16 PM
Probably. I haven't tried it. Give it a shot and let us know. ;)
Will do :)
bada_bing
11-06-2006, 01:19 AM
IS there a way to have it display the members profile pic instead of the avatar and if no profile pic is set then it will display a default pic?
wideopen
11-14-2006, 07:52 PM
Nice Amy..Thanks
TheBlackPoet
11-18-2006, 08:13 PM
i just installed it.. and i love it .. i love the control of the sizing and the username or not... i originally opted not to use it but talisman made a good point... so... thanks...
Kosmic1
11-19-2009, 10:57 AM
Very nice mod!!
Installed. Thanks :)
Kaasie
03-03-2010, 05:11 PM
thanks works on 3.7 too
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.