ContentManager Documentation

ContentManager Documentation *

Description *

Installation *

Description

Content Manager is one of the most Useful programs we have ever made for any content based site.

This script once setup and run will read all directory names below your main image content directory and fully catelog all images in sub sections named for the directories the images reside in. It will create the menu the users see, it will create thumbnails of all images, it will create html pages for all thumbnails in quantities per page that YOU specify.

This script is really a major league Time Saver for any content based site.

Installation

Getting Started ( What will I need )
-------------------------------------------------
Telnet program ( see startup.txt for suggested Programs )
Ftp program ( see startup.txt for suggested Programs )
Text editor ( see startup.txt for suggested Programs )

Additional items you'll need
-------------------------------------------------
Many Linux based Webserver already have these installedcjpeg,djpeg - comes with libjpeg:
ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gzpnmscale - comes with the netpbm utils package
ftp://wuarchive.wustl.edu/graphics/graphics/packages/NetPBM/netpbm-1mar1994.tar.gz [The ibraries need to be compiled into your Server ask your server admin if they are avail]

*-------------------------------------------------*
* INSTALLATION *
*-------------------------------------------------*

-------
Step #1
-------

Change the following line in contentman.pl to point to the location on your server that contains folder.gif
$foldrloc = "http://yourdomain.com/images/folder.gif";

-------
Step #2
-------

load template. and treetemplate. into your text editor and edit
<img src="http://yourdomain.com/members/images/header01.gif" border="0">
Inserting the correct location for your header image fileedit title, and CSS(cascading stylesheets) variables

-------
Step #3
-------

If you keep your picture content in public_html/pictures
upload nospaces.pl in ascii into your /pictures subdirectory
chmod 755 nospaces.plThen run it with the following command ./nospaces.pl .
< make sure you include the period
(* Nospaces.pl is used to remove spaces from directory names you will not need it unless you use *)
(* subdirectories with spaces *)

-------
Step #4
-------
Upload template. , treetemplate. , and contentman.pl into the directory below your content dir in the
above example it would be uploaded into your /public_html/ directory.then chmod 755 contentman.pl Your now ready to run the contentmanager the command for that is which follow the above example is:     perl contentman.pl pictures

*-------------------------------------------------*
* Using Variables and their meanings *
*-------------------------------------------------*
The following is used in treetemplate
^%js_defs%    global javascript variables... must be placed inside your <head> </head> tags for javascript to work...

%tree%    ( Inserts the directory tree into the html document there you place it)

%select <attributes>%    ( Inserts a select list into the html document with the <attributes> as the attributes to the select tag. The suggested use of this variable is

%select onchange="location=this.value"%)

%category% and %subcategory%    (Inserts select lists into the html document that list the first level directories in the %catagory% list and then when a directory is selected, fills in the %subcategory% select list with the directories under the chosen one. The %subcategory% list has an onchange to bring you to the right page)

The Following is used in template

^%table%    ( inserts the premade table of thumbnails )%prevlink% ( Places a link to the previous gallery )

%nextlink%    ( Places a link to the Next gallery )

%mainlink%    ( Puts in a link to the mian gallery page also the %tree% location


Proud suppliers of perl cgi and php applications created from the webmasters point of view. PerlCoders supplies top quality CGI scripts at membership warehouse prices every day. This is the only webmaster resource you need to build traffic and add interactive content to any website.

Need custom programming or website development? We do it all. Just use our contact form and let us know what you need.

Perlcoders.com - Copyright © 2003 by PerlCoders Group
Privacy policy       Licensing policy       Site Usage Terms
Not a member yet?
Click Here
User:
Pass:
I forgot my password
  HomePage
Current News
Our Products
Our Services
FAQ & Docs
Support
Contact
Make Money!
Affiliate Login
 
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...


 
Get the latest News at
the Perlcoders group.

 
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
Free Support
Custom programming
SEO Forum
Myth of Caesar
Image Hosting
SEO Resources
Cellulean
Google Forum
Click here to join ArticleDistribution
Click to join Article Distribution