Two POPFetcher questions

Creating and modifying plugins.
Post Reply
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Two POPFetcher questions

Post by davidcrickett »

1. How come I have to open the POPFetcher in the admin sidebar before the post sent from my mobile - it is there, yes - gets posted? I have set the options right.
2. Which plugin shall I use in combination with POPFetcher to get a side menu mini moblog, if you know what I mean?
read my serendipity blog
http://blangstrup.info
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Two POPFetcher questions

Post by garvinhicking »

I don't know if I understand you right -- you must click on the popfetcher icon so that your Server can fetch the emails! E-Mails is a Pull medium, so your server needs to actively query the mailserver. You can only get surround that by using a cronjob facility.

And about your second option, no, I don't know what a side menu mini moblog is? :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Post by davidcrickett »

Oh, a cronjob? :-(
I have to actually click on the name POPFetcher in the left sidebar menu in the admin section of Serendipity - when I have opened that page, with the received mobile mail, then and first then it gets posted.
Why can't I just post it straight away? A lot of old mail turned up when I first used the plugin.

Okay, here http://blog.verture.net/ is a Flickr moblog. :-) I would like to post my mobile mms to a little mini blog in the sidebar.
read my serendipity blog
http://blangstrup.info
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi David!

Yes, that is by tha law of web applications. They cannot run without your interaction. Thus you need to make a periodic call to a special URL so that popfetcher fetches your messages.

Think it through, how else would an application on your webserver be able to know that new emails are called and it needs to fetch?

You shouldn't use your usual email address for popfetcher polling, you should create your own account which is only fetched by popfetcher!

The plugin on your sidebar could be done by just fetching the latest postings in a special category. You could post all your moblog entries to a category "moblog" and then show them with a mini PHP script on the right side...?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Post by davidcrickett »

Okay :shock: :lol: I did make a special account afterwards. I found out - duh! - by pointing to the Flickr example, that I have the 23 service, which I can moblog to - and then, if I want to write something, I can just do that. It would be nice though, if there was I way to post directly with POPFetcher. :mrgreen:
Serendipity rules!
read my serendipity blog
http://blangstrup.info
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Sadly, the only way to post to popfetcher is with a cronjob on any machine, where you just need to schedule a HTTP GET call (wget) easily.

BTW, the plugin to show entries like in the moblog example: http://nopaste.php-q.net/171574

(I'll put it in CVS once CVS is online again)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Post by davidcrickett »

Thanks
read my serendipity blog
http://blangstrup.info
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Post by davidcrickett »

But... how come I can mobile post straight away to my Opera blog?
http://my.opera.com/davidcrickett/blog/
read my serendipity blog
http://blangstrup.info
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

That's a completely different matter, I think. You must ask the people of the Opera blog about that! :-)

Popfetcher and Serendipity is completely unrelated to your Opera blog, you would need to find something like the popfetcher plugin for Opera, if you want to post moblogs there!

Best regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Post by davidcrickett »

He he, I just meant that there must be a way to show messages from mobile phones immediately if Opera blog can do that. But I'll maybe ask them how they do it. :-)
read my serendipity blog
http://blangstrup.info
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Your Opera blog has a permanent cronjob running which pulls it from the Opera servers every scheduled minutes. So they do that cronjob thing which I advised :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Post by davidcrickett »

Ah, thanks! But you've got to have your own server, or... hm, maybe there's an option for a cronjob on my host's control board...
read my serendipity blog
http://blangstrup.info
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You could also schedule a cronjob on any server that is permanently on the internet. I have heard that services exist which give you free cronjobs on other servers, which can call your Popfetcher URL! You might want to look out for those?

If you use that, you must use the "External Popfetcher" method, so that you have a single URL to call and must not access it via the sidebar.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply