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.
::) ??? ???
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}&page={PAGE}&sort=ta" title="{SORT_TA}"> + </a></span></td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=td" title="{SORT_TD}"> - </a></span></td>
</tr>
<tr>
<td class="sortorder_options">{NAME}</td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=na" title="{SORT_NA}"> + </a></span></td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=nd" title="{SORT_ND}"> - </a></span></td>
</tr>
<tr>
<td class="sortorder_options">{DATE}</td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=da" title="{SORT_DA}"> + </a></span></td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=dd" title="{SORT_DD}"> - </a></span></td>
</tr>
<tr>
<td class="sortorder_options">{POSITION}</td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=pa" title="{SORT_PA}"> + </a></span></td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=pd" title="{SORT_PD}"> - </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;
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
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.
: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... ::)
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)
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
I have checked the theme.php and i dont understand where is the problem... :S
I GOT IT!!
;D ;D ;D
It was the standard Table function. :D
FIxed now
Thanks