=== Blog To HTML ===
Contributors: Rick Hellewell
Donate link: http://cellarweb.com/wordpress-plugins/
Tags: export, html, ebook
Requires at least: 4.6
PHP Version: 5.3
Tested up to: 4.8.3
Version: 1.21
Stable Tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Export blog to HTML file for ebook creation.
== Description ==
Blog to HTML allows you to export your blog into an HTML document that can be easily converted into an ebook. All blog posts and pictures are exported in oldest-to-newest date order. Only post content is exported; pages, widget areas, headers, footers, etc., are not exported. You can optionally select multiple categories to export.
When the file is generated, you can view it with your browser, or save it to your local computer for later use. Or you can specify an email address and the generated file will be sent via email. Each file has a unique name, so you can have multiple versions of the output. HTML elements get a unique CSS class to allow you to further style the output. Any HTML elements embedded in your post output is retained. All posts are exported; there are no watermarks or limited features.
This plugin's main purpose is to easily output your blog (with pictures) in a format to easily convert to an ebook. For instance, Amazon's Kindle Direct Publishing will accept an HTML file, to which you add additional meta (cover image, etc). Each post has an H1 for the title, and H2 for the publish date, so those tags can be used for a table of contents. You may need to add any additional CSS rules for your site's unique formatting.
You can import the HTML file into Calibre or any HTML editor to further format and create your ebook. Or submit the HTML file directly to your ebook publisher.
The generated HTML file includes some CSS for various HTML tags, and are defined at the top of the HTML file.
* body {color:#000 !important;background-color:#fff !important; } /* to make sure the text is visible */
* .blog2html_h1 {} /* H1 class */
* .blog2html_h2 {} /* H2 class */
* .blog2html_div {} /* DIV class */
* .blog2html_p {} /* P class */
* .blog2html_img {} /* IMG class */
* .blog2html_caption {} /* CAPTION class */
You can set those CSS values according to your needs. Images are set to a max-width of 400px, although you can override that with custom CSS.
Suggestions?
This is the initial release of this plugin. It's not very fancy, but will do what it says: use the generated HTML to create an ebook. There are many ways to get to the final ebook product, so this is not a one-step process. But it will get you started.
That said, what new features would make sense? How could we improve the plugin to make it easier to create an ebook? Or is this 'good enough'? Let us know via the Support section of the plugin's page: .
== Installation ==
1. Install via the Add Plugin page. (On multisites, use the Network Admin Plugin page.) Or download the zip file, uncompress, then upload to `/wp-content/plugins/` directory. Or download, then upload/install via the Add Plugin page.
1. Activate the plugin through the 'Plugins' menu in WordPress.
1. Usage information in Settings, 'Blog To HTML Info/Usage'.
== Frequently Asked Questions ==
= Do you have other plugins? =
Yes!
* **Multisite Media Display** : shows all media from all subsites. SuperAdmins can click on a picture to edit it. Great for ensuring all media conforms to your site's standards.
* **FormSpammerTrap for Comments** : enhances comment forms so that bots can't spam your comments. Uses a more clever technique than just hidden fields or captchas or other things that don't always work. Also lets you change the text/headings of the comment form. (We also have a free standalone version; take a look at www.FormSpammerTrap.com (that's the page that comment bots will see, but also contains all the info about the 'trap').
* **FormSpammerTrap for Contact Form 7** : adds our FormSpammerTrap technique to Contact Form 7 forms with a simple shortcode.
* **URL Smasher** : automatically shortens URLs on all URLs in pages/posts.
* **AmazoLinkenator** : adds your Amazon Affiliate ID to any Amazon product link in pages/posts/comments. It's your site, so use your Amazon Affiliate ID.
All plugins are free and full-functioned. No premium features. Just search for them on the Add Plugins page.
== Screenshots ==
None; no options, just an information an usage screen.
== Changelog ==
= Version 1.21 (13 Nov 2017) =
* For very large sites, browser or server timeouts or memory issues may occur. You can determine a browser timeout if the process takes longer than 30 seconds (the screen will remain blank, usually). So increased the timeout from default of 30 seconds to 5 minutes (the process will probably never take that long), and increased the available memory to the process to 256M.
* The above changes should allow very large sites to complete the export. The program was tested on a site with over 1300 posts.
* Changed the settings/info screen to suggest using email on very large sites.
* Changed other email info on the settings/info screen.
= Version 1.20 (11 Nov 2017) =
* fixed bug that would sometimes cause the generated output to appear on the settings page, rather than showing the Open/Save Ad dialog box. (That was a weird one, since the same code worked properly on one site, but not on a nearly-idential site. But the good guys won this one!)
* Added ability to specify email from/to addresses so the generated file is emailed. Note that an invalid or non-existent email address might irritate your server, causing the mail not to be sent.
* Changed function name prefixes for consistency
* Minor code optimizations
* Tested with WP 4.8.3; should work with 4.9 when it is released.
* Attachment via email Content settings will work with later PHP versions.
* Ensure sanitization of POST variables (form field content)
= Version 1.10 (27 Oct 2017) =
* added capability to select multiple categories of posts.
* some minor code optimizations/cleanup
= Version 1.01 (30 Sep 2017) =
* version number correction in file and readme
= Version 1.00 (21 Sep 2017) =
* Initial Release