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!
<!-- IF S_MCHAT_ENABLE and ... statement help
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
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
Re: <!-- IF S_MCHAT_ENABLE and ... statement help
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
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!™
-
- 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
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.
Maybe I missing something there.
Re: <!-- IF S_MCHAT_ENABLE and ... statement help
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!™
-
- 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
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?
How can I use the statements to load mchat script only on index and custom page?
Re: <!-- IF S_MCHAT_ENABLE and ... statement help
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
-
- 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
Awesome! That works !! Thanks a lot!!
- RMcGirr83
- 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
Isn't really needed at all actually.
Re: <!-- IF S_MCHAT_ENABLE and ... statement help
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
Re: <!-- IF S_MCHAT_ENABLE and ... statement help
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
-
- 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
That works as well Sniper. I like it better! ![Smile :-)](./images/smilies/icon_e_smile.gif)
![Smile :-)](./images/smilies/icon_e_smile.gif)
Return to “Modders MOD support”
Who is online
Users browsing this forum: No registered users and 9 guests