Advanced search  

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

Pages: [1]   Go Down

Author Topic: Help on theme ( need to add left menu)  (Read 5982 times)

0 Members and 1 Guest are viewing this topic.

nuketemala

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
  • artist
    • balam soto  art gallery
Help on theme ( need to add left menu)
« 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
Logged
One of a kind art
http://www.balam.us

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Help on theme ( need to add left menu)
« Reply #1 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
Logged

zman

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Help on theme ( need to add left menu)
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help on theme ( need to add left menu)
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 18 queries.