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.
(2015-07-31, 03:41 AM)Wallou Wrote: [ -> ]This shoutbox has been going on and offline this entire day. Is there something wrong with the external interface we're connecting to? (It worked perfectly fine yesterday)

I've tried restarting the application in Openshift and nothing happens.

some times openshift has issue with 8443 port in some node. So not all people have problem. Normally port 8443 return work in some hours ou in one day.

so you can try change in configuration of ACP

find:
Socket.io address:r: wss://miunashout-xxxxxx.rhcloud.com:8443

replace:
Socket.io address:r: ws://miunashout-xxxxxx.rhcloud.com:8000

(so basically change wss to ws and 8443 to 8000)

Not forget return again Socket.io address to wss://miunashout-xxxxxx.rhcloud.com:8443 after one day. Because port 8443 is more secure.

(2015-07-30, 08:14 PM)Fajfie Wrote: [ -> ]Hello, I'm testing this chat for a long time and i found bug with polish lettters in links.

For example if I input somethink like that http://animes.pl/wątek-Nerdus-Maximus it will output that:

[Image: JJZNGo2.png]

for link with special character plz use something below

[url=http://animes.pl/wątek-Nerdus-Maximus]test[/url]

(2015-07-30, 08:14 PM)Fajfie Wrote: [ -> ]Is there any tutorial how to put this chat on my own hosting? I'm living in Poland so there is a long way to servers and it takes few seconds to laod and sometimes users have some blockades so i want to host this on my own server.

not will change much i believe establish the connection with wss require some times.
If you want install in your server you need Nodejs and MongoDB installed in your server and made something like http://community.mybb.com/thread-166924-...pid1167724

of courser you need change https://github.com/martec/Miuna-News-Ser.../server.js to https://github.com/martec/Miuna-Shoutbox.../server.js
(2015-07-31, 04:59 AM)martec Wrote: [ -> ]
(2015-07-31, 03:41 AM)Wallou Wrote: [ -> ]This shoutbox has been going on and offline this entire day. Is there something wrong with the external interface we're connecting to? (It worked perfectly fine yesterday)

I've tried restarting the application in Openshift and nothing happens.

some times openshift has issue with 8443 port in some node. So not all people have problem. Normally port 8443 return work in some hours ou in one day.

so you can try change in configuration of ACP

find:
Socket.io address:r: wss://miunashout-xxxxxx.rhcloud.com:8443

replace:
Socket.io address:r: ws://miunashout-xxxxxx.rhcloud.com:8000

(so basically change wss to ws and 8443 to 8000)

Not forget return again Socket.io address to wss://miunashout-xxxxxx.rhcloud.com:8443 after one day. Because port 8443 is more secure.

(2015-07-30, 08:14 PM)Fajfie Wrote: [ -> ]Hello, I'm testing this chat for a long time and i found bug with polish lettters in links.

For example if I input somethink like that http://animes.pl/wątek-Nerdus-Maximus it will output that:

[Image: JJZNGo2.png]

for link with special character plz use something below

[url=http://animes.pl/wątek-Nerdus-Maximus]test[/url]

(2015-07-30, 08:14 PM)Fajfie Wrote: [ -> ]Is there any tutorial how to put this chat on my own hosting? I'm living in Poland so there is a long way to servers and it takes few seconds to laod and sometimes users have some blockades so i want to host this on my own server.

not will change much i believe establish the connection with wss require some times.
If you want install in your server you need Nodejs and MongoDB installed in your server and made something like http://community.mybb.com/thread-166924-...pid1167724

of courser you need change https://github.com/martec/Miuna-News-Ser.../server.js to https://github.com/martec/Miuna-Shoutbox.../server.js

I tried changing it to 8000 but it doesn't do anything. I've noticed that if you're logged out, the chat box works fine. Once you login, it doesn't work anymore.
(2015-07-31, 09:55 PM)Wallou Wrote: [ -> ]I tried changing it to 8000 but it doesn't do anything. I've noticed that if you're logged out, the chat box works fine. Once you login, it doesn't work anymore.

so guest can access.
this is more complicated.
appear that has issue with communication with your server and openshift.
try replace inc/plugins/miunashoutbox.php with attachment file.
if ok with attachment return again with fresh file of 5.5.0 after some days.
(2015-08-01, 02:31 AM)martec Wrote: [ -> ]
(2015-07-31, 09:55 PM)Wallou Wrote: [ -> ]I tried changing it to 8000 but it doesn't do anything. I've noticed that if you're logged out, the chat box works fine. Once you login, it doesn't work anymore.

so guest can access.
this is more complicated.
appear that has issue with communication with your server and openshift.
try replace inc/plugins/miunashoutbox.php with attachment file.
if ok with attachment return again with fresh file of 5.5.0 after some days.

The attached file didn't work. ):

Also I greatly appreciate the time you're taking to help me with this. Thanks so much!
(2015-08-01, 03:19 AM)Wallou Wrote: [ -> ]The attached file didn't work. ):

Also I greatly appreciate the time you're taking to help me with this. Thanks so much!

so change https to http too not work (port 443 to 80)... strange...
you tried change in ACP to use fsockopen?
Could you add "ignore" option to the shoutbox. My friend created a code for DVZ Shoutbox and when you add a user to the ignore list on forum his shouts is like: "This user is ignored by you."

Look at the code:
if($mybb->user['ignorelist'] != '') 
    {
    $ignlist = explode(",", $mybb->user['ignorelist']);
    if(!empty($ignlist) && in_array($data['uid'], $ignlist, true)) 
        {
        $text = '<span style="font-style: italic; font-size: 0.85em;">' . self::parse('This user is ignored by you.', $data['username']) . '</span>';
        }
    } 

It's a nice function.
(2015-08-02, 10:07 AM)Ecosse Wrote: [ -> ]Could you add "ignore" option to the shoutbox. My friend created a code for DVZ Shoutbox and when you add a user to the ignore list on forum his shouts is like: "This user is ignored by you."

Look at the code:
if($mybb->user['ignorelist'] != '') 
    {
    $ignlist = explode(",", $mybb->user['ignorelist']);
    if(!empty($ignlist) && in_array($data['uid'], $ignlist, true)) 
        {
        $text = '<span style="font-style: italic; font-size: 0.85em;">' . self::parse('This user is ignored by you.', $data['username']) . '</span>';
        }
    } 

It's a nice function.

this code above not will work...
this isn't ajax shoutbox...
i will put in list of to do...
but i will not promise anything.
(2015-08-01, 03:22 AM)martec Wrote: [ -> ]
(2015-08-01, 03:19 AM)Wallou Wrote: [ -> ]The attached file didn't work. ):

Also I greatly appreciate the time you're taking to help me with this. Thanks so much!

so change https to http too not work (port 443 to 80)... strange...
you tried change in ACP to use fsockopen?

I tried changing ACP to use fsockopen but I'm not too sure where to change https to http. So far, using fsockopen, it didn't work.
not found the service in rhcloud?
(2015-08-02, 10:20 PM)tiagosan Wrote: [ -> ]not found the service in rhcloud?

screenshot plz...