Sitemgr block for rss feeds

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 :wink:
  • 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. :wink:

–
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

Hi Marco,

i just tested your Module, its loveley i like it :stuck_out_tongue:

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 :slight_smile:
  • 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 :slight_smile:

  • 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.

Thanks four your effort
cu
cornelius


This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642


eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users

Mandi! Cornelius Weiss
In chel di` si favelave…

i just tested your Module, its loveley i like it :stuck_out_tongue:

Oh, many thanks. :wink:

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. :wink:

Consider this little piece of code a ``donation’’ to egroupware
developer, and fix it as it is needed. :wink:

–
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

This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642


eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users

Hi Marco.

I was looking for something like this - thanks!

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 :wink:
  • 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. :wink:

–
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

[/quote]

Mandi! Mantis
In chel d? si favelave…

I was looking for something like this - thanks!

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 :slight_smile:
(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


eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users