Once you have purchased the JPub extension suite, follow the steps below to complete the installation;
Due to a limitation in how Joomla! loads document types, you will also need to install the epub document format to your Joomla! site's shared libraries. There are two ways to do this:
Once installed, you will have the option to uninstall the library at a later date.
To uninstall:
Ensure you have created a backup of your site whenever you run the JPub installer as it will make changes to your Joomla! site's core functionality. In fact, you should always make backups of your sites when installing or uninstalling any 3rd party extension, especially if your Joomla! site is in live production.
You can also install and uninstall the epub library manually using file copy tools.
To install, copy the directory "epub" from /path/to/your/joomla/install/plugins/system/jpub/libraries/wijiti/document/ to /path/to/your/joomla/install/libraries/joomla/document/.
To uninstall, remove the directory "epub" from /path/to/your/joomla/install/libraries/joomla/document/.
To embed a JPub button in an article, specify {jpub} in your article's body.
The JPub content plugin will use the containing article to generate a corresopnding epub link. When clicked, this link will convert the article into the ePub format.
JPub also provides additional configuration options so you can offer your users multi-chapter eBooks based on multiple articles or even a whole category of articles.
Assuming your category id that you wish to use is 1 then you would embed the following into your article:
{jpub categoryId=1}
Assuming the articles you wish to distribute in eBook format are 1,3,5 and 7, then you would embed the following into your article:
{jpub articleId=1,3,5,7}
For users with SEF enabled will encounter errors during eBook generation if they have "Add suffix to URLs" switched on.
If this applies to your site, you can fix this by editing your .htaccess file and changing the following line:
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
to
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|\.epub|/[^.]*)$ [NC]
This will help Joomla!'s SEF engine to understand that the epub extension is associated with the epub document type.