Skip to main content
News ticker header not ticking ? Started by D.M. · · Read 2693 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

News ticker header not ticking ?

Hello there community !

I have noticed that the news ticker on my forums is not ticking, it only changes sometimes when the page is refreshed ? Is this a special function or addon ?

Thanks in advance!

Re: News ticker header not ticking ?

Reply #1

This appears to be a regression:bug:

To fix this you will need to edit the index.template.php file for your theme(s).  In that file you will find a function function template_news_fader  then find the following

Code: (find) [Select]
	addInlineJavascript('
document.addEventListener("DOMContentLoaded", () => {
if (typeof Elk_NewsFader !== \'undefined\') {
$(\'#elkFadeScroller\').Elk_NewsFader(' . (empty($settings['newsfader_time']) ? '' : '{\'iFadeDelay\': ' . $settings['newsfader_time'] . '}') . ');
}
});', true);
and replace it with this.
Code: (replace) [Select]
	addInlineJavascript('
document.addEventListener("DOMContentLoaded", () => {
if (typeof $.fn.Elk_NewsFader !== \'undefined\') {
$(\'#elkFadeScroller\').Elk_NewsFader(' . (empty($settings['newsfader_time']) ? '' : '{\'iFadeDelay\': ' . $settings['newsfader_time'] . '}') . ');
}
});', true);

All we are doing is adding $.fn. in front of Elk_NewsFader .... the error is that Elk_NewsFader is a jquery function so we need to look for it in the jquery space.