MyBB Community Forums

Full Version: [Please help] MyShoutbox 1.6 stuck on "loading..."
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,I recently updated my template and now this shoutbox only shows "loading..." and I can't post anything unless I'm in mobile version mode.
Does anyone knows how to fix this?
Thanks.
Make sure you uploaded all the necessary JavaScript files.
Everything worked normally,all I did was disabled and enabled the plugin.All files are uploaded in the right places.
If I try to post a message I can see "undefined" posted in mobile version.
^ forum URL + test user account required to check it ...
AND wait for someone experienced to check & respond with better suggestions
I fixed it.I found this in headerinclude:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
I removed it because there is allready "<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>" included before and now the shoutbox works fine.
Thanks for your help anyway.
(2011-10-27, 06:23 PM)mindaugas355 Wrote: [ -> ]I fixed it.I found this in headerinclude:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
I removed it because there is allready "<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>"
Which is why people (plugin-writer type people) should understand to test for things first. Use include_once and require_once and test whether jQuery is defined before loading it. (There are 3 sources that are commonly used - Google, MS and a local copy - all 3 should be there, just in case.)

Your solution, though, is perfectly valid - for your installation. The problem probably wouldn't have occurred if you didn't have another plugin that unconditionally loaded jQuery.
You can't use include_once or require_once in HTML.
I would like to piggyback on this. I'm trying to do something else with jquery, and the shotbox stops working as described whenever I include jquery. FYI - jquery is not included anywhere else on my site, so It's not a conflict. It seems to me that myShoutBox simple doesn't like jquery for some reason.

Is there any way I can keep myshoutbox working but include jquery on my site for other purposes?
Trying to get this working aswell,
I have a twitter feed active which uses jquery.min

When jq.min is loaded the chat doesn't work for me.