thumbnail layout thumbnail layout
 

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

thumbnail layout

Started by atiba, February 15, 2007, 03:17:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

atiba

I very new to coppermine & to php, I found Wordpress pretty easy to understand but I'm having a little trouble with Coppermine.

Basically on my site i just want a gallery page with just thumbnails from one folder, thats easy as I'll just set the link as thumbnails.php?album=1

I would love to get rid of all the information etc

Home > Gallery

TITLE     +      -
FILE NAME     +      -
DATE     +      -
POSITION     +      -

2 files on 1 page(s)

Also once I've clicked on the thumb & it opens the displayimage.php?album=1

I would like all that info to be striped too

If someone could point me in the right direction than that would be great

this is what I'm looking for a look something similar to this - http://www.dynia.com/portfolio/residential/


I want to my gallery home page to thumbnails.php?album=1 & not index.php

Joachim Müller


atiba

I managed to fix most of it via the configuration menu but I still have the problem of a Nav Menu.

I've been searching everywhere on how to get rid of the icons etc on the nav menu, I saw this solution in a post, but I keep getting "Parse Error: parse error, unexpected T_SL" after I upload the code

to remove icons from the image nav bar:
copy $template_img_navbar from themes/sample/theme.php to the theme you're actually using and modify it to your needs

This is the code, I haven't got a clue whats causing the error

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.10
  $Source$
  $Revision: 3275 $
  $Author: gaugau $
  $Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);
$template_img_navbar = <<<EOT

        <tr>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="{LOCATION}images/thumbnails.gif" align="middle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" class="navmenu_pic" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0" align="middle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="100%">
                        {PIC_POS}
                </td>
<!-- BEGIN report_file_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{REPORT_TGT}" class="navmenu_pic" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a>
                </td>
<!-- END report_file_button -->
<!-- BEGIN ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif"  border="0" align="middle" alt="{ECARD_TITLE}" /></a>
                </td>
<!-- END ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0" align="middle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif"  border="0" align="middle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>

EOT;
?>

Nibbler

There are no parse errors in the code you have posted.

atiba

I'm still getting the parse error everytime I upload the themes/classic/theme.php, is there anything else I should be doing?

Cheers

Joachim Müller

Zip your theme and attach it to your reply (using "additional options").

atiba

as requested

atiba

Found another solution to my problem, just downloaded theme.php.txt http://forum.coppermine-gallery.net/index.php?topic=27785.0
& used that, works great

Atiba

atiba