23 comments found.
Hi, please can you tell me if this news ticker can update the rss feed content without the page being refreshed to reinitialize the script? I’m looking to use it with a digital signage web based service on a TV. Thanks.
Hello absent42,
Yes, the script when the cycle of news ends performs an AJAX request to get the updated data from the source (the RSS feed in case it’s the selected source). This is performed without a page refresh.
Let me know if you have any other questions.
Hi, how do i hide second line from featured news? Please check screenshot below?
Hello ilovecoding,
do you want to completely remove the feature news excerpt for all the news and modify the featured news section height? Please contact us with the details with the “Support” tab above so we can reply to you via email with the code changes required or alternatively see if we can implement a dedicated option to apply the behavior.
Thank you.
Can you fix twitter feed?
Hello ilovecoding,
to receive the data from Twitter please follow the procedure described in the Generate the news from Twitter section of the plugin manual.
If you have any issue with this procedure above please contact us privately via the Support tab and include the details of your current configuration, so we can provide you a precise answer.
Let me know if you have any questions.
Hello , Can your software work on Wix ? I saw a JS in wix .
Hello husonchow,
for a precise answer I recommend you to ask to the Wix support if you can add JavaScript file to Wix website.
Please note that if you will not be able to actually use this item in your deployment environment we are available to provide you refund.
Hope this helps.
Hello your code is interesting but i want to know what order software can i used this with? do i have to have professional new software or Facebook live news live streaming will? help me with those knowledge please thanks
Hello allmybox, I’m sorry but I don’t understand your question.
im looking for this. yet not so many comments of late is it still supported
Hello boldylee, the plugin is supported. Let me know if you have any questions.
Hello, I purchased this Ticker and it works great. How would I have the ticker display in a different section of the webpage? (Ticker would be about 1/3 from the top of the page) Thank you
Hello sonicdiscovery,
the ticker should be positioned only as fixed element (position: fixed) and should have a width equal to the browser viewport width, because the JavaScript part make use of the browser viewport width to calculate the movement of the sliding news.
The news ticket CSS can be customized with the selectors available in the television-news-ticker/css/newsTicker.css file.
Hope this helps. Let me know if you have any questions.
Hello, I am interested in this ticker, is there a way to make a ticker that for example starts with my RSS feed of my blog and then shows the twitter and then loops back or is just a single source ?
Hello neavilag,
if you want custom information displayed in the news ticker you can dynamically create the json souce of the news based on your needs with a scripting language. The json structure that should be used is available in the plugin manual.
Hope this helps. Let me know if you have any questions.
hello where we control the sliding speed ? thnak you
Hello fotografo123,
with the moveInterval option. 10 is the default value, with a low value (e.g. 5) the speed is increased, with an high value (e.g. 15) the speed is decreased.
Hope this helps. Let me know if you have other questions.
great but wich file i can edit this? and also the clock colour..ty so much..perfect support
Hello fotografo123,
include your customization options during the initialization of the news ticker. In this example the moveInterval property is used to slow down the news ticker:
<script>
newsTicker.initialize({
newsDataJson: 'data.json',
moveInterval: 5,
});
</script>
The clock can be customized with the clockColor and clockBackgroundImage properties. You can find a complete list of the initialization options in the plugin manual.
Hope this helps.
it helpss a lot..thank you so much.
thank you..how can edit the option for the news always slider..the cycle, on desktop my news slider cycle about 4times, and on mobile only 2 times..i want permanent news cycle..is possible..please tell me how..
Hello fotografo123,
the cycles are permanent (until manually stopped by invoking the destroy() method). If you want an answer specific for your case please contact us via the “Support” tab above and include a link to your page.
Thank you.
I want to use the News Ticker on my website kumbhindia.in , which is the correct format to be purchased ? Can I use Google Alerts in News Ticker ?
Hello raajgulati,
which is the correct format to be purchased?
If your website is powered by WordPress you should purchase Live News. If your website is not powered by WordPress you should purchase Television News Ticker.
Can I use Google Alerts in News Ticker ?
The RSS generated by Google Alerts is not support.
Hope this helps, if you need more info feel free to ask.
Why does the rss php feeder not wwork with reddit rss feeds? www.reddit.com/.rss
Hello larceniii,
thank you for having reposted your question in the right item, this allowed me to verify the license associated with the purchase.
This page www.reddit.com/.rss generates an XML document that is not an RSS feed. An RSS feed should include specific tags and in this tutorial from W3Schools you can see exactly which tags should be present in an RSS feed. I recommend you to use an XML prettifier like this one to manually verify the content of an XML document.
Hope this helps, if you need more info feel free to ask.
Well I found out that reddit.com/.json is also available and I’m rewriting it via php and my json looks good but I’m getting a javascript error:
Uncaught TypeError: Cannot read property ‘length’ of undefined at addNewsToDOM (newsTicker.js:1) at XMLHttpRequest.receiveNews (newsTicker.js:1) addNewsToDOM @ newsTicker.js:1 receiveNews @ newsTicker.js:1 load (async) requestNews @ newsTicker.js:1 applyNewsTicker @ newsTicker.js:1 (anonymous) @ newsTicker.js:1 load (async) bindEventListeners @ newsTicker.js:1 initialize @ newsTicker.js:1 (anonymous) @ index.htm:10 newsTicker.js:1 XHR finished loading: POST localhost\data.json
Hello larceniii,
the AJAX response should be provided in this format:
{
"featurednews": {
"newstitle": "",
"newsexcerpt": "",
"url": ""
},
"slidingnews": [
{
"newstitle": "",
"url": ""
},
{
"newstitle": "",
"url": ""
}
]
}
If the JavaScript part generates and error it means that the JSON answer is not provided in this format.
If you want that I inspect for you the JSON answer that you generated with your custom PHP script contact me via the support tab and link me the URL with the customized news ticker.
Please note that customization services are not available in the item support but if you need help with your customization I’m available to provide you an answer (but clearly not ready-to-use code).
Hope this helps.
Can there be more than 1 featured news item returned?
Hello larceniii, I just replied to your email. For technical support please continue on that thread. Thank you.
Hello, can this work off of just raw JSON data instead of a JSON file? I want to do an ajax call and use this ticker to generate news. Please advise.
Hello wilburncreative,
you can associate the news ticker with a JSON file or with a dynamic JSON file generated for example with PHP as long as it’s a valid JSON (with the correct header) and its content has the format described in the “News Sources” section available in the plugin documentation.
Hope this helps, if you need more info feel free to ask.
I was hoping to have this read from a JSON object I created from an ajax call, not from a JSON file.
Hello wilburncreative,
I confirm you that you can read from a JSON object created from an AJAX call, that’s exactly what I was referring to in the previous answer with “a dynamic JSON file generated with PHP”.
If you need more info feel free to contact me directly via the support tab available in this page.
Hello, thanks for your work !
I’ve suggestion: When calling ‘requestNews’, if the data list result is empty, the ticker does not make any more requests.
In that case, we could imagine a timer variable that forces a request to check if there are new results?
What do you think ?
After different tests, I think this mechanism is already existing.
However I had an error in the console when the first list of results is empty (eg via the file database.php).
So, database.php return this result: { “Featurednews”: {}, “slidingnews”: []}
This causes an error in NewsTicker.js file: TypeError: featurednews.newstitle is undefined (line 779).
The error comes from this line:if (featurednews.newstitle.length> 0 && featurednews.newsexcerpt.length> 0) {
To avoid this, I added the check that the featurednews object is not empty (line 777).
Replacement of:if (featurednews !== undefined) {
by :
if (featurednews !== undefined && Object.keys(featurednews) .length !== 0) {
Reference: https://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object
I let you check, said me if I was not clear enough.
Thank you.
Hello mytom,
in general database.php is not thought to return no news at all but should always return the news currently displayed, but as you can see the various files are heavily commented to let the customers customize the behavior. So if for any reason you want to return a json response with no data and then add more validations in the JavaScript part and/or for example reset the timer used to updated the news (to stop the AJAX requests used to update the news) you are free to do it.
If you have any questions to achieve a specific customization I’m available.
Anyway I saved your suggestion to stop the news ticker updates based on a signal received from the back-end in the AJAX response. For example our news ticker for WordPress already do this when the “Live” flag of the news ticker is set to “No”.
In the previous answer I mentioned that you have to clear the timers to stop the updates, this is not actually correct because the timers stop the movements of the news. What should be done instead might be for example set a specific state when you send the “Stop Updates” signal from the back-end and verify this state when appropriate.
OK I understand, thank you!
I like the idea of a flag for the live mode. is it planned to implement it in this standalone version?
Hello mytom, I’ve added this feature in our issue tracker but I can’t guarantee or provide you a release date at the moment.
No problem, thank you
Hi, i just purchased this item and it looks awesome. I have few questions:
1. How to make that so news link open in new tab instead of current tab.
2. Earlier you mentioned about “destroy() function”, do i need to update that in my code too? I use rss.
3. How to change time to AM and PM instead of 24 hours?
Hello ilovecoding,
1. How to make that so news link open in new tab instead of current tab.
You should pass this options during the initialization:
slidingNewsOpenLinksNewTab: true
2. Earlier you mentioned about “destroy() function”, do i need to update that in my code too? I use rss.
The destroy() method is required only if you intend to remove the news ticker from the DOM and stop the cycles used to update the news. If you need it make sure that you have the latest version available for download in the marketplace.
3. How to change time to AM and PM instead of 24 hours?
In the newsTickerUtility.js file there is method named getTime(). Here the time is generated. For custom formats the value returned by this method can be changed based on your needs. Before modifying the format please note that the there isn’t an option to set the time in AM/PM format because the horizontal space is limited in the box used to display the time (news ticker used by television station don’t use the AM/PM format).
Hope this helps, if you need more info feel free to ask.
Hello,
I suggest 2 ideas to enrich your tool:
‘change’ method : Like the ‘destroy’ method, a ‘change’ method that lets ticker read a new list of options and updates instantly the ticker.
vertical scroll : An option to scroll news in vertical mode (like
Breaking News Tickerhttp://preview.codecanyon.net/item/breaking-news-ticker/full_screen_preview/8321816?_ga=2.188946219.1057041697.1516874411-1020293011.1514237897 or
jQuery Advanced News Tickerhttps://www.jqueryscript.net/demo/Flexible-jQuery-Vertical-News-Ticker-Plugin-Advanced-News-Ticker/ )
What do you think about it ?
Hello mytom,
‘change’ method : Like the ‘destroy’ method, a ‘change’ method that lets ticker read a new list of options and updates instantly the ticker.
A change method is certainly useful and will be probably added in the next update.
vertical scroll : An option to scroll news in vertical mode
With Television News Ticker the width of area used to scroll the news is unknown in advanced and based on the width of the viewport of the user.
For this reason a vertical scroll is not appropriate, with devices with a limited width the complete sentence will no be visible, with devices with a large width there will be a lot of empty space.
yes you’re right, thank you !
Hi, Could you create API methods to manage the tool? At least destroy method, I can not stop the ticker properly for example. Is it possible?
Hello mytom,
I saved your suggestion and I’ll get back to you in the next few days with this feature, I think that it might be actually useful also for other customers.
Can you please confirm that your request is to basically remove the news ticker from the DOM and stop the JavaScript timer (used to perform the AJAX requests) with a parameter passed through the JSON data normally used to update the news?
Thank you.
Thank you!
Newsticker is started by ‘newsTicker.initialize(options)’. I would like to do ‘newsTicker.destroy()’ to remove completely (stop timer updates and remove it from DOM).
A ‘change’ method could also be interesting to load new options.
Hello mytom,
I just want to inform you that I’m currently working on the update and will be released this week on the marketplace.
Great thank you!
Hi,
I saw your change for the destroy method, thank you. but I have the impression that everything is not destroyed.
Example: if i do 2 javascript functions ‘start_newsticker’ and ’’stop_newsticker’, when i stop and I restart, the time is no longer displayed.
Because ‘states.clockInterval’ is cleared, but its value is not initialized to ‘false’ (as in the original initialization).
Do you see what I mean?
Hello mytom,
thank you, I’m going to verify this. I’ll get back to you with an answer this weekend.
Hello mytom,
you are correct, I confirm you that the correct code of the destroy() function should be:
destroy: function(){
//Clear the interval used to move the sliding news
clearInterval(states.movingTicker);
states.movingTicker = false; //NEW LINE
//Clear the interval used to update the clock
clearInterval(states.clockInterval);
states.clockInterval = false; //NEW LINE
//Remove the news ticker from the DOM
document.getElementById('tnt-container').remove();
//Remove the open/close button
document.getElementById('tnt-open-close').remove();
},
I recommend you to manually correct the code of this function, in the next update this change will be added.
Thanks!
Hello, i think there is another problem with the ‘destroy’ method.
You use ‘document.head.appendChild(style)’ to add style in head section when you create the ticker. But the destroy method does not remove this style.
So when i destroy and restart ticker many times, my ‘head’ section stack new style. It causes display problems.
Can you check that?
thanks.
Hello mytom,
thank you. I planned to work on an update the next week. You will receive the usual automatic email from CodeCanyon when it’s available.
Hello, would you have a date for the next update?
thank you!
Hello mytom, will be released this week. Sorry for the delay but I had to work on other products.
Can you do multiple RSS feeds or does it have to be one? E.g. BBC and CNN?
Hello tholmgren,
in different page you can initialize the news ticker to use different RSS souces.
If instead you want that the same news ticker includes news from different sources you have to manually parse the RSS feeds you are interested in and generate the proper JSON data for the news ticker. More information on the structure of the JSON source that should be provded to the news ticker are available in the plugin manual.
Hope this helps, if you need more info feel free to ask.
very nice plugin but it looks hard to use for people like me
will this work for shuttle hours “lets say minibus goes point A to B at 08:00am | C to D 09:00am etc..” and slowly slides?
Hello sametoxxo,
yes, you can certainly use it to generate your custom news (that in your case are messages like “minibus goes point A to B at 08:00am”). You can also set a custom sliding speed if you want.
With this JavaScript/PHP version you have four ways to generate the news:
- Generate the news form a custom database table.
- Generate the news from a JSON source (the exact format is specified in the documentation).
- Generate the news from an RSS feed.
- Generate the news from a Twitter account. For example you can create a Twitter account only for this purpose if you want. (your tweets are automatically added to the news ticker)
If you website uses WordPress as a CMS I recommend you to consider also the WordPress version, where you can manually add the news from a the back-end like I did in this video tutorial.
Hope this helps, if you need more info feel free to ask.
OMG i bought the wrong one! i did not see your message lol i actually sent you a message about my issue and while browsing i saw your comment!
Hello sametoxxo,
I just replied to your email with the instructions to receive a refund, so you can then purchase the correct version for WordPress if you want.
Hope this helps.
I purchased the correct one! THANK YOU
Nice work. Best luck with sell 
Hello, can I have multiple per page?
BTW Looks great good luck with sales!
Hello larceniii,
you can’t use multiple news ticker per page because the news ticker generated by this plugin has a fixed (in terms of css) position.
Hope this helps, if you need more info feel free to ask.
Yea I think I can work around that or with it. Thank you!
Hello larceniii,
please note that also the JavaScript part is made to work with a single news ticker per page. I do not recommend you to purchase this plugin if you are planning to use it for multiple news tickers in the same page.
Hope this helps.
I have another question: some feeds have a featured image with the feed item. Can I get that img url data for each news item that is currently on display on the screen?
Hello larceniii,
sure, with the PHP file used to retrieve the news from an RSS Souce (which is by default rss.php) you have return the img url in the JSON response. Then once you have the img url on the front-end you can add the images in the news ticker with the newsTicker.js file.
Please note these are only general instructions, this behavior should be entirely manually implemented.
If you need more info feel free to ask, in case please contact me directly via the support tab for technical questions.