eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
Learn How To Create, Publish & Market E-Books
E-Book Creation Software
Add sophisticated multimedia to your E-Books
Create E-Book covers in minutes
E-Book Marketing & Promotion made easy
Search engine for E-Books
Interviews with eBook authors
Tools for building better eBooks
Archived Message:

Script Help

jmiguy Hello everyone, this is my first post.

I'm trying to find a script to add to my html ebook page that inserts a picture, but only if the correct password has not been entered.

Once the correct password has been entered, I want the picture to be removed.

The idea is to post a notice on each page stating that the book is a trial version only. Once a password is purchased I want to remove the notice.(remove picture)

Any ideas?



Posted on: 7:21 pm on August 27, 2005
EBookCompiler You could use the preprocessor

Make your, please enter password image called something like picture0.gif and also make a picture1.gif which is a blank image.

Then in your ebook pages, include code something like this

<IMG SRC="picture[={iscorrectpassword}].gif">

And make sure preprocessor is enabled for all files containing this code

Posted on: 8:00 pm on August 27, 2005
jmiguy Thanks for the quick response.

I'm not quite sure I understand your suggestion. I tried using the line of code but it didn't seem to work.


Posted on: 1:47 am on August 28, 2005
jmiguy Hi, it's me again.

I created the two pictures as you said, with one being blank. I also checked the preprocessor box for my test page.

Do I need to include this line - "<IMG SRC="picture[={iscorrectpassword}].gif">" twice? (One for each picture)

And do I have to add a 1 or 0 somewhere within each line?

Sorry for my ignorance but I'm not a programmer.  

Thanks for your help.


Posted on: 3:50 am on August 28, 2005
jmiguy Never mind! My wonderful girlfriend who "is" a programmer explained your solution to me.

It works wonderfully.

The 0 and 1 need to be included in the name of each picture and the picture name has to be the same. But, only the name and not the number is included in the line of code.

I used two diferent picture names with no numbers in either name.

Your instructions were dead on, I just thought when you numbered the pictures in your instructions, that it was merely to differentiate between the two pictures. (my fault)

Thanks again for all of your help. You have a fantastic program and a fantastic business.


Posted on: 4:14 am on August 28, 2005

List All Archived Forums

Copyright © 2000-2018, Answers 2000 Limited.

With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures