[HowTo] Add mChat on any page of your board

Support area for phpBB's mChat extension
User avatar
kasimi
mChat developer
Posts: 599
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: [HowTo] Add mChat on any page of your board

#11

Post by kasimi » 31 Mar 2018, 14:37

I'm using this code in my Sticky Footer extension and I haven't heard of any issues. It's working fine for me, too.

If you tell me what exactly isn't working for you, I may be able to help you. :+1:

Markus
Posts: 3
Joined: 11 Mar 2018, 20:19

Re: [HowTo] Add mChat on any page of your board

#12

Post by Markus » 07 Jul 2018, 04:07

Hello,

How do I get the Mchat displayed on every page in the JV Arcade?

The author of the JV Arcade wrote that one should ask here.

Many Thanks.

User avatar
kasimi
mChat developer
Posts: 599
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: [HowTo] Add mChat on any page of your board

#13

Post by kasimi » 07 Jul 2018, 07:23

Hi Markus,

the instructions in the first post should also work on the JV arcade. Did you follow them? Let me know if you run into any issues. :+1:

Markus
Posts: 3
Joined: 11 Mar 2018, 20:19

Re: [HowTo] Add mChat on any page of your board

#14

Post by Markus » 07 Jul 2018, 17:40

Thank you Kasimi for your feedback.

I do not know in which php file and in which template I have to insert something so that the mchat is displayed on all arcade pages. :(

Need your help please.

Thank you in advance.

User avatar
kasimi
mChat developer
Posts: 599
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: [HowTo] Add mChat on any page of your board

#15

Post by kasimi » 07 Jul 2018, 18:04

Unfortunately I don't have that extension nor am I familiar with its structure or code. I'm afraid you need to talk to the author of JV arcade again. If he follows the steps in the first post he will very likely be able to help you.

If you want me to take a look at the JV Arcade code and integrate mChat on your board I would ask for a small donation. Feel free to send me a PM in that case. :+1:

User avatar
</Solidjeuh>
Donor
Posts: 23
Joined: 28 Apr 2018, 21:09
Location: Aalst, Belgium
Contact:

Re: [HowTo] Add mChat on any page of your board

#16

Post by </Solidjeuh> » 09 Jul 2018, 21:21

Markus wrote:
07 Jul 2018, 17:40
Thank you Kasimi for your feedback.

I do not know in which php file and in which template I have to insert something so that the mchat is displayed on all arcade pages. :(

Need your help please.

Thank you in advance.
I tested this on my forum, and works for JV Arcade.

Open: /ext/jv/arcade/inc/display.php
At the bottom on a new line add:

Code: Select all

global $phpbb_container, $user, $template;
if ($phpbb_container->has('dmzx.mchat.settings'))
{
    // We use the page_index() method to render mChat so we need
    // to enable mChat on the index page only for this request
    $user->data['user_mchat_index'] = 1;
    $phpbb_container->get('dmzx.mchat.settings')->set_cfg('mchat_index', 1, true);
    $phpbb_container->get('dmzx.mchat.core')->page_index();
    $template->assign_var('MCHAT_PAGE', 'mchat_on_arcade_page');
} 
Open: /ext/jv/arcade/styles/all/template/event/overall_header_content_before.html
Find: <!-- IF S_IN_PHPBB_ARCADE -->

Add above:

Code: Select all

<!-- IF MCHAT_PAGE == 'mchat_on_arcade_page' -->
   <!-- INCLUDE @dmzx_mchat/mchat_body.html -->
<!-- ENDIF --> 
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net

Markus
Posts: 3
Joined: 11 Mar 2018, 20:19

Re: [HowTo] Add mChat on any page of your board

#17

Post by Markus » 09 Jul 2018, 22:28

Thank you </ Solidjeuh> but if I make these changes, then I have the mchat on the forum page 2 times. :(

The Mchat is in the arcade, but if you edit his text, you will not see his text.

Only on the forum page one can edit his text.

Post Reply

Who is online

Users browsing this forum: OniK and 1 guest