TinyPortal

Development => Support => Topic started by: Fallen05 on September 05, 2008, 11:35:18 PM

Title: Rss Reader / Aggregator
Post by: Fallen05 on September 05, 2008, 11:35:18 PM
Hello!

I've been on and off using TP for quite some time now (easily one of the best free pieces of software i've seen on the net).

I do have one small problem though, i'd like to be able to have the Articles section of my home page parse an RSS feed or 2, does anyone know of a mod or a technique to do this?

I'm pretty good at learning, though my current php knowledge is pretty bad, i can usually find my way around it to make changes allright.

Thanks in advance
Michael

(Also.. I did search the forum's.. couldn't see anything)

To the grammar and spelling police: Sorry... :)
Title: Re: Rss Reader / Aggregator
Post by: Ianedres on September 05, 2008, 11:58:14 PM
I actually made a php article and implemented Google's AJAX Feed API (link (http://code.google.com/apis/ajaxfeeds/documentation/)) for some flexibility...

Dynamic drive has some good examples of how to get some content fast, since Google isn't exactly 'entry-level' programming (at least for me!).

http://dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm
Title: Re: Rss Reader / Aggregator
Post by: Fallen05 on September 06, 2008, 12:39:29 AM
Thanks for the quick reply Ianedres.. though i've no idea how i'm going to get it to work (i'm getting the concept.. i just suuuck at coding :D )

On that note, can you create new pages in TP? out of curiosity?
Title: Re: Rss Reader / Aggregator
Post by: Ianedres on September 06, 2008, 01:00:15 AM
I personally prefer to write php in DreamWeaver, which gives me features for error-checking, indention, and so forth. I then use the php article in TinyPortal with an include() statement to load the page...   seamless integration.

By using the 'query title', I can refer to the page directly through the path to my forum's index.php, followed by ?page=xxxxxx. You can then use that format to add content to your site quickly and easily.

As for the Google Feed API, you can play around with that and work it into your site with a little effort.
Title: Re: Rss Reader / Aggregator
Post by: Fallen05 on September 06, 2008, 05:05:25 PM
I kinda gave up :) i'll admit (kept getting unexpected parse error..)

I might well give it another go, i'm not sure if i was supposed to be modifying the templates index php, or the indexphp of TP/SMF.

Title: Re: Rss Reader / Aggregator
Post by: Ianedres on September 06, 2008, 08:43:48 PM
You do not have to edit any of the TP or SMF files to add content- just add an article through the admin panel.

Your could write your script outside of TP and get it working on your server first. Once you get the desired result, you can work it into the TP article system.
Title: Re: Rss Reader / Aggregator
Post by: Bluto on September 06, 2008, 09:34:18 PM
Correct me if I'm wrong here Ianedres, but what he's saying Fallen05 is,
that he creates his pages and scripts using Dreamweaver on his comp that's hooked into an internal "server" if you will, like Easyphp or Xammp.These programs create servers and databases on your comp so you can test things before you upload them.This way he sees if his code is working. When he gets the results he wants on his comp. he then creates an article in TP using the copy and code he wrote in Dreamweaver.
Hope this helps and if you already knew this, just disregard my novice input.
:)
Title: Re: Rss Reader / Aggregator
Post by: Fallen05 on September 08, 2008, 04:19:28 PM
I've been playing about with various php aggregators for a while now, i'm now looking for something to filter out posts.

Eg: i only want posts on a certian topic

Any thoughts on how i can do this locally?