Advanced search  

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

Pages: [1]   Go Down

Author Topic: where to remove the spacer?  (Read 6175 times)

0 Members and 1 Guest are viewing this topic.

Cyclist

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
where to remove the spacer?
« on: November 28, 2005, 11:32:21 pm »

I am trying to create my own template. So far it's working quite well but I have a problem with a little line of the code.

In Thumbnail view the source code starts like this

Code: [Select]
<body>

  <table align="left" width="100%" border="0" >
    <tr>
      <td valign="top">
        <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td align="left" valign="top">
             
             
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />

<!-- Start standard table -->

I want to remove the spacer but I don't know where I find it in the theme.php.  It's in the table before the standard table.
« Last Edit: December 02, 2005, 12:16:56 am by GauGau »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: where to remove the spacer?
« Reply #1 on: November 29, 2005, 03:51:06 am »

my guess is it may be a part of the template.html right before the {GALLERY} token.
Logged

Cyclist

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: where to remove the spacer?
« Reply #2 on: November 29, 2005, 08:16:06 am »

That's where I looked first. But there it isn't. There is only the code without the spacer.
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: where to remove the spacer?
« Reply #3 on: November 29, 2005, 07:17:18 pm »

perhaps post your theme, or tell us what theme yours is based on, otherwise were just shooting in the dark.
Logged

Cyclist

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: where to remove the spacer?
« Reply #4 on: November 29, 2005, 10:27:21 pm »

sorry, it's based on the Classic theme.
Logged

Cyclist

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: where to remove the spacer?
« Reply #5 on: November 29, 2005, 10:34:59 pm »

I suppose it has something to do with {Gallery} because in the template it doesn't show up at all. I have deleted almost all place holders for testing purposes and now the whole source code of the template just contains following lines:


Code: [Select]
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html dir="{LANG_DIR}">
<head>
<title>{TITLE}</title>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
{META}
<link rel="stylesheet" href="../../../layout/css/main.css" type="text/css" />

<script type="text/javascript" src="scripts.js"></script>
<!-- $Id: template.html,v 1.18 2005/10/25 01:16:24 gaugau Exp $ -->
</head>
  {CUSTOM_HEADER}
<body>

  <table align="left" width="100%" border="0" >
    <tr>
      <td valign="top">
        <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td align="left" valign="top">
              {GALLERY}
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  {CUSTOM_FOOTER}{VANITY}
</body>
</html>

There isn't any line containing the spacer, so I am confused about where tosearch for it and where to change it.
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: where to remove the spacer?
« Reply #6 on: November 29, 2005, 11:41:57 pm »

cyclist:
copy this (from themes.inc.php) into your theme.php file.
This will cause your theme to override what is in themes.inc.php

Delete the spacers in this section to see if that is what you want.


Quote
// HTML template for thumbnails display
if (!isset($template_thumbnail_view))  //{THEMES}
$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="center">
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {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;
// HTML template for the thumbnail view when there is no picture to show
if (!isset($template_no_img_to_display))  //{THEMES}
$template_no_img_to_display = <<<EOT
        <tr>
                <td class="tableb" height="200" align="center">
                        <font size="3"><b>{TEXT}</b></font>
                </td>
        </tr>
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;


Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Cyclist

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: where to remove the spacer?
« Reply #7 on: November 30, 2005, 01:06:26 am »

unfortunately that doesn't change anything.  :\'(
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: where to remove the spacer?
« Reply #8 on: November 30, 2005, 01:12:47 am »

unfortunately that doesn't change anything.  :\'(

Cyclist,

there are many sections like that in the themes.inc.php.
It all depends on WHICH specific thumbnail display you are talking about.

Try copying another section that displays thumbnails from themes.inc.php to your themes.php folder.  Maybe the album list, catlist... etc.

Delete the block that does'nt affect the change you want, replace it with a new block and try again.

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Cyclist

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
found it
« Reply #9 on: December 01, 2005, 12:10:13 am »

finally I found it, it was the one of the category view!

« Last Edit: December 01, 2005, 01:21:05 pm by Cyclist »
Logged

cptnem0

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Edit Displayimage.php navigation buttons
« Reply #10 on: February 15, 2006, 11:39:49 pm »

Just a heads-up to anyone searching on how to edit navigation buttons (next, previous, slideshow, file information, back to thumbnails, send as e-card) the above mentioned location is where to find the img and href tags.

theme.inc.php

line 1259+

took me 2 hours of searching.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: where to remove the spacer?
« Reply #11 on: February 16, 2006, 02:38:08 am »

You shouldn't modify themes.inc.php. You need to copy the code section over to your theme's theme.php file.
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 16 queries.