Main (edit)

Scripts

Technology

Recent Changes Printable View Page History Edit Page
  • Image Watermarks:

To get watermark support working for your images, you will need to have the following support built into your PHP install:

--with-gd
--with-jpeg-dir
--with-ttf
--with-freetype-dir

Supports for .png, .jpg, .gif image file types is built into Destiney Scripts, but you must make sure your PHP install supports these file types to use them. In particular you may find that .gif file support is not available in your PHP install due to licensing issues with the .gif compressions algorithms.

* Windows users who use a pre-built PHP binary install will need to load the "php_gd2.dll" extension in the php.ini file. The extension is available at PHP.net but is usually included with PHP.

If you have problems you can upload the opt/test.php files to you web server and view them in a browser. test.php performs specific tests on your web environment and the capabilities of your MySQL? install and contains a specific section about your PHP's GD support.

  • Fonts:

You will need to upload a True Type font of your choosing to the lib/fonts directory. You will then need to select this font from the Settings page in the admin site. No commercial fonts are distributed with Destiney Rated Images Script due to obvious licensing and distribution restrictions.

There are free True Type fonts available:

You can use any True Type font you like, you just have to provide it yourself. You can find the arial.ttf font on any windows computer for example. Fonts are usually stored in c:\windows\fonts.

  • Graphs:

To get your site and user stats graphs working you will need to acquire the free version of the JPGraph software package located at http://www.aditus.nu/jpgraph/jpdownload.php. Make a directory in your lib directory called "jpgraph". Upload the contents of the JPGraph src folder to lib/jpgraph directory.

Your directory structure should look similar to this after the upload:

lib/include
lib/jpgraph
lib/jpgraph/jpgraph.php (and other jpgraph files)

You need to configure JPGraph per the JPGraph install docs.

Specifically you need to provide fonts and define the paths for fonts and cache directories:

DEFINE( "CACHE_DIR", "/var/www/localhost/htdocs/Destiney_rated_images/lib/cache/" );
DEFINE( "TTF_DIR", "/var/www/localhost/htdocs/Destiney_rated_images/lib/fonts/" );

  • Cache:

To speed up page load time and to lessen load on your database server, parts of the site content is cached in lib/cache. These files are recreated regularly per the settings you choose in the admin site. You may also delete the cached files if you need them renewed on demand. The cache file recreation process is invoked by visitors to your site and requires no attention by you. If the files are out of date, they will be automatically rebuilt as required. Visitors to your site who trigger the rebuild are sent dynamic content so they don't have to wait.

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - SearchWiki
Page last modified on May 12, 2005, at 08:27 PM