Counting Users viewing from Index page

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
antonjw2
New member
New member
Posts: 3
Joined: 12 Jul 2014, 15:32
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Counting Users viewing from Index page

Postby antonjw2 » 12 Jul 2014, 15:42


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Counting Users viewing from Index page

Postby RMcGirr83 » 12 Jul 2014, 16:31

Not possible as the session for mchat isn't set unless on the custom page.

antonjw2
New member
New member
Posts: 3
Joined: 12 Jul 2014, 15:32
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Counting Users viewing from Index page

Postby antonjw2 » 12 Jul 2014, 16:32

anyway... after having a poke around the code... would this be achieved if i just change $on_page to 'mchat', in functions_mchat (mchat_users function)...

or even in mchat.php setting $on_page to always be 'mchat'?

would this work / have any undesirable effects?

antonjw2
New member
New member
Posts: 3
Joined: 12 Jul 2014, 15:32
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Counting Users viewing from Index page

Postby antonjw2 » 12 Jul 2014, 17:17

tried it. perhaps not, then.

it must be possible, Rich? i appreciate that it might not be a straightforward little tweak, however.

i'm thinking the other option is that i embed the custom page into some jquery widget on the desired forum... this hopefully getting all users browsing that forum counted in the chat figures, and the user able to expand / collapse the chat as desired.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Modders MOD support”

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests