How to get rid of album descriptions? How to get rid of album descriptions?
 

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

How to get rid of album descriptions?

Started by rwozny, January 19, 2009, 08:02:00 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

rwozny

I plan to make an album's representation (on the main page - i don't use categories) by image with embedded text, and i'd like to get rid of album description tables. also, the number of files should dissapear. Just the image. How to do it?

Nibbler

Copy the $template_album_list template from the sample theme.php into your custom theme.php and remove the bits you don't want. The album description is {ALB_DESC} and the number of files etc is {ALB_INFOS}

rwozny

...but before you do anything, upgrade to the latest release (which i am currently doing ;)).

Cheers!

rwozny

STUPID QUESTION WARNING! COVER YOUR EYES BEFORE READING.

As the description below my nickname says, i am coppermine newbie (although I know just something about). I have modified the rainy day template so now it looks like www.rwozny.eu - I have fount the sample theme, I have found the lines (i think so) you mentioned... but where to paste it exactly in my theme.php - forgive me - I have no clue.

Help me Obi-Wan Kenobi...

rwozny

Quote from: rwozny on January 19, 2009, 08:02:00 PM
I plan to make an album's representation (on the main page - i don't use categories) by image with embedded text, and i'd like to get rid of album description tables?

And there goes another problem.

The cathegory image will be 200x200 pixels. To set this size i have to go to config and set it there. But it will make ALL thumbs have this width/height (after running resize in admin tools)! I want thumbs inside the album to be 120px as it is now. Any ideas?

Joachim Müller

Quote from: rwozny on January 20, 2009, 12:22:18 AM
but where to paste it exactly in my theme.php - forgive me - I have no clue.
Copy// HTML template for the album list
$template_album_list = <<<EOT

<!-- BEGIN stat_row -->
        <tr>
                <td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>
        </tr>
<!-- END stat_row -->
<!-- BEGIN header -->
        <tr class="tableb_compact">
<!-- END header -->
<!-- BEGIN album_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td colspan="3" height="1" align="left" valign="top" class="tableh2">
                        <span class="alblink"><a href="{ALB_LINK_TGT}"><b>{ALBUM_TITLE}</b></a></span>
                </td>
        </tr>
        <tr>
                <td colspan="3">
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td align="center" valign="middle" class="thumbnails">
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" />
                </td>
                <td width="100%" valign="top" align="left" class="tableb_compact">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->
<!-- BEGIN empty_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td height="1" valign="top" class="tableh2">
                        <b>&nbsp;</b>
                </td>
        </tr>
        <tr>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td width="100%" valign="top" class="tableb_compact">
                    <div class="thumbnails" style="background-color:transparent"><img src="images/spacer.gif" width="1" height="1" border="0" class="image" style="border:0;margin-top:1px;margin-bottom:0" alt="" /></div>
                </td>
        </tr>
        </table>
        </td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr class="tableb_compact">
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{COLUMNS}" 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;
from themes/sample/theme.php into a new line of it's own right before ?>of the file themes/your_theme/theme.php

Then modify as suggested above.

Related to theming, moving thread accordingly.

Quote from: rwozny on January 20, 2009, 12:28:39 AM
And there goes another problem.

The cathegory image will be 200x200 pixels. To set this size i have to go to config and set it there. But it will make ALL thumbs have this width/height (after running resize in admin tools)! I want thumbs inside the album to be 120px as it is now. Any ideas?
I guess you should review the overall idea to use an image to display textual content - that's not a bright idea at all imo - in terms of technology, readability, search engine friendliness, accessibility, performance.