BookMaker.js 1.4
The package contains an example of simple "Photo Book Maker" application using the BookMaker.js plugin.
*** SAMPLE APP INSTALLATION ***
1. Run database.sql on your database
2. Edit database connection string in config.php
3. Copy all files on your hosting
4. Give write permission to the "uploads" folder
5. Done. Open book.html from your browser.
*** PLUGIN USAGE (see book.html) ***
1. Css includes:
2. Js includes:
3. Run:
$('.print-container').bookmaker({
login: 'login.php',
logout: 'logout.html',
signup: 'signup.php',
savePhotoHandler: 'photo_save.php',
printBookHandler: 'book_print.php',
createGuestHandler: 'book_start.php',
createBookHandler: 'book_create.php',
openBookHandler: 'book_open.php',
saveBookHandler: 'book_save.php',
deleteBookHandler: 'book_delete.php'
});
Note:
The plugin accepts parameters for server side handlers (eg. for saving book, delete book, login, logout, etc). It can be in PHP, ASP.NET, etc.
You can customize these handlers if you want. This is more of to your custom application.
*** BOOK PRINTING ***
Option 1:
By clicking the print button.
This is the quickest way to print your works and it's using browser printing feature. A print dialog will open. In Chrome, for example, you will have option to save as PDF.
Note: in old or certain browsers, printing may require you to adjust the print size manually. In modern browsers, such as the latest Chrome, it will be automatic & easy.
Option 2:
You can use server side PDF conversion. A VPS server is required. Here are the steps:
1) Setting-up the server. Please see readme-pdf.txt for installation guide.
2) After setting-up the server, copy all files from "vps" folder into your server.
3) Open getpdf.php and getimage.php source (on your vps) and edit the $source variable pointing to your hosting where you install Book Maker application:
$source = 'http://yourhosting/print.aspx';
4) Open book.html source and add the following parameters:
$('.print-container').bookmaker({
getPdfHandler: 'http://YOURVPS/getpdf.php', /* Please change with your VPS address */
getImageHandler: 'http://YOURVPS/getimage.php', /* Please change with your VPS address */
...
});
Using server side PDF conversion for generating printable PDF book is highly recommended as it doesn't depend on users' browser that sometimes has limitation.
*** SUPPORT ***
Email us at: support@innovastudio.com