First off - yes absolutely, you can sell advertising in your ebook, and yes absolutely you can allow others to pass on your ebook. Okay on the rebranding, I think we're homing in on the problem area.
There's two bits to understand
1. The name of variable
2. The value of the variable.
The name of variable is a string of letters and numbers that identifies that variable. You can pick any name you like. The user will never see the name. It's purpose is purely to identify the variable.
The value of variable - this is initially set using the field in the compiler, but can be changed latter when the rebranding happens.
For example,
You could make a variable called "myname" (without the quotes).
Initially it could hold a value of "Fred"
When somebody rebrands it, it contains the value of "Sunil" (for example)
Now if this was the example, the HTML code would need to include the following (make sure you copy the brackets correctly)
[={myname}]
Where this occurs in your HTML file, it will be replaced, when the e-book runs, by whatever value the myname variable holds. So in this example, the e-book would say "Fred" here initially, and if I rebranded it, would say "Sunil" in that spot.
Does this make sense?
So the process for this example:
1. Inside any one of your HTML files insert the code [={myname}] where the name is going to occur
2. Do Add Variable, add a variable whose name is myname, with a description example, "Please enter your name" here, check the rebrandable option, and set the initial value, say to Fred.
3. Enable the PreProcessor on that HTML file
4. Click Edit Output, and check the Rebrander option, and browse a filename for the rebrander which is in the same folder as the main ebook, but a different file name, e.g. If your main e-book is called C:\MYBOOK\MYBOOK.EXE you might call your rebrander C:\MYBOOK\MYREBRAND.EXE
5. CLick Build on the Build menu.
6. It should now build both your e-book and rebrander.
7. Run the e-book. Whereever you inserted [={myname}] in your HTML code, it should now say "Fred"
8. Close the e-book, and run the Rebrander, cange the value of the variable to "Sunil"
9. View the e-book. Now where-ever it said [={myname}] in the original HTML, it should say "Sunil"
Try that. Hopefully you should get it.
Next thing is the links. To make a link rebrandable, you need a variable which contains the URL of the destination
For example, you could create a variable with a name of myurl, and set it to have an initial value ofhttp://www.yahoo.com
In the HTML code, you need to use the variable in an HTML link.
In HTML code, a link looks normally like this:
<A HREF="http://www.yahoo.com/">Click here to visit a web site</A>
So to make it a link to a rebrandable destination, you'd do it like this
<A HREF="[={myurl}]">Click here to visit a web site</A>
Now in this case, if myurl started out containing a value ofhttp://www.yahoo.com/ this would be a link to Yahoo!
If myurl was rebranded, say tohttp://www.ebookfriends.com/ - then the link would lead to the front page of this forum