coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: all-gsm on September 10, 2013, 02:55:31 AM

Title: how to move the description inside album
Post by: all-gsm on September 10, 2013, 02:55:31 AM
how to move the description inside album
theme curve_red2black
it does not work as described on http://forum.coppermine-gallery.net/index.php/topic,67900.msg358961.html#msg358961
thanks
Title: Re: how to move the description inside album
Post by: Αndré on September 10, 2013, 11:57:14 AM
What exactly do you try to accomplish and what exactly doesn't work?
Title: Re: how to move the description inside album
Post by: all-gsm on September 12, 2013, 03:25:29 AM
I'm trying as described herein http://forum.coppermine-gallery.net/index.php/topic,40315.0.html
but the description is not inserted inside the album with {$album_desc} or {ALB_DESC}
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1" alt="" /></td>
                                <td class="sortorder_cell">
                                        <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <td class="sortorder_options">{TITLE}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        <tr>
                                                <td class="sortorder_options">{NAME}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        <tr>
                                                <td class="sortorder_options">{DATE}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        <tr>
                                                <td class="sortorder_options">{POSITION}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        <tr><td>
                        <p>{$album_desc}</p>
                        </td></tr>
                        </table>
EOT;
Title: Re: how to move the description inside album
Post by: Αndré on September 12, 2013, 10:16:18 AM
The threads you referred contain several solutions. Please describe with your own words what exactly you want to do. I assume that you want to display the album description on the thumbnails page and probably remove/truncate it on the album list view. But I don't know what you've done so far and what exactly doesn't work as expected. Please also post a link to your gallery.
Title: Re: how to move the description inside album
Post by: all-gsm on September 12, 2013, 04:26:37 PM
it erotic top site http://erotic-top.com/  description get cut.
I want more description on the thumbnails page http://erotic-top.com/thumbnails-2.html
but instead of the description is: Album not found
Title: Re: how to move the description inside album
Post by: all-gsm on September 12, 2013, 04:30:17 PM
You can remove this reference
theme.php result does not
I did change the attachment
Title: Re: how to move the description inside album
Post by: Αndré on September 12, 2013, 04:55:19 PM
Please don't edit include/themes.inc.php. Instead, copy the functions you'd like to modify from themes/sample/theme.php to your theme's theme.php file, if they don't exist.

However, to fix your current code, find
$album_desc = get_album_desc($_GET[album]);
and replace with
$album_desc = get_album_desc($superCage->get->getInt('album'));
Title: Re: how to move the description inside album
Post by: all-gsm on September 12, 2013, 05:26:39 PM
Thanks!
Title: Re: how to move the description inside album
Post by: Αndré on September 12, 2013, 05:28:35 PM
Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your thread as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.