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-14, 02:41 AM)Ura Wrote: [ -> ]not working. it can be this? edited " file (miunashout.helper.js); line (222,225); added (<a href='./user-"+uid+".html'>); but this is only link to user profile.

you need remove to PM work. I can't made anything if you made changes in code.
(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-
 Or this, but if you can't help, so we must reinstall whole miunashoutbox.

edit: or just this file,
(2016-05-14, 02:51 AM)Ura Wrote: [ -> ]
(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-
 Or this, but if you can't help, so we must reinstall whole miunashoutbox.

no no no.
code above is ok.
you need remove profile link it's all. I already said in this thread that shoutbox not support profile link.
i removed this, but i change it my web browser from  opera to firefox and... its strange

[Image: Zrzut%20ekranu%202016-05-14%2005.16.27.png?dl=0]

[Image: Zrzut%20ekranu%202016-05-14%2005.15.07.png?dl=0]

[Image: Zrzut%20ekranu%202016-05-14%2005.15.00.png?dl=0]

[Image: Zrzut%20ekranu%202016-05-14%2005.16.16.png?dl=0]
(2016-05-14, 03:22 AM)Ura Wrote: [ -> ]i removed this, but i change it my web browser from  opera to firefox and... its strange

[Image: Zrzut%20ekranu%202016-05-14%2005.16.27.png?dl=0]

[Image: Zrzut%20ekranu%202016-05-14%2005.15.07.png?dl=0]

[Image: Zrzut%20ekranu%202016-05-14%2005.15.00.png?dl=0]

[Image: Zrzut%20ekranu%202016-05-14%2005.16.16.png?dl=0]

after change (after remove profile link) you need clear cache to take effect
i cleared my cache too...
(2016-05-14, 03:30 AM)Ura Wrote: [ -> ]i cleared my cache too...

you really removed profile link?
http://haihai.pl/forum/jscripts/miuna/sh...?ver=8.0.0 (for me you not removed profile link)
Ok, its work now, thanks for your time you are great martec.
(2016-05-14, 03:42 AM)Ura Wrote: [ -> ]Ok, its work now, thanks for your time you are great martec.

nothing... Big Grin
Haha.
I modified this a few versions ago and this little change always works.
You have to change something important in this 8.0.0 version.

For me is really important to have link for user profile somewhere in user shout.
If I would like to see user profile I don't want scroll whole website to find his linked nickname.

I wake up and tell my friend to restore my modification but only for user avatar.
And now works fine.

You should think about link to user profile in the future.
You can link user avatar like we because it works now fine.

if(type == 'shout' || type == 'pmshout') {
        $(""+area+"")[preapp]("<div class='msgShout  "+count+" "+escapeHtml(key)+"' data-uid="+parseInt(uid)+" data-ided="+escapeHtml(key)+"><a href='./user-"+uid+".html'>"+usravatar+"</a><span class='time_msgShout'><span>[</span>"+hour+"<span>]</span></span>"+pmspan+"<span class='username_msgShout' style='cursor:pointer;'>"+username+"</span>:<span class='content_msgShout' style='"+shoutstyle+"'>"+message+"</span>"+edtspan+"</div>");
    }




By the way.
We have something for you. Bad news. Another issue. But this time is not our fault.

Do you know if somebody paste link in Miuna ShoutBox which have strange characters like question mark (?), exclamation mark (!) and space ( ) then this link is broken in half? This is really annoying. Could You please fix this issue in the future? Thanks.

Here is screenshot:

[attachment=36272]

Enjoy.