MyBB Community Forums

Full Version: [Websocket] Miuna Shoutbox 9.0.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Because this shoutbox has its own server and only has a very limited link with MyBB. For example, it doesn't use MyCode parser, that's why censor doesn't work.
Right, it makes sense.
Ehh I don't need shoutbox on other server because I have good server. I just use Miuna because looks great and have multi colors for users.
(2015-09-10, 04:13 PM)Moonlight-Angel Wrote: [ -> ]Because this shoutbox has its own server and only has a very limited link with MyBB. For example, it doesn't use MyCode parser, that's why censor doesn't work.

censor?
if want use MyCode parser so use http://community.mybb.com/thread-172026.html
Right, guys. I want to take out Miuna ShoutBox from forum's index and put in to other file, for example shoutbox.php Why? For my mobile users. I want to give shoutbox my mobile users. I don't want to force my mobile users to open whole forum. I want to create other page like shoutbox.php and put there only Miuna ShoutBox. It is possible? I created already file shoutbox.php but when I puted there {$miunashout} then nothing happen. Any idea? I really need it. Please answer. I'm waiting. Greetings!
(2015-09-12, 03:07 PM)IdolwSzutrab7 Wrote: [ -> ]Right, guys. I want to take out Miuna ShoutBox from forum's index and put in to other file, for example shoutbox.php Why? For my mobile users. I want to give shoutbox my mobile users. I don't want to force my mobile users to open whole forum. I want to create other page like shoutbox.php and put there only Miuna ShoutBox. It is possible? I created already file shoutbox.php but when I puted there {$miunashout} then nothing happen. Any idea? I really need it. Please answer. I'm waiting. Greetings!

see this post http://community.mybb.com/thread-166773-...pid1164418
Right. I make all changes from this post: http://community.mybb.com/thread-166773-...pid1164418 and still I can't see the Miuna ShoutBox.


Here is my file "miunabox.php":
<?php 

define('IN_MYBB', 1); require "./global.php";

$plugins->run_hooks('miunabox_start');

add_breadcrumb("MiunaBox", "miunabox.php"); 

eval("\$miunabox = \"".$templates->get("miunabox_page")."\";"); 

output_page($miunabox);

?>


And here I add changes from post before:
function miuna_cache_template()
{
	global $templatelist, $mybb;

	if (isset($templatelist)) {
		$templatelist .= ',';
	}

	if (THIS_SCRIPT == 'index.php' && !$mybb->settings['miunashout_des_index']) {
		$templatelist .= 'codebutmiuna,msb_template,msb_guest_template';
	}
	if (THIS_SCRIPT == 'portal.php' && $mybb->settings['miunashout_act_port']) {
		$templatelist .= 'codebutmiuna,msb_template,msb_guest_template';
	}
	if (THIS_SCRIPT == 'miunabox.php' && $mybb->settings['miunashout_act_port']) {
		$templatelist .= 'codebutmiuna,msb_template,msb_guest_template';
	}
}


And:
if ($settings['miunashout_online'] && $settings['miunashout_act_port']) {
	$plugins->add_hook('miunabox_start', 'MiunaShout');
}
if ($settings['miunashout_online'] && !$settings['miunashout_des_index']) {
	$plugins->add_hook('index_start', 'MiunaShout');
}
if ($settings['miunashout_online'] && $settings['miunashout_act_port']) {
	$plugins->add_hook('portal_start', 'MiunaShout');
}


And here is my site: http://haihai.pl/forum/miunabox.php

What I do wrong?
(2015-09-13, 08:38 AM)IdolwSzutrab7 Wrote: [ -> ]
function miuna_cache_template()
{
	global $templatelist, $mybb;

	if (isset($templatelist)) {
		$templatelist .= ',';
	}

	if (THIS_SCRIPT == 'index.php' && !$mybb->settings['miunashout_des_index']) {
		$templatelist .= 'codebutmiuna,msb_template,msb_guest_template';
	}
	if (THIS_SCRIPT == 'portal.php' && $mybb->settings['miunashout_act_port']) {
		$templatelist .= 'codebutmiuna,msb_template,msb_guest_template';
	}
	if (THIS_SCRIPT == 'miunabox.php' && $mybb->settings['miunashout_act_port']) {
		$templatelist .= 'codebutmiuna,msb_template,msb_guest_template';
	}
}

in "if (THIS_SCRIPT == 'miunabox.php' && $mybb->settings['miunashout_act_port']) {" change to "if (THIS_SCRIPT == 'miunabox.php') {"

(2015-09-13, 08:38 AM)IdolwSzutrab7 Wrote: [ -> ]
if ($settings['miunashout_online'] && $settings['miunashout_act_port']) {
	$plugins->add_hook('miunabox_start', 'MiunaShout');
}
if ($settings['miunashout_online'] && !$settings['miunashout_des_index']) {
	$plugins->add_hook('index_start', 'MiunaShout');
}
if ($settings['miunashout_online'] && $settings['miunashout_act_port']) {
	$plugins->add_hook('portal_start', 'MiunaShout');
}

in "if ($settings['miunashout_online'] && $settings['miunashout_act_port']) {" change to "if ($settings['miunashout_online']) {"

and add in global template

name: miunabox_page

<html>
<head>
<title>{$mybb->settings['bbname']} - MiunaBox</title>
{$headerinclude}
</head>
<body>
{$header}

{$miunashout}

{$footer}
</body>
</html> 
Hmm, right. Funny, I thinked that this $settings['miunashout_act_port'] is important and needed Toungue
Now it works! Smile

Very thank you for help! >.<
Hi @martec,
I'm having a little bit of problem when someone uses @mentions on the Shoutbox it puts an alert on the 'Tab' something like (1) Community Name on the tab, problem is it doesn't show on MyAlerts and I don't have any other option to take it other than deleting the post on the shoutbox. Wonder if there's any workaround on it or disable @mentions on the shoutbox?
the shoutbox has been stuck on loading for over an hour now. i've restarted the app on openshift and no change