Removing captions

joelgrimes

Joined: 2002-10-25
Posts: 2
Posted: Fri, 2002-10-25 22:10

Using 1.3

I want to remove the captions altogether from my album (that is, I only want thumbs, no text) and I can't find how to do that in any of the html_wrapper files.

Also, I would like to remove the bottom page counter and have only the top - where can I do this?

I'm trying to squeeze my albums in a box about 400 x 300 - which isn't so hard if I only allow 1 row of thumbs per page, but 2 would be much better.

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2002-10-25 22:50

Hi joelgrimes.
There's nothing in the html_wrap you can change. You'll have to edit the php files to do both of these. This isn't straightforward, so I'd recommend you make and keep backup files of anything you edit.

Removing the captions forcibly is not very easy. To remove captions from the thumbnail browser, edit view_albums.php and remove:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>/* Now do the caption row */
echo("<tr>");
...
...
echo "</tr>";
/* Now do the inline_albumthumb footer row */</TD></TR></TABLE><!-- BBCode End -->
Note that this will remove the menu of editing options available to the album owner as well :sad: . If you know enough php, though, you can probably patch this up to make it work the way you want.

To remove the stuff from the bottom of the page is a good bit simpler: just edit these three pages:
From albums.php remove:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE><!-- bottom nav -->
<?php
include($GALLERY_BASEDIR . "layout/navigator.inc");
?>
<!-- bottom nav --></TD></TR></TABLE><!-- BBCode End -->
From view_albums.php remove:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE><!-- bottom nav -->
<?php
include($GALLERY_BASEDIR . "layout/navigator.inc");
if (strcmp($gallery->album->fields["returnto"], "no")) {
$breadcrumb["top"] = false;
include($GALLERY_BASEDIR . "layout/breadcrumb.inc");
}</TD></TR></TABLE><!-- BBCode End -->
From view_photo.php remove:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE><table border=0 width=<?php echo $mainWidth?> cellpadding=0 cellspacing=0>
<tr>
<td>
<?php
include($GALLERY_BASEDIR . "layout/navphoto.inc");
$breadcrumb["top"] = false;
include($GALLERY_BASEDIR . "layout/breadcrumb.inc");
?>
</td>
</tr>
</table></TD></TR></TABLE><!-- BBCode End -->

Good luck,
-Beckett (beck@beckettmw.com)

 
BorgKing
BorgKing's picture

Joined: 2002-09-12
Posts: 314
Posted: Sat, 2002-10-26 15:33

If you want to remove captions completely, you can use a script I wrote for this. Just execute it for each album.

<!-- BBCode Start --><A HREF="http://www.claessen.ca/pages/index.php?page=gallery" TARGET="_blank">Click here to download</A><!-- BBCode End -->

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Sat, 2002-10-26 22:12

To remove comments from the thumbnails only, all I did was comment out the following lines in the view_album.php -

----------
$myDescription = $myAlbum->fields[description];

and

echo($gallery->album->getCaption($i));
----------

Worked like a charm.... :smile:

 
joelgrimes

Joined: 2002-10-25
Posts: 2
Posted: Mon, 2002-10-28 20:09

Thanks all. That did it.

I'm getting there - I desinged myself into a little box and now I'm trying to figure out how to <!-- BBCode Start --><A HREF="http://juliasmithlandscaping.com/gallery/" TARGET="_blank">squeeze gallery</A><!-- BBCode End --> into it. That ought to teach me.

Joel Grimes