Mchat displayed on every page in the JV Arcade

Support area for phpBB's mChat extension
Post Reply
Markus
Donor
Posts: 13
Joined: 11 Mar 2018, 20:19

Mchat displayed on every page in the JV Arcade

#1

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: 709
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

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

#2

Post by kasimi » 07 Jul 2018, 07:23

Hi Markus,

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

Markus
Donor
Posts: 13
Joined: 11 Mar 2018, 20:19

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

#3

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: 709
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

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

#4

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

#5

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
Donor
Posts: 13
Joined: 11 Mar 2018, 20:19

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

#6

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.

Tigers
Donor
Posts: 22
Joined: 25 Nov 2016, 09:42

Re: Show mchat on all pages

#7

Post by Tigers » 04 Aug 2018, 09:45

Mchat on the JV arcade

Open: at the root of your FTP arcade.php
Find:

Code: Select all

$arcade->setup(false, $style_id);
$arcade->auth_check($arcade_page, $mode, $type);
Add after:

Code: Select all

global $phpbb_container, $user, $template;
if (($mode == '' || $mode == 'play') && $phpbb_container->has('dmzx.mchat.settings'))
{
	$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: /web/ext/jv/arcade/styles/all/template/arcade/play_body.html
Find:

Code: Select all

<div style="clear:both;">&nbsp;</div>
Add before:

Code: Select all

<!-- IF MCHAT_PAGE == 'mchat_on_arcade_page' -->
   <!-- INCLUDE @dmzx_mchat/mchat_body.html -->
<!-- ENDIF -->
Open: /web/ext/jv/arcade/styles/all/template/arcade/index_body.html
Find:

Code: Select all

<!-- INCLUDE overall_header.html -->
Add after:

Code: Select all

<!-- IF MCHAT_PAGE == 'mchat_on_arcade_page' -->
   <!-- INCLUDE @dmzx_mchat/mchat_body.html -->
<!-- ENDIF -->

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

Re: Mchat displayed on every page in the JV Arcade

#8

Post by kasimi » 04 Aug 2018, 09:51

Thanks Tigers. I moved your post to a new topic since your code only applies to the JV Shoutbox and not all pages of the board. :+1:

legionaire
Donor
Posts: 1
Joined: 05 Aug 2018, 10:15

Re: Mchat displayed on every page in the JV Arcade

#9

Post by legionaire » 05 Aug 2018, 10:31

Thank you Tigers, this works perfectly
Last edited by kasimi on 06 Aug 2018, 09:38, edited 2 times in total.
Reason: Removed full quote

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest