04/29/09
Acquired
Kentucky based TubiRon Inc. has acquired PerlCoders.com and PHPLabs.com. Please check back for updates as we prepare for a relaunch.


more news..



Email:

 

HomePage
Current News
Our Products
Our Services
FAQ & Docs
Support
Contact
Make Money!
Affiliate Login

What our clients say
Tell us what you think
Projects in the works
Free scripts to members
Free self help ebooks
Free Tip of the Day
Custom programming

Live Support Chat

 
 
 
 
 
 
 
SimleGallery

SimleGallery Documentation
Installation
------------

Upload the .pl file in ASCII mode to your webserver and set it mode 755.

After that, edit the configuration section of the file. There are
a number of variables:

$new_dir
- This directory contains all your "new" pictures. Before
running this script for the first time, be sure
to have enough content in there.

$cur_dir
- This directory contains the images needed for todays' gallery.
This directory needs to be web acessible!

$full_url
- This is the URL to $cur_dir.

$html_dir
- This directory will contain all html needed for todays galleryl.
This directory needs to be web accessible!

$html_url
- The URL to the $html_dir directory.

$thumb_dir
- This is the directory where all the thumbnails are created
This directory needs to be web accessible!

$thumb_url
- This is the URL to the $thumb_dir directory.


IF YOU WISH TO USE ARCHIVED GALLERIES

$use_archives="yes";
- Set this to yes to archive all galleries, and no to not archive.

$archive_dir
- This directory is where all archives are stored by date.
This directory must be web viewable.

$archive_url
- This is the URL to the archives directory.
This directory must be web viewable.

$listingpage
- This is a full path AND filename for archives listing html page


$tx
$ty
- The size of thumbnails in pixels. tx = width, ty = height

$gal_cols
$gal_rows
- The number of rows and colums for a gallery.

$cjpeg
$djpeg
$pnmscale
- The path and filename of these programs


*NOTE* ------------------------------------------------------------
Make sure ALL directories listed above are created where you specify
in the config and are chmod so the webserver can write to them.
For ease of use you can chmod all directories to 777.
--------------------------------------------------------------------


To customise your gallery, edit the files in the templates/
directory.

gal_header.tmpl is used as header for the gallery and NEEDS
to have a <table> tag as last line

gal_footer.tmpl is used as footer for the gallery and NEEDS
a </table> tag on the first line

pic.tmpl is used to create separate html files to view
the full images in todays' gallery.

listing.html is only if you are archiving galleries. This will
determine what your listing page will look like.

Crontabbing
-----------

Crontab the script like this to have a new gallery every day:

0 0 * * * * (cd /path/to/script && ./SimpleGallery.pl)

   
  
 


 

 
 

PerlCoders.com has been in business for several years. Our staff is made up of professionals who are dedicated to making your business succeed. We offer top quality scripts and 24 hour support!

 
Not a member yet?
Click Here
User:
Pass:
I forgot my password

Right now get access at a special rate of only $160 which includes more than 156 of our top quality CGI scripts and get deep discounts on many others. You also get full access to our members area which is slam packed with webmaster goodies.

  · Read more...


BuildExec
Reliable Hosting
PHP Labs