how parsing the XML generate by RSS module ?
psychonaute
![]()
Joined: 2011-05-30
Posts: 2 |
![]() |
Hello everybody and congratulation for your work and keep up the community. i'm working on fonction on my website which will generate a newsletter from the different elements (news, podcasts, photo, forum's topics). The news and the podcasts part was my creation so it was easy to set them for the newsletter, for the lastest topics of my phpbb3 forum I adapt a script which generate rss to make it generate the newsletter. But for the gallery2 it seems much more complicate to get back from the database the information I need. title, description, url thumbnail, url of the item. I have thought to parse the XML file generate by the RSS module. But as the adress to access to the rss feed (http://www.toutenmarchant.com/gallery2/main.php?g2_view=rss.SimpleRender&g2_itemId=7) is not pointing on a direct XML file i'm not able to parse it with simplexml_load_file function. i'm stuck, out of idea, If you have some don't hesitate. world tour on foot 2008-2014 |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
psychonaute
![]()
Joined: 2011-05-30
Posts: 2 |
![]() |
Thanks for those leads but with the parameters avaible in this 2 modules it seems impossible to display the image added after a precise date. For use mediablock module in a newsletter i would need to display all the pictures which has been added after the date of the previous newsletter. any lead ? |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
mediaBlock could certainly be modified to display images since dateXXXX. But to display them in an emailed newsletter you would be sending php and that won't fly. -s |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Also currently pubDate uses the item's Modification Timestamp but you could also switch it to: line ~546 mediaRss.php -s |
|