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.
(2016-05-01, 09:45 PM)badboy4life91 Wrote: [ -> ]@Sibez you become boring, do what @Martec request, give it the means to reproduce the problem

to correct the, it is not a constructive discution whereas it should be the

without steps to reproduce pratically impossible fix.
i see code of authentication, but for me not has issue https://github.com/martec/Miuna-Shoutbox...#L169-L194

maybe add
return;
after line 179 fix issue of @Sibez, but i can't confirm because i not know how reproduce.
Thanks you but i don't have a problem with your Shooutbox, that said I'm not an expert.
I just find that harass the developer is a thankless way to seek help or support...
I have been searching far and wide for a chat that would be free and amazing.  I have ran across your amazing plugin and I LOVE it!  Unfortunately, I am getting the js error below: 


[Image: zPhEZme.png]

Any suggestions about what to do from here?
Thank you.

Edit: I am receiving the "Expired Token. Refresh the page to obtain new Token." error. I have changed the token expiration value in ACP to 10 hours. I feel like that should be plenty. Maybe that is not the issue?

Additional Info:
Miuna Shoutbox Client: Version 8.0.0
Miuna Shoutbox Server: 8.0 ACP
Mybb: Version 1.8.7
(2016-05-03, 11:21 PM)AndrewSP Wrote: [ -> ]I have been searching far and wide for a chat that would be free and amazing.  I have ran across your amazing plugin and I LOVE it!  Unfortunately, I am getting the js error below: 


[Image: zPhEZme.png]

Any suggestions about what to do from here?
Thank you.

Edit: I am receiving the "Expired Token. Refresh the page to obtain new Token." error. I have changed the token expiration value in ACP to 10 hours. I feel like that should be plenty. Maybe that is not the issue?

Additional Info:
Miuna Shoutbox Client: Version 8.0.0
Miuna Shoutbox Server: 8.0 ACP
Mybb: Version 1.8.7

about token replay questions below:

reply all questions below...
reply all questions without exceptions:

1- you readed first post and follow install guide?
2- installed too Miuna shoutbox server in openshift?
3- tested with default theme?
4- appear javascript error? if not know how see javascript error so check https://codex.wordpress.org/Using_Your_B...ipt_Errors (step 3 only) and post here javascript error.
5- repeat step 4 too with default theme if you using custom theme.
6- You restarted Miuna server in openshift after setup of Miuna server?

about error message:

http://stackoverflow.com/questions/12267...ge-is-null
(2016-05-04, 12:17 AM)martec Wrote: [ -> ]
(2016-05-03, 11:21 PM)AndrewSP Wrote: [ -> ]I have been searching far and wide for a chat that would be free and amazing.  I have ran across your amazing plugin and I LOVE it!  Unfortunately, I am getting the js error below: 


[Image: zPhEZme.png]

Any suggestions about what to do from here?
Thank you.

Edit: I am receiving the "Expired Token. Refresh the page to obtain new Token." error.  I have changed the token expiration value in ACP to 10 hours.  I feel like that should be plenty.  Maybe that is not the issue?

Additional Info:
Miuna Shoutbox Client: Version 8.0.0
Miuna Shoutbox Server: 8.0 ACP
Mybb: Version 1.8.7

about token replay questions below:

reply all questions below...
reply all questions without exceptions:

1- you readed first post and follow install guide?
2- installed too Miuna shoutbox server in openshift?
3- tested with default theme?
4- appear javascript error? if not know how see javascript error so check https://codex.wordpress.org/Using_Your_B...ipt_Errors (step 3 only) and post here javascript error.
5- repeat step 4 too with default theme if you using custom theme.
6- You restarted Miuna server in openshift after setup of Miuna server?

about error message:

http://stackoverflow.com/questions/12267...ge-is-null

1- you readed first post and follow install guide? 
Yes
2- installed too Miuna shoutbox server in openshift? 
Yes as stated above.
3- tested with default theme?
Yes, same error occurs.
4- appear javascript error? if not know how see javascript error so check https://codex.wordpress.org/Using_Your_B...ipt_Errors (step 3 only) and post here javascript error.  
I posted a picture of the error console as shown in Firefox with associated lines files where error is occurring.  I have also tested the problem in Chrome and came back to the same problem so its not browser based.
5- repeat step 4 too with default theme if you using custom theme.
Same issue.
6- You restarted Miuna server in openshift after setup of Miuna server?
Multiple times to make sure.  Same issue. 

Do you have any insight on the errors being thrown in the Javascript console?  Here is the errors in text if that is easier:
TypeError: localStorage is null     ../jscripts/miuna/shoutbox/miunashout.helper.js?ver=8.0.0    245:2

miunashout_connect()      miunashout.helper.js:245
<anonymous>               index.php:353
m.Callbacks/j()           jquery.js:2
m.Callbacks/k.fireWith()  jquery.js:2
.ready()                  jquery.js:2
J()                       jquery.js:2


Line 244/245:../jscripts/miuna/shoutbox/miunashout.helper.js?ver=8.0.0

function miunashout_connect() {
	sb_sty = JSON.parse(localStorage.getItem('sb_col_ft'));

Thank you.

Edit: I have fixed the previous errors that were listed in the javascript development console. I had one of my settings changed in my browers configuration. Although, I am still getting the "Expired Token. Refresh the page to obtain new Token." error.
(2016-05-04, 02:23 AM)AndrewSP Wrote: [ -> ]Edit: I have fixed the previous errors that were listed in the javascript development console. I had one of my settings changed in my browers configuration. Although, I am still getting the "Expired Token. Refresh the page to obtain new Token." error.

i can setup to you if offered to me all informations below.

send admin test account of your forum, openshift account and ftp account in https://martyan.xyz/test/

User: test
pass: test123

Need create account but activation not required.

Create account with same nick of here, and create thread inside "Support of Miuna Shoutbox" this is private folder.
(2016-05-04, 03:02 AM)martec Wrote: [ -> ]
(2016-05-04, 02:23 AM)AndrewSP Wrote: [ -> ]Edit: I have fixed the previous errors that were listed in the javascript development console. I had one of my settings changed in my browers configuration. Although, I am still getting the "Expired Token. Refresh the page to obtain new Token." error.

i can setup to you if offered to me all informations below.

send admin test account of your forum, openshift account and ftp account in https://martyan.xyz/test/

User: test
pass: test123

Need create account but activation not required.

Create account with same nick of here, and create thread inside "Support of Miuna Shoutbox" this is private folder.

The information has been posted on https://martyan.xyz/test/
@AndrewSP

done.
(2016-05-05, 02:55 AM)martec Wrote: [ -> ]@AndrewSP

done.

Well thank you martec!! Excellent support! May I ask what went wrong?

Again,  thank you for your free support and free plugin.  Lots of dedicated time.

One more quick question if you do not mind.  Is it possible to have the shout box on a separate page other than index?

Nevermind.  I got it.  If anyone is interested, follow the steps below.

1. Create a new "page.php" under the root directory for your forum replacing page with what you want the page to be.  Ex: "chat.php".

2.  Add something similar to the following inside your "page.php" you just created.  I am not a coder so pardon my messiness.  Replace all words "chat" with the php file name you have created.
<?php

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

$plugins->run_hooks('index_start');  //make sure that the plugin hook is running.

add_breadcrumb("Chat", "chat.php");

eval("\$chat = \"".$templates->get("chat")."\";");
output_page($chat);
?>

3.  Make a new template file in myBB for your theme and make sure to keep the name the same as the php file.

4. Add this to the new template file:
<html>
<head>
<title>{$mybb->settings[bbname]}</title>
{$headerinclude}
</head>
<body>
{$header}
{$miunashout} <!--This is where the chat will show up after the header as shown.-->
<br />
{$footer}
</body>
</html>

5.  Save the template file and view the newly created page at http://yoursite.com/chat.php  - replace the "chat.php" with the naming convention you used for the php file.
(2016-04-10, 11:25 AM)IdolwSzutrab7 Wrote: [ -> ]@martec I have strange problem.
Shouts disappear when you reload page. It looks like Miuna won't save it anymore.
I do not know why. I changed nothing.

And about that issue with private messages, it looks like this:

[Image: z0UHNnO.png]

[Image: sorJzhl.png]

[Image: tNDgE78.png]

So now I have two problems. But more important is that Miuna won't save shouts anymore.

I really changed nothing.
This is still your instalation on my board.


EDIT


[Image: LyZBO72.png]

I do not understand this.

(2016-04-10, 03:40 PM)martec Wrote: [ -> ]@IdolwSzutrab7

open root/jscripts/miuna/shoutbox/miunashout.helper.js
find:
	if (parseInt(actavat)) {
		if (avatar.trim()) {
			usravatar = "<span class='msb_tvatar'><img src="+escapeHtml(avatar)+" /></span>";
		}
		else {
			usravatar = "<span class='msb_tvatar'><img src='"+imagepath+"/default_avatar.png' /></span>";
		}
	}

replace:

	if (parseInt(actavat)) {
		if (avatar) {
			if (avatar.trim()) {
				usravatar = "<span class='msb_tvatar'><img src="+escapeHtml(avatar)+" /></span>";
			}
			else {
				usravatar = "<span class='msb_tvatar'><img src='"+imagepath+"/default_avatar.png' /></span>";
			}
		}
		else {
			usravatar = "<span class='msb_tvatar'><img src='"+imagepath+"/default_avatar.png' /></span>";
		}
	}

after replaced clear cache of browser and if using cloudflare clear cache of cloudflare too https://support.cloudflare.com/hc/en-us/...-my-cache-

Now shouts works good but still Private Messagess on my ShoutBox doesn't work.

Can you help with that?
Because people start asking about why PM doesn't work and I don't know what to do with that.