coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: atiba on February 15, 2007, 03:17:24 AM

Title: thumbnail layout
Post by: atiba on February 15, 2007, 03:17:24 AM
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
Title: Re: thumbnail layout
Post by: Joachim Müller on February 15, 2007, 07:56:07 AM
http://forum.coppermine-gallery.net/index.php?topic=25713.0 and some others. One question per thread!
Title: Re: thumbnail layout
Post by: atiba on February 15, 2007, 01:21:32 PM
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;
?>
Title: Re: thumbnail layout
Post by: Nibbler on February 15, 2007, 01:23:08 PM
There are no parse errors in the code you have posted.
Title: Re: thumbnail layout
Post by: atiba on February 15, 2007, 11:46:10 PM
I'm still getting the parse error everytime I upload the themes/classic/theme.php, is there anything else I should be doing?

Cheers
Title: Re: thumbnail layout
Post by: Joachim Müller on February 15, 2007, 11:51:49 PM
Zip your theme and attach it to your reply (using "additional options").
Title: Re: thumbnail layout
Post by: atiba on February 16, 2007, 02:41:55 AM
as requested
Title: Re: thumbnail layout
Post by: atiba on February 16, 2007, 10:49:06 AM
Found another solution to my problem, just downloaded theme.php.txt http://forum.coppermine-gallery.net/index.php?topic=27785.0  (http://forum.coppermine-gallery.net/index.php?topic=27785.0)
& used that, works great

Atiba
Title: Re: thumbnail layout
Post by: atiba on February 16, 2007, 10:53:37 AM
Post Solved.