inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Feb 22, 2013 11:58:22 GMT -8
Hi
We only have 10 members on our proboards... never more. Because of this I don't really need 'total thread/posts/member' counts However, I don't want to just remove it since I do want a list of who is online... that's it. Is this easy to set-up? All I'm looking for is the title 'users online' and then the list of users... the link to who was online today is handy. I also thought, since I only have 10 members, it could show their avatars instead of their names, since we all easily recognise each other by our avatars. Again, not sure if this is easy to do.
If someone could at least point me in the right direction where to begin. I'm not that experienced with html etc, but I have played around with it a lot... I just always make a copy of what I'm changing before doing it.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Feb 22, 2013 23:10:09 GMT -8
For both of these you want to be in the Home Template.
First, find the following;
{if $[show_stats]} <div class="container stats"> <div class="title-bar"><h2>Forum Information & Statistics</h2></div> <div class="content"> <table> <tbody> <tr> <td> <table>
Remove everything from the <tr> there to the </tr> about 36 lines below. That will remove the entire row from the Info Centre.
For adding the avatars, find this for me;
{foreach $[online_user]} $[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma] {/foreach}
Replace it with the following; {foreach $[online_user]} <a href="$[online_user.href]" target="_parent">$[online_user.avatar_medium]</a> {/foreach}
I haven't tested it, but it should work. The avatar_medium can be replaced with avatar_small if they're a little big. =]
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Feb 23, 2013 4:49:14 GMT -8
thanks. Cant believe I got such a great response so quick. Ive replaced as you said, and then adjusted further, once I could see what was what.
This only seems to change it on the home page. Can it be set for all category/forum/thread pages? thanks again.
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Feb 23, 2013 14:46:58 GMT -8
i found in the board template the same stats & info section, so i simply copy/pasted the same version id set up from the home template. However, it doesnt list any users online (i should appear online & do on the home page. here is what i pasted onto the board template... {if $[show_stats]} <div class="container stats"> <div class="title-bar"><h2>GM's currently online</h2></div> <div class="content"> <table> <tbody> <tr class="last"> <td colspan="2"> <table> <tr> <td class="icon">$[image.online]</td> <td class="info last"> <table> <tbody> {foreach $[online_user]} <a href="$[online_user.href]" target="_parent">$[online_user.avatar_small]</a> {/foreach} {if $[total_online_not_shown]} , and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a> {/if} </td></tr> </tbody> </table> </td> </tr> </table> </td> </tr> </tbody> </table> </div> </div> {/if}
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Feb 25, 2013 4:20:44 GMT -8
still cant figure out where Ive gone wrong. It lists myself in the users online section of the home page, but if i go to a board, it shows nobody in the list. What I want is for the list to show users online on any page on my site, not just that specific board/thread. however, it doesnt even lists myself when im a specific board. is it because ive copied from the home page to the board page, so its now showing me who is on the home page? this would explain why its empty.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Feb 28, 2013 6:40:27 GMT -8
The variables that exist within the Board templates will only allow you to access the information for users viewing that board, not the entire forum. The reason that nothing shows is because the variables you're using aren't recognised by the template, so they're not displaying. If you want I could do something similar to my last post for the board info boxes, but I won't be able to get the full users online list up.
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Feb 28, 2013 12:19:34 GMT -8
thanks Paul. So, you're saying the user online on the home page refers to the whole website, but on the boards it can only show who's on that board... right? If so, I might then just remove the users online on the board pages to avoid confusion. We dont really have enough users to ever have many viewing the same board or thread at the same time. I was hoping that it would show you when someone is online anywhere on the site so you could then say hello on the shoutbox. And there's no way I can make some kind of iframe of the users online from the home page onto the board pages... probably not.
thanks again for helping me out
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 2, 2013 3:31:39 GMT -8
with regard to your first post, is there any way to keep a minimum size to the users online section? whenever a 2nd user comes online, they appear underneath mine, rather than by the side (there is enough room for all 10 users side-by-side since Im using the medium size avatars). Ive been looking around line 1258 on the style sheet, but i see no height definition. Can I add one, or something would stop avatars appearing underneath one another? thanks
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 2, 2013 19:12:03 GMT -8
Hi strewth78You're correct, yes - when in a board you can only display those that are viewing that board/threads within that board, rather than the whole forum. As regards pulling that information from elsewhere, I don't know if that's possible, or allowed by PB. That's something that somebody else would have to answer, to be honest. Is there any chance that you could send me the link to your forum, so that I can have a look in the morning? Feel free to PM it to me if you'd rather it wasn't made public. =]
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 3, 2013 2:29:55 GMT -8
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 3, 2013 5:27:50 GMT -8
Have registered an account so that I can have a look at the stacking problem. =]
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 4, 2013 1:41:08 GMT -8
ive accepted the registration
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 6, 2013 0:04:54 GMT -8
hi Paul. Had a chance to take a look?
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 7, 2013 4:48:02 GMT -8
Sorry, not been home a lot lately due to work. If you're expecting to be online around midnight tonight (GMT, 11 hours or so from now) I'll be back from work, but if not I've registered another account, so that I can log in to both and replicate the effect. =]
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 7, 2013 5:13:18 GMT -8
ive accepted that one two. thanks again.
|
|