(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