where to remove the spacer? where to remove the spacer?
 

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

where to remove the spacer?

Started by Cyclist, November 28, 2005, 11:32:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cyclist

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

<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.

donnoman

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

Cyclist

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

donnoman

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

Cyclist

sorry, it's based on the Classic theme.

Cyclist

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:


  <!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.

artistsinhawaii

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
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

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

artistsinhawaii

Quote from: Cyclist on November 30, 2005, 01:06:26 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
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

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


cptnem0

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.

Tranz

You shouldn't modify themes.inc.php. You need to copy the code section over to your theme's theme.php file.