forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: nuketemala on November 29, 2003, 05:34:24 am

Title: Help on theme ( need to add left menu)
Post by: nuketemala on November 29, 2003, 05:34:24 am
hello Gurus, I need your valuable help .
I need to change the Water drop theme.
I would like to have a left menu on it.
and add a custum header ( I want to add the phpnuke header to the theme.)  I do not want to use the phpnuke module, I want my gallery be stand alone. if any of you would like to help me out . thaks gurus
Title: Help on theme ( need to add left menu)
Post by: Joachim Müller on November 29, 2003, 09:49:00 am
left side menu: modify themes/water_drop/template.html
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{LANG_DIR}">
<head>
<title>{TITLE}</title>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
{META}
<link rel="stylesheet" href="themes/water_drop/style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="20" cellspacing="20">
<tr>
        <td valign="top" bordercolor="#666666" bgcolor="#FFFFFF" style="border: 1px solid #ccd7e0; background-color: #fff;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                       <tr>
                                <td width="100%" align="center">
                                        <h1>{GAL_NAME}</h1>
                                        <h3>{GAL_DESCRIPTION}</h3><br />
                                </td>
                        </tr>
                </table>
                <img src="images/spacer.gif" width="1" height="15" /><br />
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center" valign="top">
                                        {MAIN_MENU}
                                </td>
                                <td align="center" valign="top">
                                        {ADMIN_MENU}
                                        {GALLERY}
                                </td>
                        </tr>
                </table>
        </td>
</tr>
</table>
</body>
</html>
and modify themes/water_drop/theme.php - look for the section
Code: [Select]
// HTML template for main menuand add a line break ( <br /> ) after each <img...> tag, like this:
Code: [Select]
<img src="themes/water_drop/images/orange_carret.gif" />-->
Code: [Select]
<img src="themes/water_drop/images/orange_carret.gif" /><br />Should be it...

custom header: http://coppermine.sourceforge.net/faq.php?q=customHeader#customHeader (not recommended unless you feel a little comfortable at least with php.

GauGau
Title: Re: Help on theme ( need to add left menu)
Post by: zman on October 22, 2005, 03:02:44 pm
Hello GauGau,

Thanks for this valuable mod! :) It saves a lot of vertical space for portrait images!
However, I have a problem after adding this mod. If I'm in admin mode, the albums view is simply too wide (I need to scroll a lot to the right to see the end). Only the albums are too wide, the "random pics" have correct width (but they are centered). If I'm not in admin mode, the albums have the width I set in the config (i.e. correct). Did I do something wrong? How can I correct this?
Here is a pic, how it looks like in admin mode
Title: Re: Help on theme ( need to add left menu)
Post by: Joachim Müller on October 22, 2005, 03:35:39 pm
Make the admin controls align vertically instead of horizontally: edit index.php, find
Code: [Select]
        $params = array('{CONFIRM_DELETE}' => $lang_album_admin_menu['confirm_delete'],
            '{DELETE}' => $lang_album_admin_menu['delete'],
            '{MODIFY}' => $lang_album_admin_menu['modify'],
            '{EDIT_PICS}' => $lang_album_admin_menu['edit_pics'],
            );
and replace with
Code: [Select]
        $params = array('{CONFIRM_DELETE}' => $lang_album_admin_menu['confirm_delete'],
            '{DELETE}' => $lang_album_admin_menu['delete'].'<br />',
            '{MODIFY}' => $lang_album_admin_menu['modify'].'<br />',
            '{EDIT_PICS}' => $lang_album_admin_menu['edit_pics'].'<br />',
            );
(untested). I wouldn't bother too much though, as this is something your site visitors will never see. Please keep in mind that you're replying to a thread in the cpg1.2 support board, which is very outdated and only there for reference. Please do not reply to threads in this old support board any more. Use the one that corresponds with your coppermine version instead.