Hi - I searched the board but could not find an answer to my question. Hope you can help!
I want to make the name of my album h1 (instead of an h2) tag on thumbnails.php. I have been staring at the code for quite a while, then realized that maybe I need to be looking at my template file? I stink at code :-\
Hope this is in the right spot and I have followed all protocols. Thanks!
You didn't say what theme you're using so here's a generic answer. Check your theme.php for the variable $template_thumb_view_title_row and if it's not there copy and paste it from the sample theme.php file. There you will see where to change the code.
// 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;
Thanks, Gizmo. But I have some more trouble! I am using the 'classic' theme and when I searched the whole Coppermine folder in my Dreamweaver it only found the code you specified in the FAQ?
What have I done?
Look in the sample theme folder for the theme.php file. This file has all the variables and functions that are easily available for modifying. Copy only the parts you want to change from the sample theme.php to your theme.php and edit to suit your needs. If you've deleted the sample theme folder you'll have to download another copy.
Don't use Dreamweaver to edit coppermine files! :o
Quote from: Joachim Müller on September 06, 2008, 09:01:34 PM
Don't use Dreamweaver to edit coppermine files! :o
too late...
:(
I didn't know! What do I do?
What is happened? Use the .txt-Editor aka notebad aka Editor (Windows User?).
Well, I will do that from now on. And I did manage to get my Album name made the h1 - so I think we are cool and this can close. Thank you all for your help, and I am hoping I can learn a lot more by hanging around here.
Thanks
Mark you topic as "solve", click in your first post on the "check-button"
If you want to search something in your file with notepad: Open the Windows Editor also known as notpad, click "Edit" than "Search". I think there are many other programs but notepad is the best for me as Windows user. ;D (I used that thing in school between 1997-2001 for html also).