I broke something, please help :S I broke something, please help :S
 

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

I broke something, please help :S

Started by darkpollo, March 12, 2006, 09:58:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darkpollo

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.

::) ??? ???

Joachim Müller

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;

darkpollo

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

Joachim Müller

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.

darkpollo

: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... ::)


Joachim Müller

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)

darkpollo

#6
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

darkpollo

I have checked the theme.php and i dont understand where is the problem... :S

darkpollo

I GOT IT!!
;D ;D ;D

It was the standard Table function. :D
FIxed now

Thanks