Place users in chat header

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
dan filipi
New member
New member
Posts: 35
Joined: 23 Feb 2011, 13:37
[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

Place users in chat header

Postby dan filipi » 02 Mar 2011, 01:30

I've edited my header to include number of users in chat.
The only place it shows up though is on the index page, viewforum, viewtopic etc. doesnt display my edit next to the Mini Chat icon like on index.
Is there something else I need to edit?


ChatUsersInHeader.PNG


Thanks guys.

User avatar
RMcGirr83
Supporter
Supporter
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: Place users in chat header

Postby RMcGirr83 » 02 Mar 2011, 10:13

It is only done on the index page because that is where the code is that allows you to do that.

dan filipi
New member
New member
Posts: 35
Joined: 23 Feb 2011, 13:37
[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: Place users in chat header

Postby dan filipi » 02 Mar 2011, 13:11

How can I make it show on all pages?

User avatar
RMcGirr83
Supporter
Supporter
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: Place users in chat header

Postby RMcGirr83 » 02 Mar 2011, 13:24

Edit includes/functions.php within the page_header function....where the other edits the mod has you make are.

dan filipi
New member
New member
Posts: 35
Joined: 23 Feb 2011, 13:37
[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: Place users in chat header

Postby dan filipi » 02 Mar 2011, 13:29

Thanks Rich.

I thought it might be there somewhere but I need some guidance.
Can you tell me what I should edit please.

User avatar
RMcGirr83
Supporter
Supporter
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: Place users in chat header

Postby RMcGirr83 » 02 Mar 2011, 13:36


dan filipi
New member
New member
Posts: 35
Joined: 23 Feb 2011, 13:37
[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: Place users in chat header

Postby dan filipi » 02 Mar 2011, 13:50


User avatar
RMcGirr83
Supporter
Supporter
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: Place users in chat header

Postby RMcGirr83 » 02 Mar 2011, 13:52


dan filipi
New member
New member
Posts: 35
Joined: 23 Feb 2011, 13:37
[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: Place users in chat header

Postby dan filipi » 02 Mar 2011, 14:32


User avatar
RMcGirr83
Supporter
Supporter
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: Place users in chat header

Postby RMcGirr83 » 02 Mar 2011, 14:35


dan filipi
New member
New member
Posts: 35
Joined: 23 Feb 2011, 13:37
[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: Place users in chat header

Postby dan filipi » 02 Mar 2011, 15:14

You da man Rich! That did it.


(I removed the functions edits like you said to do for the hook, don't know how I missed that)

dan filipi
New member
New member
Posts: 35
Joined: 23 Feb 2011, 13:37
[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: Place users in chat header

Postby dan filipi » 03 Mar 2011, 02:26


dan filipi
New member
New member
Posts: 35
Joined: 23 Feb 2011, 13:37
[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: Place users in chat header

Postby dan filipi » 03 Mar 2011, 14:19



[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: No registered users and 60 guests