Using this plugin, you can post your entries via email and via mms. It uses cron to check a POP3 mailbox on a regular basis for new posts.
| General Plugin info | |
|---|---|
| Author: | anand, Ihra, Radek HULAN |
| Current Version: | 1.1 |
| Download: | NP_PostMan_1.1_nucleus.zip |
| Code: | - |
| Demo: | - |
| Forum Thread: | - |
This version is NucleusCMS-specific. It renames some of the options to be friendlier to Nucleus users and also it functions more like advertised in this wiki. Specifically, it handles the inclusion of alternate user credentials in the email subject to allow users to post as themselves instead of as the default user. See the thread linked below for more details.
| Alternate Version info | |
|---|---|
| Mods to original by: | Frank Truscott |
| Current Version: | 1.20.n |
| Download: | NP_PostMan Alternate (.n) Version |
| Forum Thread: | here |
Download files
The only difference between the versions is the paragraph-function which already exists in Blog:CMS and thus can’t be included.
My settings in crontab are:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * wget www.mydomain.com/action.php?action=plugin&name=PostMan
Most of your problems will relate to above! Note that some systems/OS will require adress to be included in “-characters. Thus, wget “www.mydomain.com....blahbla” should work. Otherwise you will get odd files saved to your server (because of character sets, slash-character will not be the same and wget will save file to your server instead of running it). Test your settings in command line typing above command, “wget www.mydomain.com/action.php?action=plugin&name=PostMan” and if it works as is, you can add it to your cronjob (cronjob -e) and if not, try with “wget “www.mydomain.com/action.php?action=plugin&name=PostMan““.
on Unix server I use this command line and it works well (above does not): “php $HOME/path-to-file/action.php action=plugin name=PostMan” $HOME is the ftp root directory The ? method for passing variables does not work - at least not on the unix server my host uses. Posted by http://www.getbeautytips.com
Edit your crontab logging in as user and typing crontab -e. Above settings will run script every 5 minutes using wget. You can use also lynx-browser.
Thats it!.
The mail user name, password, URL (hostname) and port are mandatory.
Now enter the default username and password of the nucleus author. This will be used if no username and password is send along with the subject/body of the mail.
The publish straightaway option controls the publish status of the post. If this is set to yes, then the post will be published immediately otherwise it will be saved as a draft.
The should the mail contain a prefix option is a added safeguard. If you set this to yes and then give a prefix, then only those mails which contain that prefix will be posted. Note that in version 1.1 you can use same prefix either in body or in subject. That is to ensure all mms-messages can use prefix too.
The send output to browser controls debugging messages which may be displayed on the browser when you invoke the plugin. Set this to yes, if you are facing problems with the plugin. This will help you to see what is going on. I suggest you use plugin few times manually using output to browser and calling plugin from your browser. If everything works, then set to no and use cronjob / timer.
The email format is as described below :
nucleus:A sample title[options]blog=7;
nucleus:A sample title[options]category=poems;
PREFIX:Sample title;[options]user=ihra;password=mypassword;This is test message, blah, blah.
Q: Some characters are not shown correctly when posting with MMS
A: There is some problems with international characters (as some of them are sent via UTF-16 for example). If you can send your message with mms-2-mail some of these problems will get solved. You can use html-entities in your messages to prevent wrong conversion (mostly because UTF-16 characters show as two separate characters).
Q: Which fileformats are supported?
A: Nucleus supported pictures (png, jpg, gif) will get attached as inline images, all other files are posted as links in main article (pdf, word-files etc.). Even pgp-signature works fine.
Q: How about signature?
A: Standard signature separator (–) will be removed along everything after that.
Q: Heard about encodings, about base64 or similar?
A: All mms-messages are encoded with base64 and PostMan will decode them correctly (pictures and text).
Q: My blog uses utf-8 characters, should they work?
A: Yes, script contains conversion function to format characters correctly - if needed, that is.
Q: Sometimes my cronjob sends me errors about NP_PostMan, why?
A: Because script is run as a web-page, it depends on the workload and speed of your server. If there are many users in page doing database-calls, script will be slow and cron will not get feedback fast enough. Then it will give you error that it cannot connect to script. Most systems will have 30 seconds of waiting time for php-scripts. Note that this is mainly servers problem (and next run should be fine again).
Q: Put more text into the extended portion with [more]
A: In order to post normally you can use the [more] option in your body of text to separate the message up into the body and extended portions of text.
NP_PostMan v0.1 (February 01, 2003)
(after long period of development) NP_PostMan v1.1 (October 28, 2004)
return iconv(strtolower($part->ctype_parameters[<b>'charset'</b>]),_CHARSET,$part->body);
Caution: this might affect the processing of some non-english non-UTF-8 and non-ISO-8859-1 based character sets.
:: Plugins ::