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: How to change layout of templates  (Read 3453 times)

0 Members and 1 Guest are viewing this topic.

wolfram.b

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
How to change layout of templates
« on: August 13, 2007, 03:15:11 pm »

hi,
I am using 1.410 (i will do the upgrade :-)).
in order to show pictures nicely so that nobody has to scroll down, I want make the part above the pictures in the displayimage.php shorter. I tried a few changes on the template html, but they do not work. my theme is waterdrop. website http://www.luposplanet.com/gallery

please give me a hint, how to reduce the spacing etc...

thanks wolfram
« Last Edit: August 13, 2007, 06:23:26 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to change layout of templates
« Reply #1 on: August 13, 2007, 04:22:49 pm »

1) As suggested: upgrade. Don't take this lightheartedly - the upgrade is mandatory due to security issues. I'm reluctant to tell you anything that disturbs you from what should be your primary goal: upgrading

2) Don't use the theme names that come with coppermine out of the docs: rename the custom theme you use. See http://documentation.coppermine-gallery.net/theme_create.htm#theme_create_rename

3) Edit your custom theme's template.html (currently http://www.luposplanet.com/gallery/themes/water_drop/template.html, but as suggested you should rename your custom theme first): the table definition at the very top defines padding and spacing. Get rid of the deprecated HTML top padding/margin - find
Code: [Select]
<table width="100%" border="0" cellpadding="10" cellspacing="10">and replace with
Code: [Select]
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:0px;margin-bottom:10px;margin-left:10px;margin-right:10px;padding-top:0px;padding-bottom:10px;padding-left:10px;padding-right:10px;">(you better ,move the extra style stuff into style.css - create a separate class for it.

4) Your menu fills two rows. Change
Code: [Select]
{SYS_MENU}<br>{SUB_MENU}to
Code: [Select]
{SYS_MENU}<br>{SUB_MENU}
5) Add anchors to the previous / next buttons as suggested in http://forum.coppermine-gallery.net/index.php?topic=35140.0
Logged

wolfram.b

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: How to change layout of templates
« Reply #2 on: August 13, 2007, 05:58:08 pm »

Hello Gaugau,
thanks
2,3 and 4 worked.
5 I had a look over, but a little too tricky for me at the moment, I will have a look around it later.

for upgrading (1)....
never done it, cause my provider had coppermine "ready-to-install", just to click to start the installation.
I guess, I have to look it up in the forum "upgrading,..."
right,
thanks for your fast help.

Wolfram
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to change layout of templates
« Reply #3 on: August 13, 2007, 06:22:44 pm »

never done it, cause my provider had coppermine "ready-to-install", just to click to start the installation.
Pre-made installs are not recommended. Quite frankly: they suck.

I guess, I have to look it up in the forum "upgrading,..."
right,
Yup. It's easy and painless - no need to be afraid.

2,3 and 4 worked.
OK, great: marking thread accordingly.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.