Page 1 of 18

[ABD]X users viewing forums

Posted: Tue Jun 24, 2008 4:16 pm
by tommekemc
Modification Name: X users viewing forums
Author: tommeke_mc
Requirements: phpbb 3.0.1 or higher

Modification Description: Displays the number of users online in a forum on index.php
Modification Version: 0.1.2

Features:
  • lists the amount of users browsing one forum on index.php and viewforum.php
  • don't show if less then X users browse the forum (default to 0, controlled in ACP)
  • show usernames instead of how many people online.
  • show the mod to guests and bots or not (ACP)
  • don't show hidden users
  • hide bots in the username list and amount of users(ACP).
To do features:
  • Change the text color (ACP)
  • enable/disable (ACP)
Known bugs:
  • bug with SEO mod (doesn't show people when they're reading a topic) SOLLUTION
  • After installing the above mod, I got the following errors onthe top of the page..

    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
    Solve this in one of the following ways, if it doesn't work, try the next one:
    • because you saved your file in an incorrect way, it's ascii without BOM, if I recall correctly. Sometimes pages display 3 weird signs at the top left of the pages, this means you saved it with BOM. Open it in your online editor (if you have one) or download a programme that can save files without BOM.
    • You added a space/text before the "<?" or after the "?>", remove these spaces/text and everything will work again.
  • Report any bugs.
Screenshots: Click for full view Image

Demo URL: http://www.worldgaming.be/forum
Demo Username: tester
Demo Password: testing

Demo Notice: The account is only for testing, since guests can't see these things.
You're unable to post or read any messages.
If you want to be able to do more, please register.

Modification Download: here

Modification notice: Make sure you place the variables in the right place when you're using a costum theme.
if nothing is shown (no error and you don't notice any difference), everything is done correctly except for your style.

IMPORTANT NOTICE:
I'm stopping support for this mod untill the phpbb devs have added this feature:

http://www.phpbb.com/bugs/phpbb3/ticket ... t_id=50645

It's not good to make people add a whole bunch of code in their style, it messes up everything.
but the devs won't take action, they just say: 'not supported'...

For the automod: I haven't tested my mod yet with automod, I finished a V 0.1.3, it will work with minimal adeptions in a later release of phpbb, once they solved this issue.

Re: [ALPHA]X users viewing forums

Posted: Tue Jun 24, 2008 5:40 pm
by enesbil
wow great idea. can't wait for that

Re: [ALPHA]X users viewing forums

Posted: Wed Jun 25, 2008 12:44 am
by wiseman1161980
Glad to see your gonna have a go at it. Best of Luck.

Re: [ALPHA]X users viewing forums

Posted: Wed Jun 25, 2008 5:34 am
by danielnguyen
You should make it shows on SubForums!
And if no one view forum, it will not show on index!
This is a great mod!
Thanks and I can wait more! :)

Re: [ALPHA]X users viewing forums

Posted: Wed Jun 25, 2008 7:15 am
by alecrust
Yeah, what would be very good is if it didn't show unless there were people viewing it.

Re: [ALPHA]X users viewing forums

Posted: Wed Jun 25, 2008 7:22 am
by tommekemc
I'll need a ACP module for that, I have never created an ACP module, so if there are any devs with some experience, let me know :D

Re: [ALPHA]X users viewing forums

Posted: Wed Jun 25, 2008 7:59 am
by alecrust
I think it's a vital part of the MOD. You don't want to just show a visitor that there are no users viewing each forum :p

Re: [ALPHA]X users viewing forums

Posted: Wed Jun 25, 2008 8:16 am
by tommekemc
that isn't hard to make, a simple line of code.
the hard part is to make this availeble in the ACP :p
because I've never messed around in the ACP :D
so I'm kind of checking how I have to make it...

Re: [ALPHA]X users viewing forums

Posted: Wed Jun 25, 2008 9:06 am
by alecrust
Oh so it can be turned on/off? I doubt there would be anyone that would want it to say "0 user viewing forum".

Re: [ALPHA]X users viewing forums

Posted: Wed Jun 25, 2008 9:43 am
by tommekemc
I'dd like to give the user as many options as possible ;)

Re: [ALPHA]X users viewing forums

Posted: Thu Jun 26, 2008 3:53 am
by ^[GS]^
Really Nice ^^

Re: [ALPHA]X users viewing forums

Posted: Thu Jun 26, 2008 10:50 am
by sangho
is this work on 3.0.1 and what does
I might need a little help with the ACP thing, not realy good at that :p
mean?

Re: [ALPHA]X users viewing forums

Posted: Thu Jun 26, 2008 11:25 am
by alecrust
Yes it works on 3.0.1 and he means he could do with some ACP help!

Re: [ALPHA]X users viewing forums

Posted: Thu Jun 26, 2008 11:34 am
by marian0810
Could you make it so that it doesn't just show the number of viewers but the actual usernames?

Re: [ALPHA]X users viewing forums

Posted: Thu Jun 26, 2008 4:10 pm
by tommekemc
Could you make it so that it doesn't just show the number of viewers but the actual usernames?
added in the to do list ;)
Yes it works on 3.0.1 and he means he could do with some ACP help!
correct, but I'm getting into the ACP thing.