mChat, Primetime & 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
Pete
New member
New member
Posts: 22
Joined: 29 Aug 2008, 04:56
[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: mChat, Primetime & index page

Postby Pete » 15 Jun 2010, 12:34

One way I did it was add the mchat code inbetween the cms code inside index.php

Find
// display blocks
$blocks->display();

After add
mchat code that normally goes to index.php

Then maybe to get the shoutbox to show up at the bottom of page, is add the Mchat html code in your_template/cms/cms_footer.html

Do note that this will make the shoutbox show up in just about every page of the cms.

This is what I did since i did not really want the shoutbox to be inside another box/module etc.

Pete
New member
New member
Posts: 22
Joined: 29 Aug 2008, 04:56
[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: mChat, Primetime & index page

Postby Pete » 17 Jun 2010, 22:52


ppb
New member
New member
Posts: 9
Joined: 05 Jun 2010, 10:21
[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: mChat, Primetime & index page

Postby ppb » 27 Jun 2010, 13:32

Thanks for the answer, Pete! The idea of modifying cms_layout.html was great, now the shoutbox works on the index page. However, it is displayed under EACH article, what looks quite funny :). I would love to put it into a new custom block, do you have any idea how to achieve this?


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