Page 1 of 1

who's online avatars

PostPosted: Fri Nov 30, 2007 11:12 am
Author: xporter
Searched this forum well and have not seen this post yet. Does anyone know how to show the avatars of the users online in the who's online box.

Re: who's online avatars

PostPosted: Sat Dec 01, 2007 2:49 am
Author: found it
Hi

you would like to show all the avatars of all your members who are online at once....?

Re: who's online avatars

PostPosted: Sat Dec 01, 2007 7:48 am
Author: xporter
Yes online users shows everyone on the board in consecutive lines. On each line before username I would like to show his or her avatar. Or even maybe get rid of all the other stuff and just show the avatars with the name underneath kinda like a forum post.

Re: who's online avatars

PostPosted: Sat Dec 01, 2007 8:44 am
Author: CaNNon
I kind of like the idea, but what if like 20 users were on line? it would eat up the whole page. Not to mention throw the all the forums out of wack.

Re: who's online avatars

PostPosted: Sat Dec 01, 2007 10:01 am
Author: found it
Thats what I thought 2... if you had a hundred members online unless you shrunk the avatar image you will have a huge page to load each time...

:mrgreen:

Re: who's online avatars

PostPosted: Sat Dec 01, 2007 1:20 pm
Author: CaNNon
Maybe you could put the avatars trough thumbs? but that would really slow the forum down?

** edit **
Sorry found it same idea i just said it different. <img>

Re: who's online avatars

PostPosted: Sat Dec 01, 2007 2:04 pm
Author: found it
[quote=""CaNNon";p="29631""]Maybe you could put the avatars trough thumbs? but that would really slow the forum down?

** edit **
Sorry found it same idea i just said it different. :mrgreen: <img>

Re: who's online avatars

PostPosted: Sat Dec 01, 2007 10:00 pm
Author: xporter
The link below is for the site where I got the idea. It's not integramod but works generally the same. It is fast and smooth and holds 50 avatars on a page and then adds a second page automatically if needed. Check it out and tell me what you think

Be sure to go to the users online section under the header community.
It is open to guests. By the way I am a UT fan but don't hold that against me.

http://www.longhornnation.com

Thanks

Re: who's online avatars

PostPosted: Sun Dec 02, 2007 8:01 am
Author: CaNNon
Ok, I see looks like they have it on a separate portal page.

Re: who's online avatars

PostPosted: Sun Dec 02, 2007 3:43 pm
Author: Helter
to display avatars on viewonline.php, go to acp/P.C.P./PCP Wizard/Alter Page Display/
in "Select a Page:" choose "phpbb >> Who Is Online"
choose "Select"
choose "Add / Remove Page Fields

Under "Available Fields" choose "user_avatar"
Under "Action" choose "->"
Under "Selected Fields" choose "user_avatar" choose "Move Up" till it is at the top.
Choose "Submit"

on the next page you should see "user_avatar" at the top. In the "Options" section, select "Img"
In the "HTML Style" section, add this
Code: Select all
 <td>%s</td>  

In the "extra" section select "Display Always"
Choose "Submit"


Open your template/viewonline_body.tpl Overwrite it with this

Code: Select all
 <table><tr>     <td>{L_WHO_IS_ONLINE}</td></tr><tr><td><a>{L_INDEX}</a>{NAV_SEPARATOR}{L_WHO_IS_ONLINE}</td></tr></table><table><tr><td>{TOTAL_REGISTERED_USERS_ONLINE}</td></tr><tr><th>{L_AVATAR}</th> <th>{L_USERNAME}</th><th>{L_LAST_UPDATE}</th><th>{L_FORUM_LOCATION}</th><th>{L_CONTACT}</th></tr><BEGIN><tr>     {reg_user_row.PANEL}     <td>{reg_user_row.CONTACT}</td></tr><END><tr><td><img></td></tr><tr><td>{TOTAL_GUEST_USERS_ONLINE}</td></tr><tr><th>{L_USERNAME}</th><th>{L_LAST_UPDATE}</th><th>{L_FORUM_LOCATION}</th><th> </th></tr> <BEGIN><tr>    {guest_user_row.PANEL}   <td> </td></tr><END><tr><td><span>{L_ONLINE_EXPLAIN}</span></td></tr></table><table><tr><td><a>{L_INDEX}</a>{NAV_SEPARATOR}{L_WHO_IS_ONLINE}</td></tr></table>  


Now go to the index of your forum. Scroll down to the "Who Is Online" box and click the "Who Is Online" title.

Re: who's online avatars

PostPosted: Sun Dec 02, 2007 6:12 pm
Author: CaNNon
The info is not showing up for me, but I see it has added the avatar row.
It also showing the row in board navigation > Online users and Who is on line in the portal when you use show all.

Could the show bots online mod I was playing with break the info link?

I did clear the extreme and IM cashe and removed the PcP edits I made for the mouse over I was trying. I replaced the viewonline.php with the backup copy.

Re: who's online avatars

PostPosted: Sun Dec 02, 2007 6:42 pm
Author: Helter
no, i updated it. I forgot a few PCP steps
You need to redo viewtopic_body.tpl also because I forgot to disable html in the post and it omitted a few tags

I posted in red the steps I forgot

Re: who's online avatars

PostPosted: Sun Dec 02, 2007 7:23 pm
Author: CaNNon
The Example user_avatar is showing in pcp now, but still a no go on the site. <img>

Re: who's online avatars

PostPosted: Sun Dec 02, 2007 11:11 pm
Author: Helter
i dont know why. I just added it to this site exactly as the post says and it is working here
http://www.integramod.com/forum/viewonline.php

Re: who's online avatars

PostPosted: Mon Dec 03, 2007 3:50 pm
Author: xporter
Great, worked like a charm. I do like the Idea of a blank page and it shows only the avatars with a name underneath. Maybe Ill work on that later. But for now I'm happy with it.

Thanks again, this program and site is the best.

PostPosted: Fri Feb 08, 2008 4:26 pm
Author: spaniel
The table on the page gets distorted when someone without an avatar logs in:

http://www.integramod.com/forum/viewonline.php

their columns all move to the left.


(anyway, back to reading up on security...) <img>