coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: yaniv on November 18, 2006, 02:43:34 PM

Title: Category descriptions...
Post by: yaniv on November 18, 2006, 02:43:34 PM
hey all  ;)

In the main album list, if you add a category description it goes to the line underneath, so it adds it under the album title, is there anyway to add them on the same line, but so that it doesnt affect any other parts of the gallery?

thanks for all your help.  ;D

Title: Re: Category descriptions...
Post by: Gizmo on November 18, 2006, 03:09:28 PM
I link to your gallery or at least a screenshot with the issue circled will help but you will probably need to edit $template_album_list_cat and $template_album_list. If you don't have them in your theme.php, copy them from the sample>theme.php and paste into yours then edit to your needs.
Title: Re: Category descriptions...
Post by: yaniv on November 18, 2006, 09:08:11 PM
Sorry its taken so long to reply... stuck at work :(

anyway this is what I want to do, I think its simple enough but not sure where to edit..

thanks for all your help, sorry for being such a noob  ;)
Title: Re: Category descriptions...
Post by: Gizmo on November 18, 2006, 11:58:56 PM
Quoteyou will probably need to edit $template_album_list_cat and $template_album_list

If you dont' have $template_album_list in your theme.php, copy and paste it from the sample theme.php
// 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="{SPACER}" 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;


Move the {ALB_DESC} tag from it's current location to
<span class="alblink"><a href="{ALB_LINK_TGT}"><b>{ALBUM_TITLE}</b></a></span>{ALB_DESC}

and edit accordingly to suit your needs. You may also have to edit $template_album_list_cat in the same manner.
Title: Re: Category descriptions...
Post by: yaniv on November 19, 2006, 12:12:53 AM
ok probably my fault for not explaining properly,

that is exactly what i wanted but not for albums, i just want it for the categorys.
exactly that but on categorys not albums.

Sorry for being such a tool hehehe if u just tell me the var ill try do it.

Thanks guys  ;)
Title: Re: Category descriptions...
Post by: yaniv on November 19, 2006, 12:16:32 AM
sorry i was being a huge newbie hehe

found the answer in the original theme.php just above what u pasted for me

thank you anyway :)