Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Integration with mywebsite  (Read 2916 times)

0 Members and 1 Guest are viewing this topic.

hardy24

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Integration with mywebsite
« on: February 15, 2006, 05:46:14 pm »

Hi,

I want to integrate coppermine with my html website (www.24fans.com), I figured that was mostly easily accomplished by modifying coppermine to include my header and footer, which I'm fairly confident I can do by following the instructions in the documentation on that. But my problem comes when I try to figure out how to add my menu/left sidebar to the coppermine skin.

Any help gratefully received, thanks in advance.
« Last Edit: February 16, 2006, 07:08:39 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Integration with mywebsite
« Reply #1 on: February 16, 2006, 10:50:19 am »

The name "custom header" doesn't necessarily mean that you can only include the stuff that is at the top of your page. Instead, it means that you can add everything there that is suppossed to come in front of the actual gallery content, even the left sidebar.

Here's an example:
Your custom header file's content:
Code: [Select]
<h1>Some overall header at the top</h1>
<table>
<tr>
<td>The sidebar</td>
<td>

Your custom footer file's content:
Code: [Select]
</td>
</tr>
</table>

The template file of your custom theme (template.html):
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/yourtheme/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
  {CUSTOM_HEADER}
        <table>
          <tr>
            <td>
              {SYS_MENU}<br />
              {SUB_MENU}<br />
              {ADMIN_MENU}
            </td>
          </tr>
          <tr>
            <td>
              {GALLERY}
            </td>
          </tr>
        </table>
  {CUSTOM_FOOTER}
</body>
</html>
Logged

hardy24

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Integration with mywebsite
« Reply #2 on: February 16, 2006, 11:14:34 am »

Oh, ok, great, thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.