Some frequently asked questions are shown below. Please check here before requesting support:
» 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):
» 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:
» Q: HOW CAN I ADD NEW PAGES?
All my scripts are structured the same with the templates and they all use the Savant2 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 Savant2(); $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 Savant2(); $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: I CANNOT SET THE SCRIPT UP MYSELF. CAN YOU HELP?
Yes. So long as you think about sending a small donation first. For me to set the script up for you I`ll need access to your server via your control panel AND FTP access.
» 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 USE HTML IN MY E-MAILS?
Yes you can. Open the 'classes/class_mail.inc.php' & 'admin/classes/class_mail.inc.php' files in your text editor and change the status of the following var to true:
var $html = false;
Note that you`ll need line breaks (<br> or <br />) in the templates or else the data will not display correctly.
» Q: CAN I CHANGE HOW MANY LATEST/MOST VIEWED & RANDOM PICTURES DISPLAY?
Yes. See the options in the 'inc/defined.inc.php' file.
» Q: CAN YOU RECOMMEND SOFTWARE FOR AUTO CREATING THUMBNAILS?
Sure. The one I use is the excellent Smaller Animals Thumbnailer. Bargain feature packed thumbnail creator for $25.00. If your budget is lower, try Easy Thumbnails, Easy Graphic Converter or Thumbnail Refinery. 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 'inc/defined.inc.php' file.
» Q: CAN I DISABLE THE COMMENTS AUTO RESPONDER?
Yes. See the options in the 'inc/defined.inc.php' file.
» Q: CAN I USE THE THEME SWITCHER IN THE HEADER TEMPLATE?
Yes. Use <?php echo $this->THEME_SWITCHER; ?> to load the theme switcher div in the header template.
» Q: SOME OF MY FILE NAMES ARE LONG. CAN I CROP THEM TO MAINTAIN TEMPLATE CONSISTENCY?
Yes. See the options in the 'inc/defined.inc.php' file.
» Q: CAN I CHANGE THE SIZE OF THE QUESTION/CONTACT WINDOW?
Yes. See the options in the 'inc/defined.inc.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/inc/defined.inc.php' file.
» Q: CAN I INCREASE HOW MANY LATEST COMMENTS SHOW ON THE ADMIN HOMEPAGE?
Yes. See the options in the 'admin/inc/defined.inc.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/inc/defined.inc.php' file.
» Q: CAN I CHANGE THE THUMBNAIL DISPLAY SIZE IN THE ADMIN AREA?
Yes. See the options in the 'admin/inc/defined.inc.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/inc/defined.inc.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?
Sure, the one I use is: PSPad
» 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 'inc/defined.inc.php' & 'admin/inc/defined.inc.php' files. 0 disables the wrap.
» Q: CAN I REMOVE THE COPYRIGHT IN THE SCRIPT?
Please see the Copyright Removal page. 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?
There are a couple of reasons why this calendar will fail. Firstly, the language file has been edited incorrectly and the calendar vars are causing a javascript error. View your javascript error console or script debugger for more info. Another possible problem is the path isn`t being parsed correctly to the calendar javascript file. If this is the case, open the 'themes/*theme/js/calendar.js.php' file in your text editor and update the path at the top of the file. If your server is running in Safe Mode, this will most likely be the problem. If you want to disable it, remove the 'onclick' tags from the date input fields in the 'themes/*theme/advanced_search.tpl.php' file and remove the js call in the header template.