Table of Contents
rssticker Plugin
Compatible with DokuWiki
Angua, Adora Belle, Weatherwax, Binky
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Based of Advanced RSS Ticker (Ajax invocation) by www.dynamicdrive.com
Demo
Download and Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Changes
- rssticker can now be aligned (2010/01/19 23:40)
Bugs / Feature Requests
Please report bugs and feature requests at the Bug Tracker.
Syntax and Usage
{{rssticker>[name],[url],[cachetime],[divId],[delay],[optionalswitch],[align]}}
[name] | name of RSS e.g. CNN News | required |
---|---|---|
[url] | URL of RSS e.g. http://rss.cnn.com/rss/cnn_topstories.rss | required |
[cachetime] | Time to cache the feed in minutes (0 for no cache) | optional; default is 600 |
[divId] | “ID of DIV to display ticker in. DIV dynamically created | optional; default is rss |
[delay] | delay between message change, in milliseconds | optional; default is 3000 |
[optionalswitch] | string to create additional logic in call back function, “date” or “date+description” | optional; default is date |
[align] | the created rssticker can be aligned, enter the words left,center or right | optional; default is left |
- if an option is not required, a comma must be placed.
- plugins/rssticker/cache/ → path to cache directory on your server from this script. Chmod 777!
- if you need two RSS feed per page so set the second with other divID eg. rss2 (RSS and RSS2 are defined)
- if more than two RSS feed per page so has the CSS needs to be expanded. Please add into → plugins/rssticker/style.css a new CSS class e.g. div.rss3class
Examples:
{{rssticker>CNN News,http://rss.cnn.com/rss/cnn_topstories.rss,1200,,4500,,,center}}
or
{{rssticker>BBC,http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml,,rss2,,right}}
or
{{rssticker>NewsFeed from The Register,http://www.theregister.co.uk/headlines.rss,,rss2,4000,date,left}}
Modifikations
title is optional
syntax.php replace
$renderer->doc .= "document.write('<div class=\"rsshead\" align='left'>$data[0]:</div>')\n";
with
if($data[0]!="") $renderer->doc .= "document.write('<div class=\"rsshead\" align='left'>$data[0]:</div>')\n";
and
if ( empty($title)) { $title = "none";}
with
if ( empty($title)) { $title = "";}
witdth 89% (none css)
replace in syntax.php
if($data[0]!="") $renderer->doc .= "document.write('<div class=\"rsshead\" align='left'">$data[0]:</div>')\n";
with
if($data[0]!="") $renderer->doc .= "document.write('<div class=\"rsshead\" align='left' width=\"98%\">$data[0]:</div>')\n";
2 Do
width in syntax: 98%, px values- stripes for blanks in input
title is optional
Discussion
Download link https://github.com/steinger/dokuwiki-plugin-rssticker/zipball/master seems broken? 04.02.2010
The link isn't broken - it works. 19.02.2010
True. Link work! You must use the whole downloadlink (http://download.github.com/steinger-dokuwiki-plugin-rssticker-53a41db.zip) 06.04.2010
It's awesome. I love simple plugins like this.
If default values for the plugin are configurable, it'll be one of the best.
— iobataya 2010/04/26 01:23
Looks great! thanks for the idea. I'd love to be able to display more than 1 item at once… ideally 3-4 items (configurable by user), with longer delay, and transition would shift them up 1 by 1 or left in a “colum-like” move… any way would be great. — berteh 2010/07/09
Does anyone have a new link for this download? All links on this page seem to give a 404.
Not working for me. It show's “Initializing ticker…”, even with the used example from CNNThat was probably the problem with allow_url_fopen was disabled into php.ini. Check the new version with solution about DokuHTTPClient — steinger 2011/01/12 23:30
Not working for me too. It show's “Initializing ticker…”That was probably the problem with allow_url_fopen was disabled into php.ini. Check the new version with solution about DokuHTTPClient — steinger 2011/01/12 23:30Same problem for me, i am using the latest version of the plugin, and “allow_url_fopen” is even allowed in php.ini.
The demo page even shows “Initializing ticker…” here. tazman 2011/02/17 14:32
Is there a problem, if there are symbols like ? or & in the URL?
I got the following error using the internal dokuwiki URL:http://localhost/dokuwiki/feed.php# Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; Tablet PC 2.0; .NET4.0C) Zeitstempel: Sun, 2 an 2011 16:01:04 UTC Meldung: Objekt erforderlich Zeile: 91 Zeichen: 1 Code: 0 URI: http://localhost/dokuwiki/lib/plugins/rssticker/rssticker.js – Harry, 02.01.2011That was probably the problem with allow_url_fopen was disabled into php.ini. Check the new version with solution about DokuHTTPClient — steinger 2011/01/12 23:30
It seems not to work on unicode character set (like Korean, Chinese, …), any solution about this?
Hi, is it possible to make it work with sites that requiress user password?
Not working for Japanese RSS feed. For instance,
{{rssticker>Yahoo Japan,http://rss.dailynews.yahoo.co.jp/fc/rss.xml,,rss2,10000,date+description,left}}
This doesn't work for my site. Any suggestion would be helpful.yoshiki 2012/08/29 15:16
Q:How to support Chinese character?(2014/09/19)
A:If the website encode by UTF-8,you can change \lib\plugins\rssticker\bridge.php:
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<rss version=\"2.0\">\n<channel>\n";
to:
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\">\n<channel>\n";
if you do that Chinese character will be shown.(Japanese may work too)