coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: darkpollo on March 12, 2006, 09:58:26 PM

Title: I broke something, please help :S
Post by: darkpollo on March 12, 2006, 09:58:26 PM
Hi. I was looking for delete the title of everyblock, Random files, upload files, etc, i found it yesterday, and delete something that remove the row on every table that have the title of the block.

My problem is that now i have remove also the row with the +- sort on the thumbails... and i dont remember where was the code i delete...
i have got a backup, but i have been work all the weekend so i dont like to start again.
:P
Could you help me?
thanks.

::) ??? ???
Title: Re: I broke something, please help :S
Post by: Joachim Müller on March 13, 2006, 07:36:14 AM
to remove the sort options, edit themes/yourtheme/theme.php, find// HTML template for title row of the thumbnail view (album title + sort options)and modify accordingly. If the section doesn't exist in your custom theme, copy// 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>
                        </table>

EOT;
from the sample theme. To utterly remove the sorting options, you can change the section like this:// 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>
                        </tr>
                        </table>

EOT;
Title: Re: I broke something, please help :S
Post by: darkpollo on March 13, 2006, 09:48:30 AM
Thanks, but that is not the problem...  :)

I have got that code on theme.php, but i dont want to remove the sort options, i want them back  ::)

I will try to explain it better. I deleted the names for the random files and for the last upload somewhere on the cpg code, and later when i goes to the thumbnails page i found that the sort optios were gone. That is because i delete the whole <tr> that had the names...  :-[

So i need to restore the cpg but i have done a lot of changes on the code after that so i cannot copy the original file (also i dont know wich file).

Undertand? Sorry about my english, im doing my best...  :-X
Title: Re: I broke something, please help :S
Post by: Joachim Müller on March 13, 2006, 10:00:21 AM
I have no idea what you did so I can't advise what you need to put back. Maybe posting a link to your page might be a good start.
Title: Re: I broke something, please help :S
Post by: darkpollo on March 13, 2006, 10:51:38 AM
:S
I know, that is the problem :D
Well, more things, if i change the theme, the sort is back again, so the code is on the theme... :D

Still looking for... ::)

Title: Re: I broke something, please help :S
Post by: Joachim Müller on March 13, 2006, 10:53:23 AM
Quote from: GauGau on March 13, 2006, 10:00:21 AM
Maybe posting a link to your page might be a good start.
Do as I suggested then. Also, zip up your theme and attach it to your posting (using "additional options" when composing your message)
Title: Re: I broke something, please help :S
Post by: darkpollo on March 13, 2006, 11:10:16 AM
I check the // HTML template for title row of the thumbnail view (album title + sort options) and seems to be right.

The webpage: http://todo-motos.es/public/



Also i upload the theme.

;D
And also im going to check all the code again...

Thank you very much for everything (and congratulations for the cpg, its great) :D
Title: Re: I broke something, please help :S
Post by: darkpollo on March 13, 2006, 01:51:31 PM
I have checked the theme.php and i dont understand where is the problem... :S
Title: Re: I broke something, please help :S
Post by: darkpollo on March 13, 2006, 01:52:16 PM
I GOT IT!!
;D ;D ;D

It was the standard Table function. :D
FIxed now

Thanks