*** NOTE - We have upgraded the BumbleCash Auto-Blogger script to version 2 - The old version will continue to work, but you must upgrade to version 2 to use the Max Glamour or M&B Video RSS feeds. ***
You can download the latest version of the AutoBlogger Script here:
http://www.bumblecash.com/downloads/auto-blogger-0.2.zip
http://www.bumblecash.com/downloads/auto-blogger-0.2.tar.gz
Version 2 now operates off of config files so you can update multiple blogs and multiple feeds all in one run. One config file needs to be created per account id and per feed.
Example:
AID=123123 and feed=Mac & Bumble
AID=123123 and feed=MaxGlamour
AID=456789 and feed=Mac & Bumble |
Each of the above configurations will require a unique config file.
Included in the auto-blogger-0.2 download is an example config file (example.config). Make as many copies of this file as necessary (i.e. foo.config bar.config baz.config etc) and set the following variables for each:
These variable descriptions are also included in the example.config file.
$LOGIN: Google Blogger account login (email)
$PASSWD: Google Blogger account password
$BLOG_NAME: Your blogger sub-domain (i.e. yourblog in http://yourblog.blogger.com)
$POST_NAME: The name you want to appear in "Posted By" on your blog
$AID: Your BumbleCash account code
$STYLE: The post layout (not applicable for the video blog feed):
0 = SEO text only
1 = Large image with thumbnails and SEO text (Not available for MaxGlamour)
2 = Large image only with SEO text
custom = Large image with thumbnails and SEO text, each contained in their own unique <div> tag to allow for custom do-it-yourself styling via css
$SITE: The BumbleCash site to pull the feed for
MAC = Mac and Bumble (www.macandbumble.com)
MAX = MaxGlamour (www.maxglamour.com)
$MAX_WIDTH: The maximum width in pixels to display the video (applies to video rss feed only). Leave empty for full-size videos. Make sure you do not set a width larger than your blog has available or you'll break your layout.
$FEED: Current feeds are below (check BumbleCash for updates):
standard = The standard M&B feed with images and text
video = The video trailers feed with Flash video and text (Mac & Bumble Only)
$DEBUG: The level of reporting:
TRUE = Lots of output
FALSE = Minimal output on success or failure
Below is an example configuration:
$LOGIN = "someone@somewhere.com";
$PASSWD = "S0mePasS";
$BLOG_NAME = "yourblogname";
$POST_NAME = "Your Name";
$AID = 200000;
$STYLE = "1";
$SITE = "MAC";
$MAX_WIDTH = ""
$FEED = "standard";
$DEBUG = FALSE;
Each config file you need is passed as a command line argument when the script is run and must be relative to the location of the auto-blogger.php script (We suggest you store the config files and the script in the same directory)
Example: /usr/local/bin/php auto-blogger.php foo.config bar.config baz.config
Set up the script to run in cron once daily. BumbleCash will give you one unique post per day. e.g. the following example will produce regular output (italicized text is to be replaced with the correct values and all commands occur on a single line):
| 0 1 * * * ( /path_to_php/php -q /path_to_auto-blogger/auto-blogger.php foo.config ) |
Or if you want any output mailed to a specific address:
| 0 1 * * * ( /path_to_php/php -q /path_to_auto-blogger/auto-blogger.php foo.config | mail -s "BumbleCash auto-blogger" your_address@your_domain ) |
Or if you dont want to see any output at all:
| 0 1 * * * ( /path_to_php/php -q /path_to_auto-blogger/auto-blogger.php foo.config 2>&1 >/dev/null ) |
NOTE: If you are use the old blogger (legacy version) of blogger.com (you should be prompted to migrate when you log in), you will need to migrate it to the new version. This is trivially easy to do and can be done at:
http://www.blogger.com/legacy-claim.g |