basic blogger plugin

yconst / 2010-09-03 13:52:56   

hiya.

I put together a very basic plugin to retrieve a blogger feed and present it in the indexhibit content area for my site and thought i'd share it.

Blogger Plugin
Demo Here

It currently supports titles and post content, more to be added in the future.
Installation is simple, instructions in the readme.

Due to my PHP illiteracy you'll certainly bump into issues so please report them (or fix them too!).

yconst

arsondpi / 2010-09-03 13:59:11   

...σωστός! :-)

Thanks for sharing.

Vaska A / 2010-09-03 14:41:36   

Looks interesting.

yconst / 2010-09-04 21:36:46   

hi again

i've had some progress with the plugin, its now possible to display title, date, content and comments with comment authors...even more can be easily included..

however, i'm in need of a bit of help to continue

see, the request to blogger and it's processing with all the comments etc. is naturally taking a long time, so I was thinking of implementing a mini-caching thingie that retrieves the basic blog from blogger every time, compares it's date to the date of the cache and then either returns the cache (fast) or re-requests the entire post/comment, returns it and updates the cache with it.

so far so good. my question tho is, what would be the best way of implementing this? my thought is to use the database creating a simple table with a date record and a record with the data of the cache.
now, i've googled around and found some info for mysql and php and think it's feasible to implement it.... however, (and that leads us to the next question) I cant find where the username/password etc. are for programatically accessing the database.

Or could you suggest any references that would be helpful in any way?

thanks

yianis

yconst / 2010-09-06 19:06:47   

umm...I can only suppose that this went down the forum unnoticed.. so...*bump*

Vaska A / 2010-09-06 19:14:33   

I'd love to help but this is not a simple question (knowledge of PHP, at least, is necessary) and I'm currently building a tower of babel. If any other PHP experts have any ideas chime in...

superantoncito / 2010-11-05 13:26:10   

This is great. But i have a problem. When i try on my localhost (MAMP) works perfect, but now on my hosting i have a problem.

Warning: simplexml_load_file() [function.simplexml-load-file]: URL file-access is disabled in the server configuration in /homepages/2/d344727283/htdocs/interestelar/ndxz-studio/site/plugin/plugin.ndxz_blogger.php on line 15

Warning: simplexml_load_file(http://www.blogger.com/feeds/6929595312837666992/posts/default) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /homepages/2/d344727283/htdocs/interestelar/ndxz-studio/site/plugin/plugin.ndxz_blogger.php on line 15

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://www.blogger.com/feeds/6929595312837666992/posts/default" in /homepages/2/d344727283/htdocs/interestelar/ndxz-studio/site/plugin/plugin.ndxz_blogger.php on line 15

Warning: Invalid argument supplied for foreach() in /homepages/2/d344727283/htdocs/interestelar/ndxz-studio/site/plugin/plugin.ndxz_blogger.php on line 17

Do you know about it?

Vaska A / 2010-11-05 13:26:59   

Your webhost does not have SimpleXML installed...ask your host to install that.

superantoncito / 2010-11-05 13:39:27   

Thank you.
My host are PHP 4.

kooh / 2011-09-19 08:10:44   

@superantoncito

Tambien, maybe your host doesn't allow external (remote) connections. I got this answer when I asked my free hosting service. I had the exact same problem as you.

(Really, does anybody have a decent suggestion for a free web hosting service? - that supports external connections :)

Vaska A / 2011-09-19 08:18:48   

There are no decent free hosting options - there are always random issues with them.

And, we don't do hosting recommendations around here - best place to ask is your friends for advice on those kinds of things (it's in the forum rules).

;)

W / 2012-11-07 13:23:30   

Hi – Has anyone experience this having stopped working recently? I get the impression from the Blogger security settings that they may have stopped feeds going out to other sites. Anyone?

Vaska A / 2012-11-07 15:34:19   

I would be very surprised if they blocked feeds that way.

W / 2012-11-07 16:48:19   

Thanks Vaska, I've just realised it's not [testing with other sites/blogs] – so I am guessing it's something to do with the plugin being unable to add to the database, although I'm not sure why that's happen either.

This thread has been closed, thank you.