Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: I broke something, please help :S  (Read 4979 times)

0 Members and 1 Guest are viewing this topic.

darkpollo

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
I broke something, please help :S
« 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.

 ::) ??? ???
« Last Edit: March 13, 2006, 02:38:29 pm by TranzNDance »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I broke something, please help :S
« Reply #1 on: March 13, 2006, 07:36:14 am »

to remove the sort options, edit themes/yourtheme/theme.php, find
Code: [Select]
// 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
Code: [Select]
// 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:
Code: [Select]
// 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;
Logged

darkpollo

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: I broke something, please help :S
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I broke something, please help :S
« Reply #3 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.
Logged

darkpollo

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: I broke something, please help :S
« Reply #4 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... ::)

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I broke something, please help :S
« Reply #5 on: March 13, 2006, 10:53:23 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)
Logged

darkpollo

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: I broke something, please help :S
« Reply #6 on: March 13, 2006, 11:10:16 am »

I check the
Code: [Select]
// 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
« Last Edit: March 13, 2006, 01:52:39 pm by darkpollo »
Logged

darkpollo

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: I broke something, please help :S
« Reply #7 on: March 13, 2006, 01:51:31 pm »

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

darkpollo

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: I broke something, please help :S
« Reply #8 on: March 13, 2006, 01:52:16 pm »

I GOT IT!!
 ;D ;D ;D

It was the standard Table function. :D
FIxed now

Thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.