Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] MyBB Messenger
#11
I can't find any chat symbol on my board.
Which template is modified for which variable? so, I can add manually.
Thanks.

I couldn't find below code as per plugin file and I added in headerinclude template but home page stuck and don't scroll.
<link rel="stylesheet" type="text/css" href="inc/plugins/MybbStuff/mybbmessenger/mybbmessenger.css">
<script type="text/javascript" src="jscripts/messenger.js"></script>

It doesn't show any icon on default theme but it show the icon on other theme but it gives error of 'Sorry, this page doesn't exist.
Please check the URL or go back a page.'

I am testing on localhost so it don't adding localhost address to messenger.php link so button not displayed. How to fix it?
Reply
#12
(2021-01-21, 05:42 PM)Dr_The_One Wrote: I can't find any chat symbol on my board.
Which template is modified for which variable? so, I can add manually.
Thanks.

I couldn't find below code as per plugin file and I added in headerinclude template but home page stuck and don't scroll.
<link rel="stylesheet" type="text/css" href="inc/plugins/MybbStuff/mybbmessenger/mybbmessenger.css">
<script type="text/javascript" src="jscripts/messenger.js"></script>

It doesn't show any icon on default theme but it show the icon on other theme but it gives error of 'Sorry, this page doesn't exist.
Please check the URL or go back a page.'

I am testing on localhost so it don't adding localhost address to messenger.php link so button not displayed. How to fix it?

Please check whether any css class style from global is hidding the icon or not. please check these files first.
localhost/yourfoldername/messenger.php
localhost/yourfoldername/jscripts/messenger.js
localhost/yourfoldername/inc/plugins/MybbStuff/mybbmessenger/mybbmessenger.css

let me know if you can access these files first, so i could resolve the issue you are having properly

mybbmessenger_main has these files included. you should remove it from headerinclude
Reply
#13
I have installed this messenger
I have to say..

why no option of delete msgs / empty the chat / block the user if he disturbs
if there is option for open chat for everyone, u can not chat anyone unless you have added them.
the mesenger icon does not come up
it should be added directly to the page after activating this plugin

hopping this plugin gets more updates so can use it because it looks good.
Reply
#14
This is just in development phase. It'll improve in coming versions.
Reply
#15
Great! thanks you snlbaral
Reply
#16
Cant install, It says
This page isn’t workingreusers.to is currently unable to handle this request.
HTTP ERROR 500
[Image: banner.gif]
Reply
#17
(2021-01-26, 01:25 PM)Mastersly Wrote: Cant install, It says
This page isn’t workingreusers.to is currently unable to handle this request.
HTTP ERROR 500

I've checked on multiple hosts and it seems to work fine. are you able to install the plugin?
Did you downloaded the latest version?
could you share the screenshot of the issue if possible?
Reply
#18
Yes I downloaded the latest version STABLE Version 1.1
I installed the plugin but I cant activate it,
When I click activate it shows the following error
https://i.imgur.com/I1LyrMQ.png
[Image: banner.gif]
Reply
#19
I have worked on possible issue you might been facing and released the update. Deactivate, Uninstall if there is previous version installed. Download Latest Build and replace existing files if any exists. then just do install & upgrade from Admin CP. Let me know if that fixes the issue.
Reply
#20
I installed the plugin, it worked at first, but then when I click on the chat bubble nothing works. I think this is related to js but I don't understand how to fix it. I uninstalled the plugin, removed all the plugin files from ftp and reinstalled but nothing changes.

I found the source of the problem. Normally when the plugin is first loaded, the codes are added to the site and the output looks like this:

        <!-- start: mybbmessenger_iframe -->

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<style>
#messengerFrame {
	height: 490px;
	position: fixed;
	right: 2%;
	border: 0;
	z-index: 99999;
	border-radius: 6px;
	border: 1px solid #999;
	bottom: 5px;
	width: 330px;
	display: none;
}
#messengerClose, #messengerOpen {
	position: fixed;
	right: 2%;
	z-index: 999;
	background: #5876ab;
	padding: 6px;
	text-align: center;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	border: 2px solid #fff;
	bottom: 495px;
}

#messengerClose {
	display: none;
}

#unreadmsg {
    color: #fff !important;
    position: absolute;
    z-index: 999;
    top: -13px;
    background: green;
    width: 19px;
    border-radius: 50%;
    height: 19px;
    right: -13px;
    border: 2px solid #fff;
    line-height: 19px;
    font-size: 12px;
    display: none;
}
</style>

<div id="messengerClose">
<i class="fa fa-times" aria-hidden="true"></i>
</div>
<div id="messengerOpen">
<span id="unreadmsg"></span><i class="fa fa-comment" aria-hidden="true"></i>
</div>
<iframe src="https://forum.filmbol.org/messenger.php" id="messengerFrame"></iframe>

<script>
document.getElementById("messengerFrame").onload = function() {
	var unframe = document.getElementById("messengerFrame");
	var undoc = unframe.contentDocument;
	var unbody = undoc.body;
	var unelm = unbody.getElementsByClassName("unreadmsg")[0];
	document.getElementById("unreadmsg").innerHTML = unelm.innerHTML;
	var uncom = unelm.innerHTML;
	if(uncom>0) {
		document.getElementById("unreadmsg").style.display = "block";
	} else {
		document.getElementById("unreadmsg").style.display = "none";
	}
}

document.getElementById("messengerOpen").onclick = function() {
	document.getElementById("messengerOpen").style.display = "none";
	document.getElementById("messengerClose").style.display = "initial";
	document.getElementById("messengerFrame").style.display = "initial";
}

document.getElementById("messengerClose").onclick = function() {
	document.getElementById("messengerOpen").style.display = "initial";
	document.getElementById("messengerClose").style.display = "none";
	document.getElementById("messengerFrame").style.display = "none";
}
</script>
			
<!-- end: mybbmessenger_iframe -->

But when you uninstall the plugin, these codes are not deleted from the site for some reason and I have no idea where they are stored.

Then, if you decide to install the plugin again, you will install it, but since it leaves code in the background and you could not delete it the previous time, the new output looks like this:

        <!-- start: mybbmessenger_iframe -->

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<style>
#messengerFrame {
	height: 490px;
	position: fixed;
	right: 2%;
	border: 0;
	z-index: 99999;
	border-radius: 6px;
	border: 1px solid #999;
	bottom: 5px;
	width: 330px;
	display: none;
}
#messengerClose, #messengerOpen {
	position: fixed;
	right: 2%;
	z-index: 999;
	background: #5876ab;
	padding: 6px;
	text-align: center;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	border: 2px solid #fff;
	bottom: 495px;
}

#messengerClose {
	display: none;
}

#unreadmsg {
    color: #fff !important;
    position: absolute;
    z-index: 999;
    top: -13px;
    background: green;
    width: 19px;
    border-radius: 50%;
    height: 19px;
    right: -13px;
    border: 2px solid #fff;
    line-height: 19px;
    font-size: 12px;
    display: none;
}
</style>

<div id="messengerClose">
<i class="fa fa-times" aria-hidden="true"></i>
</div>
<div id="messengerOpen">
<span id="unreadmsg"></span><i class="fa fa-comment" aria-hidden="true"></i>
</div>
<iframe src="https://forum.filmbol.org/messenger.php" id="messengerFrame"></iframe>

<script>
document.getElementById("messengerFrame").onload = function() {
	var unframe = document.getElementById("messengerFrame");
	var undoc = unframe.contentDocument;
	var unbody = undoc.body;
	var unelm = unbody.getElementsByClassName("unreadmsg")[0];
	document.getElementById("unreadmsg").innerHTML = unelm.innerHTML;
	var uncom = unelm.innerHTML;
	if(uncom>0) {
		document.getElementById("unreadmsg").style.display = "block";
	} else {
		document.getElementById("unreadmsg").style.display = "none";
	}
}

document.getElementById("messengerOpen").onclick = function() {
	document.getElementById("messengerOpen").style.display = "none";
	document.getElementById("messengerClose").style.display = "initial";
	document.getElementById("messengerFrame").style.display = "initial";
}

document.getElementById("messengerClose").onclick = function() {
	document.getElementById("messengerOpen").style.display = "initial";
	document.getElementById("messengerClose").style.display = "none";
	document.getElementById("messengerFrame").style.display = "none";
}
</script>
			
<!-- end: mybbmessenger_iframe -->

        <!-- start: mybbmessenger_iframe -->

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<style>
#messengerFrame {
	height: 490px;
	position: fixed;
	right: 2%;
	border: 0;
	z-index: 99999;
	border-radius: 6px;
	border: 1px solid #999;
	bottom: 5px;
	width: 330px;
	display: none;
}
#messengerClose, #messengerOpen {
	position: fixed;
	right: 2%;
	z-index: 999;
	background: #5876ab;
	padding: 6px;
	text-align: center;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	border: 2px solid #fff;
	bottom: 495px;
}

#messengerClose {
	display: none;
}

#unreadmsg {
    color: #fff !important;
    position: absolute;
    z-index: 999;
    top: -13px;
    background: green;
    width: 19px;
    border-radius: 50%;
    height: 19px;
    right: -13px;
    border: 2px solid #fff;
    line-height: 19px;
    font-size: 12px;
    display: none;
}
</style>

<div id="messengerClose">
<i class="fa fa-times" aria-hidden="true"></i>
</div>
<div id="messengerOpen">
<span id="unreadmsg"></span><i class="fa fa-comment" aria-hidden="true"></i>
</div>
<iframe src="https://forum.filmbol.org/messenger.php" id="messengerFrame"></iframe>

<script>
document.getElementById("messengerFrame").onload = function() {
	var unframe = document.getElementById("messengerFrame");
	var undoc = unframe.contentDocument;
	var unbody = undoc.body;
	var unelm = unbody.getElementsByClassName("unreadmsg")[0];
	document.getElementById("unreadmsg").innerHTML = unelm.innerHTML;
	var uncom = unelm.innerHTML;
	if(uncom>0) {
		document.getElementById("unreadmsg").style.display = "block";
	} else {
		document.getElementById("unreadmsg").style.display = "none";
	}
}

document.getElementById("messengerOpen").onclick = function() {
	document.getElementById("messengerOpen").style.display = "none";
	document.getElementById("messengerClose").style.display = "initial";
	document.getElementById("messengerFrame").style.display = "initial";
}

document.getElementById("messengerClose").onclick = function() {
	document.getElementById("messengerOpen").style.display = "initial";
	document.getElementById("messengerClose").style.display = "none";
	document.getElementById("messengerFrame").style.display = "none";
}
</script>
			
<!-- end: mybbmessenger_iframe -->

Now the codes have been added 2 times as seen on the result screen. This negatively affects the functionality of the plugin and the chat screen does not appear. I have done the uninstallation and installation 3 times and I have 3 of the same codes appear on the result screen. When I delete more codes from the Chrome Review screen, everything works fine, but I could not find the root cause of the problem. Codes are not included in MYSQL. Everything looks normal in the templates.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)