How to change layout of templates How to change layout of templates
 

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

How to change layout of templates

Started by wolfram.b, August 13, 2007, 03:15:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wolfram.b

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

Joachim Müller

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<table width="100%" border="0" cellpadding="10" cellspacing="10">and replace with<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{SYS_MENU}<br>{SUB_MENU}to{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

wolfram.b

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

Joachim Müller

Quote from: wolfram.b on August 13, 2007, 05:58:08 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.

Quote from: wolfram.b on August 13, 2007, 05:58:08 PMI guess, I have to look it up in the forum "upgrading,..."
right,
Yup. It's easy and painless - no need to be afraid.

Quote from: wolfram.b on August 13, 2007, 05:58:08 PM
2,3 and 4 worked.
OK, great: marking thread accordingly.