News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

No predict drop down appearing

Started by Grim Line, September 03, 2010, 12:15:21 PM

Previous topic - Next topic

Grim Line

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.

tragidy

Sounds like a specific theme issue or client side browser issue, then again the AJAX could be plain broken.
Open source Matters, the GNU GPL License is one of the most valuable text ever created by mankind.
Support all open source projects when possible as their concepts are paving the future. ~ tragidy

Grim Line


Grim Line

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.

Advertisement: