Help on theme ( need to add left menu) Help on theme ( need to add left menu)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Help on theme ( need to add left menu)

Started by nuketemala, November 29, 2003, 05:34:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nuketemala

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
One of a kind art
http://www.balam.us

Joachim Müller

left side menu: modify themes/water_drop/template.html<!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 // HTML template for main menuand add a line break ( <br /> ) after each <img...> tag, like this:<img src="themes/water_drop/images/orange_carret.gif" />--><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

zman

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

Joachim Müller

Make the admin controls align vertically instead of horizontally: edit index.php, find        $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        $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.