vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Show an Avatar on Who's Online Above the Username (https://vborg.vbsupport.ru/showthread.php?t=94671)

amykhar 08-19-2005 10:00 PM

Show an Avatar on Who's Online Above the Username
 
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.

.Tim 08-20-2005 07:14 PM

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

Quote:

Originally Posted by ajpritch
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:
Code:

<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 :)

[high]* The Chief clicks install[/high]

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

Quote:

Originally Posted by RasMasta
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

Quote:

Originally Posted by shadowdancer36
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

Quote:

Originally Posted by Tralala
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

Quote:

Originally Posted by Wordplay
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


All times are GMT. The time now is 04:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02286 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete