Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
How to Import Data FROM RSS Feeds and RSS Aggregators like Feedly
Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 14, 2013 - 3:41 am

Team,

I see that Simple:Press has excellent RSS "export" facilities at various levels in the SP data hierarchy, BUT I am looking for a way to get or input data that is located in an RSS aggregator like but not limited to e..g. Feedly and to populate Simple:Press with that data. Maybe Yahoo Pipes is a possibility?

Any ideas how to do this please.

Thanks

Ken

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 14, 2013 - 4:05 am

Well it would need custom code being written which could populate the Simple:Press post class data requirements in much the same way that our 'post by email' plugin does. But the important bit here is needing code to be written.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 15, 2013 - 3:38 am

So …. how do we accomplish this "needing code to be written" step in your world please

Thanks

Best Regards

Ken

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 15, 2013 - 5:04 am

Ah... well. I guess the first question has to be do you write php code? Because the first thing that is needed is a php programmer.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 15, 2013 - 7:52 am

Well …. I could try …. but I do not know the ins and outs of SimplePress AND I certainly am not as good as I am sure you are or others you know who have written code for the Simple:Press Product or plugins for it

I just want to run a Forum not become a super php coder. 

What I was as subtly as possible asking was …. what's it gonna cost me to get what I need ….. code that feeds RSS data into SimplePress from Feedly.

Thanks

Best Regards

Ken

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 15, 2013 - 1:06 pm

smile Well we would need to first establish what data items we would be getting. New topics need a forum ID and a topic title and post content,  a user ID or guest poster name and email - at the very least. Existing topics need the above plus topic ID and the post (of course). So what could we expect to receive?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 17, 2013 - 5:39 am

(1) Lets say that I can provide a JSON feed over HTTP.

(2) Lets say I can provide the needed fields in that JSON/HTTP that would match the variable names required to populate all the Simple:Press fields where I would like that data to go including Groups, Forum ID, Topic Title, Poster Name, email etc etc … basically anything you would need (i.e whatever variables you tell me you need) to populate the forum with the data from the JSON/HTTP feed.

I assume what would then be needed was some code to parse the array and feed MySQL statements into the database.

Of course if Simple:Press had a REST API or some way of talking to my REST source, this would be even better. Maybe I could even use bbPress or PHPbb to be an intermediary to act as an REST API intermediary. Just tossing some ideas around.

Basically I can get you whatever data you need with whatever variable names you need and in whatever datatype you need, so as to populate every element of the Forum a typical user may typically want (no statistical data just post content). What I don't know are the variable names and datatypes that are essential to populate your Forum with that typical data. 

I also would like to set this up so that it is not sensitive to any future changes you may make to the database schema already exposed by Simple:Press

Is this any help?

Thanks

Ken

 

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 17, 2013 - 6:00 am

If you take a quick look at the file /simple-press/forum/library/sp-post.php then basically you would need to be replacing all of the $_POST variables on your JSON response. If that is possible then it really shouldn't be a hard task to just re-construct that code accordingly.

We will need to discuss it a little here but we can get back to you on it...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 17, 2013 - 10:17 am

Thanks for the response … this sounds workable to me. I will take a look at this as well.

Best Regards

Ken

Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2013 - 5:56 am

Guys,

I have taken a loo at this code and I can see how it could be made to work. It looks like it does not recognise Groups in Simplepress. Or maybe a Group is recognised by forumid?

It may be possible to use: http://developer.wordpress.com/docs/api/  (REST API) ….. I see that this MAY have a wordpress.com focus feather than wordpress.org, but it looks like everything is there to recognise JSON/HTTP if we could use it in a plugin.

All that would remain is to make an 'interface" which would allow this REST API to "interact" with sp-post.php

Ideally if this combination could be made into a ServicePress plugin, I think we would be very close to aching my objective.

Best Regards

Ken

 

 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625