Mchat displayed on every page in the JV Arcade
Mchat displayed on every page in the JV Arcade
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.
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.
Re: [HowTo] Add mChat on any page of your board
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.
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.

Re: [HowTo] Add mChat on any page of your board
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 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.
Re: [HowTo] Add mChat on any page of your board
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.
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.

- </Solidjeuh>
- Donor
- Posts: 24
- Joined: 28 Apr 2018, 21:09
- Location: Aalst, Belgium
- Contact:
Re: [HowTo] Add mChat on any page of your board
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');
}
/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
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
Re: [HowTo] Add mChat on any page of your board
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.

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.
Re: Show mchat on all pages
Mchat on the JV arcade
Open: at the root of your FTP arcade.php
Find:
Add after:
Open: /web/ext/jv/arcade/styles/all/template/arcade/play_body.html
Find:
Add before:
Open: /web/ext/jv/arcade/styles/all/template/arcade/index_body.html
Find:
Add after:
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);
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');
}
Find:
Code: Select all
<div style="clear:both;"> </div>
Code: Select all
<!-- IF MCHAT_PAGE == 'mchat_on_arcade_page' -->
<!-- INCLUDE @dmzx_mchat/mchat_body.html -->
<!-- ENDIF -->
Find:
Code: Select all
<!-- INCLUDE overall_header.html -->
Code: Select all
<!-- IF MCHAT_PAGE == 'mchat_on_arcade_page' -->
<!-- INCLUDE @dmzx_mchat/mchat_body.html -->
<!-- ENDIF -->
Re: Mchat displayed on every page in the JV Arcade
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. 

-
- Donor
- Posts: 1
- Joined: 05 Aug 2018, 10:15
Re: Mchat displayed on every page in the JV Arcade
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
Reason: Removed full quote
Who is online
Users browsing this forum: Bing [Bot] and 2 guests