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:

Password protect downloadable graphics

seafarer I am trying to create an ebook where I have several thumbnail images that when clicked on will download larger images that can be saveas to the user's computer. I have used the following code and it works:

<A HREF="##FILESAVEPROMPT('sv1','sv2','Save Image','{win}','picture.jpg')##IF({sv1})##FILECOPY('sv3','{ebook}\picture.jpg','{sv2}')##ENDIF"><IMG SRC="thumbnail.jpg"></A>

Now, I would like to add in password protection into the script so that:

1. If the password has been entered and the ebook unlocked, the routine for saveas proceeds as above.
2. If the password has not been entered, the saveas becomes unsuccessful and a dialogue box appears that prompts the user to pay for the password first.
3. At the same time, the images of padlock will change to blank images when the ebook has been unlocked.
4. Some of the images can be saveas to serve as samples, while others will be password protected in order for me to sell the passwords.

I hope you can help.  

Posted on: 6:38 pm on November 5, 2005
EBookCompiler 3 - is in the Q+A in the Help

4 - I would assume you just leave the code as is

1+2. You'll need to make a script file to save the image



Then save_picture.as would contain something like

MESSAGEBOX('You need to buy a password before you can save!')

FILESAVEPROMPT('sv1','sv2','Save Image','{win}','picture.jpg')



Posted on: 9:51 pm on November 25, 2005
seafarer Thank you. I have create an ebook that you can download safety cartoons for printing. You can download the ebook athttp://www.cartoon-web.com/cs.htm

I have put up the code as suggested.

Best Wishes

Posted on: 3:29 am on November 27, 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