MyBB Community Forums

Full Version: Clickable Smilies don't work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have read all I can find and have not fixed the problem. I re-installed editor.js. They appear when the code is typed in, but do not drag into or click into post.
I am using MyBB 1.6
URL http://chamownersweb.net/forums/
test account: user = test, password = checker
It's because you've got jQuery included in your code and it is conflicting with the MyBB javascript, none of your javascript will be working, not just the clickable smilies. Add:

<script type="text/javascript">
jQuery.noConflict();
</script>

to your headerinclude template after jQuery is included, and then change all $ to jQuery in all jQuery code that's been added.

jQuery is the cause of quite a lot of javascript problem so I'm not sure what threads you found if jQuery wasn't mentioned in any of them...
(2011-07-31, 02:35 PM)MattRogowski Wrote: [ -> ]It's because you've got jQuery included in your code and it is conflicting with the MyBB javascript, none of your javascript will be working, not just the clickable smilies. Add:

<script type="text/javascript">
jQuery.noConflict();
</script>

to your headerinclude template after jQuery is included, and then change all $ to jQuery in all jQuery code that's been added.

jQuery is the cause of quite a lot of javascript problem so I'm not sure what threads you found if jQuery wasn't mentioned in any of them...

I searched all of the smilies not working posts.
When I read the Blue Lust theme XML page the code is in there already

Here's the code...
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {

jQuery("#{$forum['fid']}description").hide();

jQuery("#{$forum['fid']}name").mouseover(function() {

var content = jQuery("#{$forum['fid']}description").text();

if (content === "") {} else {
jQuery("#{$forum['fid']}description").fadeIn('slow', function() {
// Animation complete
});
}

});

jQuery("#{$forum['fid']}name").mouseout(function() {
jQuery("#{$forum['fid']}description").stop(true, true).fadeOut('slow', function() {
// Animation complete
});

});

});
</script>]]></template>
<template name="headerinclude" version="1602"><![CDATA[<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>

Where do I find the headerinclude template?
BTW, the smilies were not working before I installed the Google language translator which is where the JQuerry came from.

Thanks
You must be looking at a different template set because none of that is in the theme you're using. The headerinclude template is in the Ungrouped Templates set.
Thanks for replying.
I think I just did that , still not working.
What else you got?
It seems jQuery is actually being included 3 times, didn't see that before... it's being included twice in the headerinclude template, and once in the header it seems. Remove two of these and see if that makes a difference. if not, there's still jQuery code which is using $ in jQuery, which need to be changed like I explained above.
I don't see it in the header template. I deleted one of the two from the headerinclude and there were no $ in the jquery that I could find.
Still not working
Any other ideas? I have been building my forums for about a week, and so far I have overcome a ot of obstacles.
I installed the chinese language pack and thought I was goingto have to start over. Turned out I had to delete 3 files and all was good.
I think MyBB is awsome and the support is phenominal. If I could fix my smilies i would be in hog heaven
I'm not sure what happened the first time, but I just found both jquery lines in the headerinclude again and my insertion of no conflict missing. I redid and its working now.
Thanks Matt
hey Matt,
i am facing the same problem....
i posted below thread....can u please help me?
http://community.mybb.com/thread-131511.html

thanks in advance....
Please do not bump a thread well over a year old just to link to your thread, it's unfair on other people who just wait for their thread to be answered.