eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
 
   
EBookApprentice.com
Learn How To Create, Publish & Market E-Books
 
   
EBookCompiler.com
E-Book Creation Software
 
   
EBookPower.com
Add sophisticated multimedia to your E-Books
 
   
CoverFactory.com
Create E-Book covers in minutes
 
 
  EBookSubmit.com
E-Book Marketing & Promotion made easy
 
  EBookJungle.com
Search engine for E-Books
 
  EBookInterviews.com
Interviews with eBook authors
 
  EBookEnhance.com
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?


Thanks,

Jeff


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.

Jeff


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.

Jeff



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.

Jeff


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

Go to discussion thread


Participate in current/new discussions



Copyright © 2000-2008, 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.

About and Terms Of Use    Privacy