Home 

Requirements 

Whats New 

Features 

Architechure 

Security 

License Agreement 


    Evaluation 

    Deployment 

    Using 

Interface 

ASP 

Submitting 

Customization 

Settings 

Programming 

DB Integration 

Image Library 

Custom Buttons 

Presentation 


    Contact Us 

 

Image Library

The Image Library is an optional component that allows you to create a standard library of images that can be used in the HTML Rich Text Area. Additional images can also be uploaded to the library.

The Image Library requires Microsoft IIS as it is written in ASP. To disable the Image Library set the SHOWADDFROMLIBRARY constant to false. Refer to Settings.asp for more information.

To enable the Image Library ensure that SHOWADDFROMLIBRARY is set to true and that the IMAGELIBRARY constant correctly references the Library.asp file found in the /inc/ directory.

Configuring

To configure the Image Library for your web server edit the LibraryCode.asp page. At the top of the page you will find declarations:

'Declare the path to initially display in the window
const INITIALPATH = "c:\Inetpub\wwwroot\HTMLRichTextArea13\images\"

'TOPOFPATH is a subset of the INITIALPATH that the user is NOT to see and cannot navigate above
'This is important as the actual path may be very long.
' eg If INITIALPATH is "\inetpub\wwwroot\CUST2343234\WebSiteVersion1345\CustomerFeedback\images\"
'then TOPOFPATH is "\inetpub\wwwroot\CUST2343234\WebSiteVersion1345\CustomerFeedback\"
'The user will therefore only see '\images\'
const TOPOFPATH = "c:\Inetpub\wwwroot\HTMLRichTextArea13\images\"

'Declare the URL to the top of the path. This will be used by the component to locate
'the image for the preview.
const HTTPTOTOPOFPATH = "http://fireball/HTMLRichTextArea13/images/"

'Uncomment/comment out the following code to describe the mechanism used to
'upload files. Don't forget that the directories that are being uploaded to must
'have Read, Write, and Delete NTFS permissions.

'const UPLOADTOOL = "NONE" 'No file uploading is allowed
const UPLOADTOOL = "SAFILEUP" 'Using Soft Artisans FileUp
'const UPLOADTOOL = "MSPOSTINGACCEPTOR" 'Using the Microsoft Posting Acceptor
'const UPLOADTOOL = "OTHER" 'Using another product

Change the INITIALPATH, TOPOFPATH, HTTPTOTOPOFPATH and UPLOADTOOL to suit your environment.

If you use a file upload component other then Soft Artisans FileUp or the Microsoft Posting Acceptor you may need to modify some of the code to handle this component. Refer to the Library.asp, LibraryCode.asp and LibraryUpload.asp files for more information. the source code is commented and modifications will be relatively simple even for novice programmers.

If you set the UPLOADTOOL to 'NONE' the file upload text box is not displayed.

Permissions

You may need to set the permissions on the image library directory in order to allow the ASP code to read the directory and to upload files. Refer to the documentation on the file uploading component for more information.



(c) Copyright 2004
Sigma Solutions
tcpIQ is a member of the Sigma Solutions group