134 - Create a Joomla! v 1.5 Module for Digg List Stories

Google's Highly Open Participation Program tries to get young students into Open Source and Joomla! specifically. Everyone is welcome, there are not limits. You can be a coder, documenter, tester, translator to help out. Jump in and start helping!
Locked
santix
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Dec 06, 2007 7:36 pm

134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by santix » Thu Dec 06, 2007 11:31 pm

Create a Joomla! v 1.5 Module allowing the site developer to set a topic
parameter. The module should list the most recent stories based on that topic.
Hi everyone, my name is Santiago. I'm a 16-year-old-student from Buenos Aires, Argentina.
I like Open Source software, specially Gnu/Linux based systems.
Though I've never worked very much with Joomla I have some previous experience with PHP (I also visit Digg regularly, so somehow I'm a little familiarized with those two things :P)

Well...I'll try to do my best in this issue and I hope it's useful for you.
Congratulations for the great product you maintain day by day and thanks for the oportunity.
Last edited by AmyStephen on Wed Jan 09, 2008 4:36 am, edited 1 time in total.

santix
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Dec 06, 2007 7:36 pm

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by santix » Fri Dec 07, 2007 10:53 pm

I'm having some doubts about the xml parsing part. Who should I contact?

ibnhafsun
Joomla! Hero
Joomla! Hero
Posts: 2318
Joined: Fri Aug 19, 2005 9:41 pm
Contact:

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by ibnhafsun » Sat Dec 08, 2007 12:19 am

Hi, Santiago, I'll try to find someone with more knowledge than me.

Do you mean your_module.xml file or are you using xml to retrieve stories?

If you do mean your_module.xml file you can set parameters (with name, type, default value, description)...
...nam qui dabat olim imperium, fasces, legiones, omnia, nunc se continet atque duas tantum res anxius optat, panem et circenses...
http://www.todosjuntos.org
http://inmo-e.com

santix
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Dec 06, 2007 7:36 pm

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by santix » Sat Dec 08, 2007 12:24 am

I'm using XML to retrieve the stories from the digg api.
The thing is that it seems to be a hard thing to do with php 4 (to parse the data from the xml), and all the simple solutions that I found where using php 5 functions or modules. But as Joomla runs on php 4 I think this plugin should have support for it.

ibnhafsun
Joomla! Hero
Joomla! Hero
Posts: 2318
Joined: Fri Aug 19, 2005 9:41 pm
Contact:

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by ibnhafsun » Sat Dec 08, 2007 12:27 am

Yep, you'll need CURL, I guess (I am not a programmer).

I am going to contact someone with more knowledge than me to mentor you. Thanks for understanding and thanks a lot for joining the GHOP program ;)
...nam qui dabat olim imperium, fasces, legiones, omnia, nunc se continet atque duas tantum res anxius optat, panem et circenses...
http://www.todosjuntos.org
http://inmo-e.com

ibnhafsun
Joomla! Hero
Joomla! Hero
Posts: 2318
Joined: Fri Aug 19, 2005 9:41 pm
Contact:

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by ibnhafsun » Sat Dec 08, 2007 12:41 am

I´ve sent an email to a developer.

I am sure you have read this:
http://dev.joomla.org/component/option, ... simplexml/
...nam qui dabat olim imperium, fasces, legiones, omnia, nunc se continet atque duas tantum res anxius optat, panem et circenses...
http://www.todosjuntos.org
http://inmo-e.com

santix
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Dec 06, 2007 7:36 pm

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by santix » Sat Dec 08, 2007 3:44 am

ibnhafsun wrote: I´ve sent an email to a developer.

I am sure you have read this:
http://dev.joomla.org/component/option, ... simplexml/
Yes, seems to be what I need, but I'm having some difficulties to make it work.

User avatar
ianmac
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4784
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by ianmac » Wed Dec 12, 2007 7:46 am

Can you indicate what you have gotten and what you haven't?  If you have the XML back from Digg, then JSImpleXML should allow you to parse it...

Can you perhaps ask more specifically what you're stuck with?

Ian

santix
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Dec 06, 2007 7:36 pm

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by santix » Fri Dec 14, 2007 1:29 am

ianmac wrote: Can you indicate what you have gotten and what you haven't?  If you have the XML back from Digg, then JSImpleXML should allow you to parse it...

Can you perhaps ask more specifically what you're stuck with?

Ian
I do have the XML back from Digg.
What i'm stuck in is taking the useful info from the xml to variables, which would be used to show the titles with links to each story.

User avatar
ianmac
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4784
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by ianmac » Fri Dec 14, 2007 3:43 am

Have you tried something like:

$xml = &JFactory::getXMLParser( 'Simple' );
$xml->loadString( $xmlString );  //  where $xmlString is the result from digg

$root = &$xml->document;

$images = &$root->getElementByPath( 'images' );

echo $root->name();

etc... etc...

Ian

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by AmyStephen » Thu Dec 20, 2007 3:48 am

Santiago -

Would you like to select a different task? Or, are you still working on this one? Either way, it's okay. If you could let us know, that would be great. We'd like to reopen the task if you are not interested.

Thanks much!
Amy :)

santix
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Dec 06, 2007 7:36 pm

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by santix » Sat Dec 22, 2007 8:52 pm

I'm still interested, I've been trying but I'm still stuck.
A few days ago angelfranco sent me a PM, I sent him the code and he told me he would see it and help me, so I'm waiting him.

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by AmyStephen » Fri Dec 28, 2007 5:56 am

santix -

Can you articulate what problem you are having? Maybe someone else can help. Try to describe what help is needed, and we can see if someone can help you.

Thanks!
Amy :)

santix
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Dec 06, 2007 7:36 pm

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by santix » Wed Jan 09, 2008 2:39 am

Well, I think I'd better leave my place to somebody else.
Please re-open the task, sorry I couldn't complete it.

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 134 - Create a Joomla! v 1.5 Module for Digg List Stories

Post by AmyStephen » Wed Jan 09, 2008 4:36 am

No problem, thanks so much for letting us know!

I'll reopen it for someone else

Amy :)


Locked

Return to “Google's Highly Open Participation Contest”