Ok, after some fiddling and test i’ve completed my RSS block display
for rss feeds, attached.
Some note:
quick code, there’s no copyright banner but consider it GPL;
i used lastRSS (http://lastrss.webdot.cz/) as a rss parser library,
i’ve found id both simple and small, with less dependencies… i don’t
know if there’s some better choice;
i think there’s some better way to setup a temporary directory for
cache of feeds insted of hardcoding it in source
i think there’s some better way to get phpgw/egw charset (used to
convert feeds to) instead of hardcoding on the source.
Probably i’ve also done a dozen of php errors.
But seems work.
–
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia’’ http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
Grazie parlamento europeo!
http://punto-informatico.it/p.asp?i=53925&r=PI
to be included in the official sitemgr-stuff we need to think about a few
points:
GPL Header is nessesary
FIXME’s need to be solved first
lastRSS class should be inserted into the api or news_admin, or at least
pasted into the module itselve at first.
maybe we should name your module rss-import, as maybe we also want to have
an export module later (the current rss-export isn’t verry nice)
To answer your question:
*charset is set in some $egw_info[‘server’][system_charset’] or simular
as cache directory u can make a subdir in the “/outside/root/dir”. you’ll
find it also in the $egw_info array
Some suggestion:
If one clicks to one of the news, one gets rederected to the news_site.
Maybe it’s worthy of an option to target _blank in the links, or display it
in a iframe on teh sitemgr-site.
to be included in the official sitemgr-stuff we need to think about a few
points:
Sorry but my php and egroupware knowledge are so little that i think
i’ve spent all my knowledge building something that work.
I’m proud of it, but exaust.
Consider this little piece of code a ``donation’’ to egroupware
developer, and fix it as it is needed.
–
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia’’ http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
Grazie parlamento europeo!
http://punto-informatico.it/p.asp?i=53925&r=PI
However, I am totally new to eGroupWare and hence, I think I don’t quick understand how to use this module. Where can I select it in the SiteMgr-Module? How can I tell the SiteMgr, that the site is an RSS feed?
Thanks!
Ok, after some fiddling and test i’ve completed my RSS block display
for rss feeds, attached.
Some note:
quick code, there’s no copyright banner but consider it GPL;
i used lastRSS (http://lastrss.webdot.cz/) as a rss parser library,
i’ve found id both simple and small, with less dependencies… i don’t
know if there’s some better choice;
i think there’s some better way to setup a temporary directory for
cache of feeds insted of hardcoding it in source
i think there’s some better way to get phpgw/egw charset (used to
convert feeds to) instead of hardcoding on the source.
Probably i’ve also done a dozen of php errors.
But seems work.
–
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia’’ http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
Grazie parlamento europeo!
http://punto-informatico.it/p.asp?i=53925&r=PI
AFAIK development version of egw will have better support for these
stuff, mine is a hack… ;)))
However, I am totally new to eGroupWare and hence, I think I don’t quick
understand how to use this module. Where can I select it in the
SiteMgr-Module? How can I tell the SiteMgr, that the site is an RSS feed?
copy the module and rss library on sitemgr module/block directory,
customize it a bit (path, …) and then on sitemanager reload the list
of module.
Then simply use it. The module itself ask for a feed URL.
–
Per trovare qualcosa sui siti di Ms devi usare Google
(Simo Sorce, da samba-it)
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642