Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Grim Line on September 03, 2010, 12:15:21 PM

Title: No predict drop down appearing
Post by: Grim Line on September 03, 2010, 12:15:21 PM
SMF 2.0 RC3

The drop down section on my forum isn't working. I am using a custom theme and it did work one point. What i mean by "drop down section" is like if i go to send a PM and i begin to type the users name, it used to predict it. Now it doesn't.
Title: Re: No predict drop down appearing
Post by: tragidy on September 03, 2010, 12:20:59 PM
Sounds like a specific theme issue or client side browser issue, then again the AJAX could be plain broken.
Title: Re: No predict drop down appearing
Post by: Grim Line on September 03, 2010, 12:25:18 PM
Any ideas on a fix? :\
Title: Re: No predict drop down appearing
Post by: Grim Line on September 04, 2010, 05:51:21 AM
I have found out what the issue is. Its my Enotify Mod. When i add the following code to my custom themes index.template.php

// Enotify
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/jquery.jgrowl.css" />
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/enotify.js"></script>
<script type="text/javascript">
(function($){
$(document).ready(function(){
        $.getJSON("', $scripturl, '?action=enotify",
                function(data){
                  $.each(data.items, function(i,item){
                    $.jGrowl(item.message, { header: item.title, life: ', $modSettings['enotify_life'], ' });
                  });
                });
setInterval( function() {
          $.getJSON("', $scripturl, '?action=enotify",
                  function(data){
                    $.each(data.items, function(i,item){
                      $.jGrowl(item.message, { header: item.title, life: ', $modSettings['enotify_life'], ' });
                    });
                  });
} , ', $modSettings['enotify_refresh'], ' );
});
})(jQuery);
</script>';
 



It's stops stuff from working.