Location: PHPKode > projects > Maian Gallery > maian_gallery/docs/setup/themes.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Maian Gallery v2.0 Documentation - Documentation - Themes</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<link href="stylesheet.css" rel="stylesheet" type="text/css">
</head>

<body>
<a name="top"></a>
<div align="center">
<table width="760" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
    <td align="left" valign="top" colspan="2" height="60"><img src="images/logo.gif" alt="Documentation" title="Documentation"></td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #FFFFFF">
<tr>

    <td>
    <table width="760" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td align="center" class="nav_menu">&lt; <a href="index.html" title="Home">Home</a> - <a href="install.html" title="Installation/Usage">Installation/Usage</a> - <a href="paypal.html" title="Paypal Setup">Paypal Setup</a> - <a href="themes.html" title="Themes" style="color:#A4E4F5">Themes</a> - <a href="faq.html" title="F.A.Q">F.A.Q</a> - <a href="info.html" title="Script Info">Script Info</a> &gt;</td>
    </tr>
    <tr>
        <td align="left" valign="top" style="padding:10px;" colspan="2" class="main">
        <!-- BEGIN TEMPLATE LOADING -->
        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:
  </td>
</tr>
<tr>
    <td class="header" colspan="2" align="left">&raquo; <b>CREATING NEW THEME</b></td>
</tr>
<tr>
    <td align="left" valign="top" style="padding:10px;" colspan="2" class="main">
    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.<br><br>
    It is <b>VERY</b> important that you do <b>NOT</b> 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 <b>NOT</b> be renamed. The same goes for the email templates. Do <b>NOT</b> change any variables.
    </td>
</tr>
<tr>
    <td class="header" colspan="2" align="left">&raquo; <b>THEME SWITCHER</b></td>
</tr>
<tr>
    <td align="left" valign="top" style="padding:10px;" colspan="2" class="main">
    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.<br><br>
    The theme you have specified in your settings will always be the default theme and the one that loads initially.<br><br>
    Cookies last for 30 days. If you want to increase this open the 'inc/functions.php' file and find the following:<br><br>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #FFFFFF;background-color:#0F5B96">
    <tr>
        <td align="left" style="padding:5px"><b>setcookie(&quot;mgallery_theme_cookie&quot;, &#036;new_theme, time()+60&#042;60&#042;24&#042;30);</b></td>
    </tr>
    </table><br>
    This basically says that the cookie duration is 1min x 60(1Hr) x 24(1Day) x 30 = 30 Days. For more info, see the <a href="http://uk3.php.net/time" title="Time Function" target="_blank"><u>time</u></a> &amp; <a href="http://uk3.php.net/manual/en/function.setcookie.php" title="Setcookie Function"><u>setcookie</u></a>
    function pages.<br><br>
    <b>IMPORTANT!</b> When changing the above do <b>NOT</b> rename the cookie variable names. Only alter the cookie duration.
    </td>
</tr>
<tr>
    <td class="header" colspan="2" align="left">&raquo; <b>THEME VARIABLES</b></td>
</tr>
<tr>
    <td align="left" valign="top" style="padding:10px;" colspan="2" class="main">
    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.
    </td>
</tr>
<tr>
    <td class="header" colspan="2" align="left">&raquo; <b>AUTO CHANGING ATTRIBUTES ON THE FLY</b></td>
</tr>
<tr>
    <td align="left" valign="top" style="padding:10px;" colspan="2" class="main">
    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:<br><br>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #FFFFFF;background-color:#0F5B96">
    <tr>
        <td align="left" style="padding:5px"><b>inc/theme_attributes.php</b></td>
    </tr>
    </table><br>
    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.<br><br>
    If you are using a single theme, this change does not apply.
    </td>
</tr>
<tr>
    <td class="header" colspan="2" align="left">&raquo; <b>TEMPLATE COPYRIGHT</b></td>
</tr>
<tr>
    <td align="left" valign="top" style="padding:10px;" colspan="2" class="main">
    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.<br><br>
    More information would be found on the theme creators website or, if applicable, in the 'template_license.txt' file in the relevant theme folder.
    </td>
</tr>  
<tr>
    <td class="header" colspan="2" align="left">&raquo; <b>DOWNLOAD</b></td>
</tr>
<tr>
    <td align="left" valign="top" style="padding:10px;" colspan="2" class="main">
    Available themes for Maian Gallery can be downloaded at:<br><br>
    <a href="http://www.maianscriptworld.co.uk/free-php-scripts/maian-gallery/themes/index.html" title="Themes" target="_blank"><u>http://www.maianscriptworld.co.uk/free-php-scripts/maian-gallery/themes/index.html</u></a>
    </td>
</tr>
<tr>
    <td align="right" valign="top" style="padding:10px;" colspan="2" class="main">
    <a href="#top"><img src="images/up.gif" border="0" alt="Back to Top" title="Back to Top"></a>
    </td>
</tr>
</table>
</td>
</tr>
</table>
</div>

<!-- Footer -->
<div id="footer">
	<p>Maian Gallery v2.0. Copyright &copy; 2006-<script type="text/javascript">var d = new Date(); document.write(d.getFullYear());</script> <a href="http://www.maianscriptworld.co.uk/free-php-scripts/maian-gallery/free-photo-gallery-system/index.html" title="Maian Script World">Maian Script World</a>. All Rights Reserved</p>
</div>
<!-- End Footer -->

</body>
</html>
Return current item: Maian Gallery