Super Rebrander Instructions

1. TO INSTALL THE SCRIPT

Create a new folder in your home directory, for example 'ebooks', and simply upload to it all the files in this folder.

2. TO CHECK INSTALLATION

Using the appropriate names for 'yourdomain' and 'ebooks' click on this link

http://www.yourdomain.com/ebooks/book.php?f1=aaaaaa&f2=bbbbbb&book=samplebook

You should be taken to the homepage for a sample book and be able to download the book.

You can play around with the values for f1 and f2 to see how this works.

3. CREATING YOUR OWN BOOKS

If you want to create a book called mybook you need to place two files in the folder "template"

1) mybook_homepage.html

This is the book homepage where you invite the reader to download your book. The download link on that page must be

book.php?book={BOOK}&f1={F1}&f2={F2}&send_pdf=yes

2) mybook_pdf.html

This is how you want your book to appear. You use normal HTML tags (but see notes in section 5)

You can use two placeholder fields like this {F1} or {F2} and these will be replaced by the values for f1 and f2 specified in the link to the homepage.

Example: if you had F1 as your referrer's name (say Fred) and you wanted

"This is Fred's book"

you would write in the HTML

"This is {F1}'s book"

Note that {F1}, {F2} and also the book filename {BOOK} can also be used on the homepage.

Note: images should be put in the 'ebooks' folder not the template folder.

4. TO RUN THE SCRIPT

The script URL takes the form:

book.php?f1=abc&f2=xyz&book=name

So in the example above use

http://www.yourdomain.com/ebooks/book.php?f1=Fred&f2=Jim&book=mybook

5. SUPPORTED HTML TAGS

The supported HTML tags as outlined by the HTML to PDF class files used in this case are:

"<TT>, <KBD>, <SAMP>, <OPTION>, <OUTLINE>, <SPAN>, <NEWPAGE>, <PAGE_BREAK>, <S>, <STRIKE>, <DEL>, <BDO>, <BIG>, <SMALL>, <ADDRESS>, <INS>, <CITE>, <FONT>, <CENTER>, <SUP>, <SUB>, <INPUT>, <SELECT>, <OPTION>, <TEXTAREA>, <TITLE>, <FORM>, <OL>, <UL>, <LI>, <H1>, <H2>, <H3>, <H4>, <H5>, <H6>, <PRE>, <B>, <U>, <I>, <A>, <IMG>, <P>, <BR>, <STRONG>, <EM>, <CODE>, <TH>, <TR>, <BLOCKQUOTE>, <HR>, <TD>, <TR>, <TABLE>, <DIV>" -

More information at http://html2fpdf.sourceforge.net/features.php

There is also basic inline CSS support and support for JPG, PNG and GIF images.

The tag "<PAGE_BREAK>" is a non-HTML tag used to start a new page in the generated PDF file.

It is important that you use correct HTML, for example always use closing tags

6. PROBLEMS

If you have any problem installing or running Super Rebrander please visit the forum at http://www.ad-tracking.com/forum