HOME INSTALLATION/USAGE PAYPAL SETUP THEMES F.A.Q. SCRIPT INFO
Some frequently asked questions are shown below:
» Q: HOW DO I KNOW IF MY SERVER HAS THE GD2 LIBRARY INSTALLED?
For the captcha, auto thumbnail feature & watermarks, your server is required to have GD library enabled.

To find out if your server has this module installed you need to view your PHP configuration data. To do this copy and paste the following into a text editor:

<?php
phpinfo();
?>

Save the file as 'test.php' and upload to your server. Once uploaded access this file in your browser. You are looking for the data shown in the following image (note that versions may vary. should ideally be v2 or higher):

GD Library
» Q: OK, SO HOW DO I ENABLE IT?
If you are running your own server and the GD2 library is installed, but not enabled, open up your PHP.ini file and comment out the following line

extension=php_gd2.dll

Save file and then reboot the server. The script checks that this function is installed.
» Q: HOW DO I KNOW IF MY SERVER HAS CURL INSTALLED?
PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. It is required for the Paypal IPN system and is more reliable than using sockets, which are not supported by this script.

To find out if your server has this module installed you need to view your PHP configuration data. To do this copy and paste the following into a text editor:

<?php
phpinfo();
?>

Save the file as 'test.php' and upload to your server. Once uploaded access this file in your browser. You are looking for the data shown in the following image:

Curl
» Q: HOW CAN I ADD NEW PAGES?
All my scripts are structured the same with the templates and they all use the Savant3 template engine. I personally think this is the best template engine out there. Adding new pages is relatively easy:

[1] - Create a new .tpl.php file and pop it in the folder of the theme you are using. You might want to look at the structure of the others to get the same HTML/div information. These files can use both standard HTML and PHP.

[2] - Next open the index.php and find the closing break; at the bottom of the file. Lets say you create a new file called 'terms.tpl.php', after this break add the following:

case 'terms':
$tpl = new Savant3();
$tpl->display('templates/terms.tpl.php');

Access the new page as 'index.php?cmd=terms'. If you are using mod_rewrite you`ll also need to add the 'terms' attribute to the first RewriteRule.

[3] - If you need to pass dynamic data into the template, assign a new var:

case 'terms':
$tpl = new Savant3();
$tpl->assign('RANDOM', rand(1,9));
$tpl->display('templates/terms.tpl.php');

Then use <?php echo $this->RANDOM; ?> in the template. This example would generate a random number from 1 to 9. You could also add this directly into the template as <?php echo rand(1,9); ?>. You won`t need to pass data using the assign method unless you want content generated by the gallery system which couldn`t be accessed directly in the template.

Hope that helps create new pages. Note that if you use more than one theme, you will have to create a template file for each theme.
» Q: WHAT`S CHMOD?
Short for 'Change Mode' its a Unix command that lets you tell the system how much (or little) access it should permit to a file. For more information on this contact your web hosting company or try a search on Google.
» Q: HOW DO I SET UP A MYSQL DATABASE?
As servers vary, there is no one tutorial that can explain this procedure. Please contact your web hosting company who will be happy to advise you.
» Q: DOES THE SCRIPT SUPPORT OTHER SEND MAIL OPTIONS?
Yes, it also supports SMTP. Set your SMTP settings in your admin area. If set, this overwrites the PHP mail function. Note that some servers don`t require authentication for SMTP.
» Q: CAN I CHANGE HOW MANY LATEST/MOST VIEWED & RANDOM PICTURES DISPLAY?
Yes. See the options in the 'control/defined.php' file.
» Q: CAN YOU RECOMMEND SOFTWARE FOR AUTO CREATING THUMBNAILS?
Easy Thumbnails
FastStone Resizer
Image Resizer

Note that I am not affiliated with any of the above. You use them at your own risk. If you have problems, contact the developers.
» Q: CAN I INCREASE HOW MANY PICTURES SHOW IN THE RSS FEED?
Yes. See the options in the 'control/defined.php' file.
» Q: CAN I DISABLE THE COMMENTS AUTO RESPONDER?
Yes. See the options in the 'control/defined.php' file.
» Q: SOME OF MY FILE NAMES ARE LONG. CAN I CROP THEM TO MAINTAIN TEMPLATE CONSISTENCY?
Yes. See the options in the 'control/defined.php' file.
» Q: CAN I CHANGE THE AMOUNT OF DATA THAT DISPLAYS PER PAGE IN THE ADMIN AREA?
Yes. See the options in the 'admin/control/defined.php' file.
» Q: CAN I INCREASE HOW MANY LATEST COMMENTS SHOW ON THE ADMIN HOMEPAGE?
Yes. See the options in the 'admin/control/defined.php' file.
» Q: HOW DO VISITORS DOWNLOAD PICTURES WHEN THEY ARE PURCHASED?
They don`t. Maian Gallery does not support downloadable images. The system is for photographers who want to sell and ship high quality images.
» Q: CAN I CHANGE THE PREFIXES ADDED TO UPLOADED IMAGES?
Yes. See the options in the 'admin/control/defined.php' file.
» Q: CAN I CHANGE THE THUMBNAIL DISPLAY SIZE IN THE ADMIN AREA?
Yes. See the options in the 'admin/control/defined.php' file.
» Q: I CAN`T UPLOAD IMAGES. WHATS THE PROBLEM?
Most common problems are that the folders being written to are not writeable. You can also use your full server path by editing the option in the 'admin/control/defined.php' file.
» Q: HOW DO I EDIT THE TEMPLATES?
A good quality text editor will be fine. Notepad will be ok if you have nothing else. A program like Microsoft Frontpage should be avoided at all costs as it will rewrite the HTML data and screw up the layout.
» Q: CAN YOU RECOMMEND A GOOD FREE TEXT EDITOR?
SynWrite
PSPad
RJ TextEd
Notepad++
» Q: ARE THERE ANY ALTERNATIVES TO USING CURL?
There are, but they aren`t coded into Maian Gallery. If you don`t have CURL support, the payment system will not function.
» Q: HOW DO I CREATE A THEME?
Click the 'Themes' link at the top of the page for more info.
» Q: WHAT IS PHP?
See PHP.net for more info.
» Q: CAN I STOP THE COMMENTS TEXT FROM WRAPPING?
By default comments are set to wrap after x amount of chars, to stop someone from screwing up the layout. To alter or disable this feature alter the word wrap text total in the 'control/defined.php' & 'admin/control/defined.php' files. 0 disables the wrap.
» Q: CAN I REMOVE THE COPYRIGHT IN THE SCRIPT?
Please see the Maian Gallery website.

Note that the copyright removal fee is for the Maian Script World copyright notice only. If your theme has a template copyright, this must be left in place as per the licence of the free template. Contact the theme/template creator for more information.
» Q: THE JAVASCRIPT ADVANCED SEARCH CALENDAR ISN`T LOADING. WHY?