Organization of main Thumbnails.php page Organization of main Thumbnails.php page
 

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]

Main Menu

Organization of main Thumbnails.php page

Started by MarianneC, August 17, 2008, 02:57:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarianneC

In all the themes I looked at, it looks as if this page displays the thumbnail with the title and caption below it - all centered.  I would like to re-arrange this so that it works in a two column table with the thumbnail on the left and the title / caption / other info on the right in each table row. 

I have not been able to find the spot in the code to modify the layout. Any pointers?

Thanks,
Marianne

Nibbler

Copy the $template_thumbnail_view template from the sample theme into your custom theme.php and modify your copy.


MarianneC

Sigh.  It's not my day.  Did that.  (Actually, had done it earlier in the week.)  Did not change anything one iota.   Just cleaned out my cache and browsing history in case it was somehow hung up in that - but that didn't change anything either.

<?php


/*************************


  Coppermine Photo Gallery


  ************************


  Copyright (c) 2003-2008 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 version 3


  as published by the Free Software Foundation.


  


  ********************************************


  Coppermine version: 1.4.18


  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/themes/classic/theme.php $


  $Revision: 4380 $


  $Author: gaugau $


  $Date: 2008-04-12 12:00:19 +0200 (Sa, 12 Apr 2008) $


**********************************************/





// ------------------------------------------------------------------------- //


// This theme has all CORE items removed                                     //


// ------------------------------------------------------------------------- //



define('THEME_HAS_NO_SYS_MENU_BUTTONS'1);

define('THEME_HAS_NO_SUB_MENU_BUTTONS'1);

// HTML template for thumbnails display


$template_thumbnail_view = <<<EOT





<!-- BEGIN header -->


        <tr>


<!-- END header -->


<!-- BEGIN thumb_cell -->


        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">


                <table width="100%" cellpadding="0" cellspacing="0">


                        <tr>


                                <td align="left" width="70">


                                        <a href="{LINK_TGT}">{THUMB}<br /></a>



                                </td>
                                <td align="left">

                                        {CAPTION}


                                        {ADMIN_MENU}

                                </td>
                        </tr>


                </table>


        </td>


<!-- END thumb_cell -->


<!-- BEGIN empty_cell -->


                <td valign="top" class="thumbnails" align="center">&nbsp;</td>


<!-- END empty_cell -->


<!-- BEGIN row_separator -->


        </tr>


        <tr>


<!-- END row_separator -->


<!-- BEGIN footer -->


        </tr>


<!-- END footer -->


<!-- BEGIN tabs -->


        <tr>


                <td colspan="{THUMB_COLS}" style="padding: 0px;">


                        <table width="100%" cellspacing="0" cellpadding="0">


                                <tr>


                                       {TABS}


                                </tr>


                        </table>


                </td>


        </tr>


<!-- END tabs -->


<!-- BEGIN spacer -->


        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />


<!-- END spacer -->





EOT;


?>


That's what is meant by insert into theme.php, right?  From looking  at other themes, that seems to be it, but it didn't do anything.

Marianne

Nibbler

Is that the theme you are actually using? Post a link to your gallery and what the theme is called.

MarianneC

Nibbler - here's the link:

http://www.useaboston.com/2008a/thumbnails.php?album=1&page=1&sort=na

The theme is customized.  And yes, what I posted is what is in the theme right now.  It started with classic - which has nothing in the theme.


Nibbler

The album is password protected; I can't see anything.

MarianneC

I never set it to be private - but I just went in and changed the setting that said albums could be private from yes to no.  The default must be yes.

Hopefully, that will do it.