<!-- IF S_MCHAT_ENABLE and ... statement help

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
neuropass
Member
Member
Posts: 66
Joined: 12 Apr 2010, 17:07
[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

<!-- IF S_MCHAT_ENABLE and ... statement help

Postby neuropass » 11 Jun 2014, 01:11

This says:



which means if mchat is enabled and on index or custom mchat page show the script.

That means if an user is viewing a topic the script is not loaded. Doesn't seem to be the case.

Any clarification on how that works would be great!

Thanks!

User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby Sniper_E » 11 Jun 2014, 15:14

Isn't the U_MCHAT part of that line the "link to the custom page"? You are understanding it to be the "custom mchat page" itself.

I could be corrected but I see that line to be:

If mchat is enabled and mchat on index page is enabled
OR
If mchat is enabled and the mchat link to the custom page exists
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

neuropass
Member
Member
Posts: 66
Joined: 12 Apr 2010, 17:07
[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: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby neuropass » 11 Jun 2014, 17:01

The thing that is confusing to me is that mchat scripts seem to be loaded even if you are viewing lets say the viewtopic page. Shouldn't be the script not served unless you are on index or custom mchat page?
Maybe I missing something there.

User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby Sniper_E » 11 Jun 2014, 18:21

No you are seeing it right, the only thing you are missing is that the author of the mchat mod is a nub. Additional IF statements can be added to accomplish what you think it should be. He also has an IF statement in the mchat_body.html template that I think is off but Hey... I'm still impressed with his work. I can live with what he has created here.
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

neuropass
Member
Member
Posts: 66
Joined: 12 Apr 2010, 17:07
[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: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby neuropass » 11 Jun 2014, 19:52

lol I knew Rich <--- note the name would mess something up!

How can I use the statements to load mchat script only on index and custom page?

User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby Sniper_E » 11 Jun 2014, 20:22

No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

neuropass
Member
Member
Posts: 66
Joined: 12 Apr 2010, 17:07
[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: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby neuropass » 11 Jun 2014, 20:52

Awesome! That works !! Thanks a lot!!

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: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby RMcGirr83 » 12 Jun 2014, 11:08



Isn't really needed at all actually.

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: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby RMcGirr83 » 12 Jun 2014, 11:08


User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby Sniper_E » 12 Jun 2014, 14:45

No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

neuropass
Member
Member
Posts: 66
Joined: 12 Apr 2010, 17:07
[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: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby neuropass » 22 Jun 2014, 16:49


User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby Sniper_E » 22 Jun 2014, 17:12

No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

neuropass
Member
Member
Posts: 66
Joined: 12 Apr 2010, 17:07
[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: <!-- IF S_MCHAT_ENABLE and ... statement help

Postby neuropass » 22 Jun 2014, 17:29

That works as well Sniper. I like it better! :-)


[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 9 guests