Maian Gallery is a theme based system. This means that you can create several different layouts for the system and use them at the same time. This page details how you can create your own themes:
» CREATING NEW THEME
The easiest way of creating a new theme, is to first make a copy of the 'standard' folder in the 'themes' directory. Then, call this theme something new and update your settings to use this theme. You can then make changes to your new theme and revert back to the default theme should you hit problems. It is VERY important that you do NOT rename any of the template files. For example renaming 'category.tpl.php' to 'categories.tpl.php' would cause the system to fail. The variables in the template files should also NOT be renamed. The same goes for the email templates. Do NOT change any variables.
» THEME SWITCHER
The theme switcher option is in your settings. If this is enabled and you have multiple themes, visitors can switch between themes. A cookie is set on the visitors machine, so when they return the theme they selected is still visible unless they change it. The theme you have specified in your settings will always be the default theme and the one that loads initially. Cookies last for 30 days. If you want to increase this open the 'inc/functions.php' file and find the following:
setcookie("mgallery_theme_cookie", $new_theme, time()+60*60*24*30);
This basically says that the cookie duration is 1min x 60(1Hr) x 24(1Day) x 30 = 30 Days. For more info, see the time & setcookie function pages. IMPORTANT! When changing the above do NOT rename the cookie variable names. Only alter the cookie duration.
» THEME VARIABLES
Some themes use different variables. For example, there are different ways of displaying the category links. If you see an effect you like, check the template that uses this effect for the correct variable name.
» AUTO CHANGING ATTRIBUTES ON THE FLY
If you have multiple themes, you may need to change the captcha text colours and/or the maximum display width when the image initially loads on the page. This depends on the template. As these settings are not found in the 'themes' folder, they need to be updated when a theme loads. If you need to change either of these attributes, please see the following file:
inc/theme_attributes.php
If no entries are found in the array, the script will default to the captcha text colour specified in the captcha config file and the display width in your settings. If you are using a single theme, this change does not apply.
» TEMPLATE COPYRIGHT
If applicable, your attention is drawn to the copyright notice for any theme. This and the Maian Script World copyright licence are seperate entities. The copyright and licence for the theme is determined by the theme author. If you are thinking of paying to remove the copyright, you should also sent a copyright removal fee to the theme creator if applicable. More information would be found on the theme creators website or, if applicable, in the 'template_license.txt' file in the relevant theme folder.
» DOWNLOAD
Available themes for Maian Gallery can be downloaded at: http://www.maianscriptworld.co.uk/free-php-scripts/maian-gallery/themes/index.html