0

Hello everybody! This was posted with the AAG WordPress poster!

-

This is a test post I created to see
How this script would make my blogging life EASY!

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
0

Hello everybody! This was posted with the AAG WordPress poster!

-

This is a test post I created to see
How this script would make my blogging life EASY!

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
0

Hello everybody! This was posted with the AAG WordPress poster!

-

This is a test post I created to see
How this script would make my blogging life EASY!

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
30

Ask-A-Geek.com WordPress v.04

-

Hot fix update

If you downloaded the AAG WordPress Remote Poster before September 09, 2011 please redownload the zip file again and reinstall it. There was a bug that was missed prior to rollout and although it won’t affect the functionality of the script from a user stand point, there was still something that had to be fixed.

All you have to do is redownload the file. You can copy your configuration from your working copy over the configuration of the new copy. No changes to the config section was made so it could be a seamless install.

UPDATE:It hasn’t been two days since its official release and we’ve had HUNDREDS of downloads already! Thank you! And remember, if you want a free backlink to your blog be sure to use the metrics option as public!

Download

Download v.04 of the Ask-A-Geek.com WordPress Poster [here]

Overview:

The Ask-A-Geek.com WordPress Poster enables a WordPress blogger to literally submit content to their blogs at any time from any where, so long as there is an internet connection. Sometimes it is more convenient to write yourself an email or type up a multi-post TXT file and send it over to your web server than it is to load your blog and manually create posts.

Tip: For bloggers who like to blog at work but fear getting in trouble from visiting your blog! You never have to launch your blog at all, all you need is to send an email to yourself and WOALA! The posts will automatically appear on your blog!

Features:

  • Post to your WordPress blog from ANYWHERE there is an internet connection!
  • Automatically post to your WordPress blog through email!
  • Automatically post to your WordPress blog through FTP!
  • The only WordPress remote poster that allows unlimited posts per attachment/ftp log AND unlimited attachment/ftp log scanning. Load up hundreds of posts at once if you want!
  • Fully documented tag system with examples so you know how to use the system
  • The only WordPress remote poster that fixes the “smart quotes” problem!
  • The only WordPress remote poster that allows you to post under ANY registered account (author rights or above)! That’s right, you can have others post content to your blog with their accounts!
  • Optional metrics allowing free linkbacks to your blog
  • Easy to set up and get going in under 10 minutes!

    Requirements:

  • Web server with Perl
  • Mail::Pop3Client perl module (not standard)
  • Mail::MboxParser::Mail perl module (not standard)
  • List::Util perl module (standard)
  • WWW::Mechanize perl module (standard)

    Installation:

    1) Transfer aagwpposter.pl to your web server (typically in the cgi-bin)

    2) Set the file permissions (chmod) of the aagwpposter.pl file to 755

    3) Make sure you have the required Perl modules installed. You may need to ask your web host to install the non-standard ones if they aren’t already installed

    4) Configure the script as detailed below.

    How to use this script:

    1) Decide if you want to use FTP or Email, or both

    2) Write yourself a .txt or .log file with the shortcodes and tags and attach it to your email or upload it to your site’s FTP location. (note: when using email, the content of the email is ignored. The only thing the script looks at are attachments).

    3) Load the aagwpposter.pl script in your browser to make it “work”. Loading the script directly will make it scan the FTP or email locations and post the content to the blog. OR set up a chron job to run the script every X minutes or X hours. This can be done through Cpanel. If you have questions setting up a chron job, try asking your web host for assistance. My settings are set up to run the script every 10 minutes automatically.

    Configurations:

    Incoming Email/Server settings
    $email_user Change to email address the script will be loading emails from
    $email_pass Change to password of above mentioned email account
    $email_server Change to mail server name, ie: mail.yourdomain.com
    $file_backup Change to full file path of directory to store backup files. Ie: /home/user/public_html/folder. Do not include a trailing /.
    $tag_check Set to 1 if you want the script to test for proper shortcodes. Script will not publish posts that contain errors. Set to 0 to not check for errors.
    $server_backup Set to 1 to back up all posts to the server as log files. Otherwise set to 0.
    $check_where Set to 1 for script to check an email account for content. Set to 2 for script to check an FTP location. Set to 3 for the script to check both email AND ftp locations.
    $ftp_loc Change to full file path of FTP location where it should check for content. Do not add trailing /.
    $rem_smart_quotes Set to 1 if you want the script to repair “smart quotes”. Othewise set to 0.
    Outgoing email settings (for confirmation email)
    $path_to_sendmail Change to location of sendmail. Typically it is /usr/sbin/sendmail
    $email Change to email address the confirmation email will be sent to
    $from_email Change to the FROM email address for the confirmation email to be sent from
    $subject Change to the message you want the confirmation email to use
    $verification Set to 1 if you want to receive confirmation of each post. Otherwise set to 0
    WordPress settings (to sign in and post to WordPress)
    $url_to_sign_on Change to the location of the wp-login.php file. Typically: http://www.yourdomain.com/wp-login.php
    $post_new Change to the location of the post-new.php file. Typically: http://www.yourdomain.com/wp-admin/post-new.php
    Metrics settings
    $use_metrics Set to ‘yes’ to use metrics. Otherwise set to ‘no’
    $metric_type Set to ‘public’, ‘anony’, or ‘limited’.

    public: Tells the server how many posts you published via the script, the URL of your web site, the last post title and the last post link. *

    private: Tells the server how many posts you published via the script and the url of your web site. *

    anonymous: Tells the server how many posts you published via the script and the url of your web site (URL of web site is not made public). *

    * Other metrics that are recorded for all three options: whether or not you allowed gratitude_link, script version number. These metrics are always kept private.

    $gratitude_link Set to ‘yes’ to allow a small linkback to Ask-A-Geek.com at the bottom of each post. Set to ‘no’ to not allow the linkback. Set to ‘maybe’ to post the linkback on approximately 10% of the posts.

    Why opt in to use metrics? It helps us track usage of the script to see how frequent we should update its features. Allowing metrics and choosing the non-anonymous options allows free publicity and a free link back to your site! Anyone who opts in will have their URLs posted.

    Shortcodes:

    All shortcodes with exception to [:start] and ########## must appear twice to enclose the information for the shortcode. For example, to specify a particular post category the code would look like: [:categories]12[:categories].

    The [:start] shortcode has to be the first shortcode in the attachment or log file. It is used only once to tell the WordPress script where to start looking at content.

    The ########## shortcode is used to separate one attachment or log file into separate posts. This means it is possible to create one email attachment that contains any number of posts to create. To separate posts, use ########## between them.

    **DO NOT USE A SECOND [:start] SHORTCODE BETWEEN POSTS IN THE SAME ATTACHMENT OR LOG FILE!

    **DO NOT USE ########## AT THE END OF THE LAST POST IN THE ATTACHMENT OR LOG FILE!

    **YOU MUST, HOWEVER, USE A [:start] SHORTCODE AT THE TOP OF EACH ATTACHMENT OR LOG FILE!

    The shortcode should be self explanatory. Wrap the post title in [:title], tags in [:tags] separated by a comma, categories in [:categories], the content of the post in [:post] and status in [:status]. You’ll need to look at the HTML code to look for the category ID numbers to use this.

    The [:status] tag is different. It will publish in draft mode if this shortcode isn’t defined or set to publish. Set [:status]publish[:status] to make the post go live instantly.

    All shortcodes other than [:start] can appear in any order and they aren’t all required. The [:author] and [:password] shortcodes ARE required. If authentication is left off or fails, that particular post will not succeed. Whatever shortcodes you leave out will not be defined in the post.

    Complete list of shortcodes
    Start of email [:start]
    Author username [:author]
    Author password [:password]
    Post title [:title]
    Post tags [:tags]
    Post categories [:categories]
    Post content [:post]
    Post status [:status]
    Post separator ##########

    Shortcode Examples:

    Example 1: Use of all tags in one post

    [:start]

    [:author]frosty[:author]

    [:password]snowman[:password]

    [:title]Hello world![:title]

    [:tags]hello world, this is cool[:tags]

    [:categories]1[:categories]

    [:status]publish[:status]

    [:post]

    This was posted with Ask-A-Geek.com’s free WordPress poster!

    Yay!

    [:post]

    Example 2: More than one post in same attachment or log file AND not all codes used

    [:start]

    [:author]frosty[:author]

    [:password]snowman[:password]

    [:title]Hello world![:title]

    [:tags]another test, and more tags[:tags]

    [:categories]1[:categories]

    [:status]publish[:status]

    [:post]

    This was posted with Ask-A-Geek.com’s free WordPress poster!

    Yay!

    [:post]

    ##########

    [:title]Another example with fewer tags[:title]

    [:author]frosty[:author]

    [:password]snowman[:password]

    [:post]

    This was posted with Ask-A-Geek.com’s free WordPress poster!

    Yay!
    [:post]

    See it in action!!

    We have set up a fully functional version of this script for you to demo. Below you’ll find a sample post you can copy and paste into a .txt document and send to our mailbox at demowp@ask-a-geek.com. Feel free to change what it says, the order of the tags, remove some tags, etc (don’t remove the few required tags!). Note: The contents of the email and subject are ignored. Only attachments are parsed.

    As this is a demo, all of the posts are set up to go to our special category regardless of what you change that shortcode to. Also note the password for this user account is not the true password (so don’t try), the demo knows the real password. So although the field isn’t accurate, it still needs to exist in the script to prevent it from failing.

    Create your attachments, send them to demowp@ask-a-geek.com and check them out [here]! The demo is set up to run off a chron job every 5 minutes, however if you are impatient and don’t want to wait you can launch the script directly [here]!

    Feel free to customize this for testing!

    [:start]
    [:author]wpposter[:author]
    [:password]test[:password]
    [:tags]test post, wordpress poster, ask-a-geek.com[:tags]
    [:title]Hello everybody! This was posted with the AAG WordPress poster![:title]
    [:categories]22[:categories]
    [:status]publish[:status]
    [:post]
    This is a test post I created to see
    How this script would make my blogging life EASY!
    [:post]
    ##########
    [:author]wpposter[:author]
    [:password]test[:password]
    [:tags]second post in same text[:tags]
    [:title]Hello everybody! This was posted with the AAG WordPress poster![:title]
    [:categories]22[:categories]
    [:status]publish[:status]
    [:post]
    This is the second post in the same attachment. Only AAG WordPress poster has this ability!
    [:post]

    Special Thanks

    We would like to thank Paul (from http://www.workathometruth.com) for the hours he put in testing the Ask-A-Geek.com Remote WordPress Poster script and offering new ideas to improve its performance. If it weren’t for him, the FTP parser and “smart quote” filtering wouldn’t have been imagined in this update. Thank you for your help!

    Questions/Comments?

    For any questions or comments, please go to http://www.ask-a-geek.com. Look through the main threads for this script or start your own question!

    If you want to use the script but don’t have Perl installed or don’t want to try the installation yourself, please post on the boards at the above link. There are people around who’ll be able to help you.

    License Information

    This script is provided free of charge by http://www.Ask-A-Geek.com. Because it is free we do not guarantee or warantee the script in any way. We are not responsible for any issues it may cause.

    You may modify the script to suit your needs. You may not distribute any modified versions of this script, even without monetary gain, or customize it for others.

    VN:F [1.9.22_1171]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • 11

    WordPress Remote Poster v.03

    -

    WordPress Remote Poster v.03
    —————————————————–
    Script developed by and copyright by Ask-A-Geek.com. Ask-A-Geek.com assumes no liability and makes no claim of guarantee regarding the use of this script.

    License: Free for individuals, corporations and government agencies. Do not reproduce or redistribute this script without written permission from Ask-A-Geek.com
    —————————————————–

    At a glance
    ————————————
    1 ) About
    2 ) Version Release Date
    3 ) Requirements
    4 ) How to install on a server
    5 ) How to configure the script
    6 ) List of shortcodes
    7 ) How to use shortcodes
    8 ) Examples of how to use the shortcodes
    9 ) Questions? Problems? Love it?

    1) About
    ————————————
    WordPress Remote Poster allows users to post to their WordPress blogs by sending an email to themselves. The WordPress Remote Poster reads the emails, pulls out the neccessary information and feeds it to WordPress automatically allowing a user to post to their blog from anywhere they have an internet connection. It finishes up by removing the emails from the server.

    What makes this script different from other WordPress posters is its nature of security and integrity. In no way does WordPress Remote Poster interact with the database used to host the blog data. It navigates the forms as a user would and posts the information as if it were done manually. This ensures the database is secure and the original WordPress filters monitor the data before it is submitted.

    This script is written in Perl, not PHP. It was not designed to be an add-on or widget for WordPress. It is a standalone application.

    2) Version Release date
    ————————————
    March 25, 2011

    3) Requirements
    ————————————
    A server running Perl.
    A server having the following Perl modules: WWW::Mechanize, Mail::POP3Client

    4) How to install on a server
    ————————————
    1) Transfer the aagwpposter.pl file as ASCII to your web server (make sure it is transferred into a location that can run Perl scripts such as a CGI-BIN).

    2) Change the permissions (CHMOD) of the aagwpposter.pl file to 755.

    5) How to configure the script
    ————————————
    1) Open the aagwpposter.pl file in a text editor (such as Notepad)
    2) Scroll down to the configuration section that is near the top (as shown below)
    ################################################
    # Change your settings below
    ################################################
    #######
    # Email/Server settings
    #######
    my $email_user = ‘secretemail@domain.com’;
    my $email_pass = ‘password’;
    my $email_server = ‘mail.domain.com’;
    my $file_backup = ‘/home/username/public_html/WPbackuplocation’;
    my $tag_check = ’1′;
    my $server_backup = ’1′;

    #######
    # Verification email settings
    #######
    my $path_to_sendmail = ‘/usr/sbin/sendmail’;
    my $email = ‘confirmation@email.com’;
    my $from_email = ‘noreply@domain.com’;
    my $subject = ‘WP post confirmation’;
    my $verification = ’1′;

    #######
    # WordPress settings
    #######
    my $username = ‘user’;
    my $password = ‘password’;
    my $url_to_sign_on = ‘http://domain.com/wp-login.php’;
    my $post_new = ‘http://domain.com/wp-admin/post-new.php’;

    ################################################
    # Do not make any edits below this line
    ################################################

    3) Edit the required fields as listed in the configuration section.
    my $email_user: change this to the user name of the email address you will be sending the emails to so they can get posted. In most cases the username IS the email address itself, sometimes it’s just USER instead of USER@domain.com.

    $email_pass: change this to the password of the email account listed above.

    $email_server: Determine the email server your email address uses and write it here. Every email host is different.

    $file_backup: This is the full folder path to the location on your server where you’ll have file backups saved. You can store files anywhere you have permissions on your server. Remember to create the folder name(s) after you edit the script so the script has a place to write the files!

    $tag_check: The only values this can be are 0 or 1. Change it to 0 if you don’t want the script to check each post for proper use of shortcodes or 1 if you want it to make sure posts are written properly. This will ensure that you don’t miss a TITLE tag that makes the rest of the post post improperly. Most people should use 1 as the value.

    $server_backup: The only values this can be are 0 or 1. Change it to 0 if you don’t want to record log files of each post the script adds to WordPress for you or 1 if you want backups made. This makes a backup copy of what you submitted in case something happens and it doesn’t post correctly you’ll still have the original post handy.

    $path_to_sendmail: Change this to the path of sendmail on the server. The default is the standard location of sendmail but edit it if your location is different.

    $email: Change this to the email address you want confirmation emails sent to after the script makes posts to WordPress.

    $from_email: Change this to the FROM email address that will be used in the confirmation emails.

    $subject: Change this to the email subject line of the confirmation email.

    $verification: The only values this can be are 0 or 1. Change it to 0 if you don’t want to receive confirmation emails or 1 if you do.

    $username: Change this to the WordPress username you want to post blogs with.

    $password: Change this to the password of the WordPress account you want to post blogs with.

    $url_to_sign_on: Because WordPress can be installed anywhere on a web server you need to change this to the login form (wp-login.php). In your browser navigate to the WordPress login area and copy and paste the location here. The page should end with wp-login.php.

    $post_new: Because WordPress can be installed anywhere on a web server you need to change this to the location of the post-new.php page. In your browser, sign into WordPress and go to the page that allows you to create new posts. It should end with post-new.php. Copy that location directly into here.
    4) Create the directory needed to make backups (as mentioned above under $server_backup). This is only necessary if you want to store backups.

    6) List of shortcodes
    ————————————
    Start of email [:start]
    Post title: [:title]
    Post tags: [:tags]
    Post category: [:categories]
    Post content: [:post]
    Post status: [:status]
    Post separator: ##########

    7) How to use shortcodes
    ————————————
    The only required shortcode is [:post]. The other ones are optional but what good is a blog post without that information? Everyone SHOULD use the [:start] tag but it is not required.

    Each shortcode has to be used twice (except [:start] and the post separator) if it is used at all- once as a start tag and once as an end tag. That is to say you wrap the shortcode around the text you are referencing. The start tag and the end tag are identical.
    IE: [:title]Hello world, WordPress Remote Poster made this![:title]

    The shortcode start and end tags can be on separate lines. For example, the code below will process smoothly:
    [:title]Hello world!
    Nice to meet you![:title]

    You may not nest shortcodes as the results will be entertaining to say the least. For example, the code below should not be used:
    [:title] Hello world! [:tags]hello, world[:tags] [:title]

    The [:start] tag is special as it tells the script when to start looking at the content of the email. This is to prevent any free email client from placing advertisement text at the top of your emails. It is used only once per email and it should be the very, very top of everything.

    There is no [:end] tag because the only data it cares about are within the shortcodes listed above. Once the last [:post] is processed no advertisement text will be included at the end of the post.

    The [:status] tag allows you to define how the post gets sent to WordPress. If this tag is left off or is anything BUT [:status]publish[:publish] the post will be posted in DRAFT mode. You must specifically call on PUBLISH for it to go live.

    The ########## separator is used when you want to write more than one blog post per email. Just separate each post with the separator and the script will post them separately. You can make as many posts in a single email as you’d like.

    Shortcodes don’t have to appear in any order with exception of the [:start] tag. If that is used it has to be at the top or everything above it will get ignored. This means you can use [:post] to add all the content of the blog posting before you outline what the title and tags will be.

    ** The [:categories] is special and takes a little more human intervention to work. You can only post to 1 category per post (future updates may fix this) and you need to know the category ID number. This is NOT the name of the category itself. You will need to look at the HTML source code of the page where you make new posts to see what number is associated with what category name. The below source code is from Ask-A-Geek.com to show an example.
    <ul>
    <li id=”category-3″ class=”popular-category”><label class=”selectit”>
    <input id=”in-category-3″ type=”checkbox” name=”post_category[]” value=”3″ /> Ask-A-Geek Exclusives</label></li>
    </ul>
    You will search the HTML for the title of one of your categories, in this example I knew Ask-A-Geek Exclusives what a category name so I searched for that. You see an <input id=”" type=”text” name=”" value=”3″ />

    8 ) Examples of how to use the shortcodes
    ————————————
    Example 1: email containing one post
    [:start]
    [:title]Hello world![:title]
    [:tags]hello, world, first post, yay![:tags]
    [:categories]1[:categories]
    [:status]publish[:publish]
    [:post]
    this is the coolest thing ever
    I posted this with WordPress Remote Poster from Ask-A-Geek.com
    [:post]

    Example 2: email containing more than one post (notice the start tag used only for the first post)
    [:start]
    [:title]Hello world![:title]
    [:tags]hello, world, first post, yay![:tags]
    [:categories]1[:categories]
    [:status]publish[:publish]
    [:post]
    this is the coolest thing ever
    I posted this with WordPress Remote Poster from Ask-A-Geek.com
    [:post]

    ##########

    [:title]Hello world 2[:title]
    [:tags]hello, world, first post, yay![:tags]
    [:categories]1[:categories]
    [:status]publish[:publish]
    [:post]
    this is the coolest thing ever
    I posted this with WordPress Remote Poster from Ask-A-Geek.com
    [:post]

    Example 3: basic post with the tags in random order
    [:start]
    [:status]publish[:publish]
    [:tags]hello, world, first post, yay![:tags]
    [:categories]1[:categories]
    [:post]
    this is the coolest thing ever
    I posted this with WordPress Remote Poster from Ask-A-Geek.com
    [:post]
    [:title]Hello world 2[:title]

    Example 4: not all shortcodes used
    [:start]
    [:title]Hello world![:title]
    [:post]
    this is the coolest thing ever
    I posted this with WordPress Remote Poster from Ask-A-Geek.com
    [:post]

    9) Questions? Problems? Love it?
    ————————————
    Please visit the WordPress Remote Poster page at [here] to ask any questions you may have or just post how much you love it! If you have ideas on how to improve it, please post them there as well.

    VN:F [1.9.22_1171]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)