» FREQUENTLY ASKED QUESTIONS:
Listed below are some frequently asked questions about Maian Events.

» HOW DO I KNOW IF MY SERVER HAS THE GD2 LIBRARY INSTALLED?:
For the captcha to display, 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):

» 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.

» 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 'themes/(yourtheme)' folder. 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('themes/(yourtheme)/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('themes/(yourtheme)/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 events 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.

» 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.

» 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.

» 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 in the templates or else the data will not display correctly.

» 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.

» 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.

» CAN YOU RECOMMEND A GOOD FREE TEXT EDITOR?:
Sure, the one I use is: PSPad

» HOW DO I CREATE A THEME?:
Click the 'Themes' link at the top of the page for more info.

» WHAT IS PHP?:
See PHP.net for more info.

» I HAVE EVENTS SET TO SPAN DAYS, BUT THEY ARE NOT SPANNING FOR ARCHIVED EVENTS. WHY?:
Archived events are shown for the start date only. You can update this by playing around with the calendar class. Events don`t span for archived events to prevent the interface getting too cluttered and messy.

» 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.

» 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.

» CAN I CHANGE THE AMOUNT OF FUTURE EVENTS FOR THE RSS FEED?:
Yes. See the 'inc/defined.inc.php' file.

» CAN I CHANGE HOW THE COMMENTS ARE ORDERED?:
Yes. See the 'inc/defined.inc.php' file.

» CAN I CHANGE THE ARCHIVE START YEAR?:
Yes. See the 'inc/defined.inc.php' file.

» CAN I CHANGE THE AMOUNT OF EVENTS/COMMENTS THAT SHOWS PER PAGE?:
Yes. See the 'inc/defined.inc.php' & 'admin/inc/defined.inc.php' files.

» CAN I SPECIFY HOW MANY MONTHS TO SHOW FOR EVENTS COMING SOON?:
Yes. See the 'inc/defined.inc.php' file.

» CAN I CHANGE THE SIZE OF THE CONTACT & IMAGE POP WINDOWS?:
Yes. See the 'inc/defined.inc.php' file.

» CAN I INCREASE THE THUMBNAIL SIZES?:
Yes. Thumbnail sizes are set in the 'themes/*theme/stylesheet.css' file.

» CAN I SPECIFY HOW MANY FUTURE EVENTS TO SHOW ON ADMIN HOMEPAGE?:
Yes. See the 'admin/inc/defined.inc.php' file.