coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Superficial Gallery on September 06, 2008, 01:23:29 PM

Title: Make Album name on Thumbnails.php an h1
Post by: Superficial Gallery on September 06, 2008, 01:23:29 PM
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!
Title: Re: Make Album name on Thumbnails.php an h1
Post by: Gizmo on September 06, 2008, 01:47:40 PM
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}&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;
Title: Re: Make Album name on Thumbnails.php an h1
Post by: Superficial Gallery on September 06, 2008, 02:21:15 PM
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?
Title: Re: Make Album name on Thumbnails.php an h1
Post by: Gizmo on September 06, 2008, 02:47:52 PM
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.
Title: Re: Make Album name on Thumbnails.php an h1
Post by: Joachim Müller on September 06, 2008, 09:01:34 PM
Don't use Dreamweaver to edit coppermine files! :o
Title: Re: Make Album name on Thumbnails.php an h1
Post by: Superficial Gallery on September 07, 2008, 03:02:29 AM
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?
Title: Re: Make Album name on Thumbnails.php an h1
Post by: McKenzie on September 07, 2008, 12:23:09 PM
What is happened? Use the .txt-Editor aka notebad aka Editor (Windows User?).
Title: Re: Make Album name on Thumbnails.php an h1
Post by: Superficial Gallery on September 07, 2008, 01:18:51 PM
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
Title: Re: Make Album name on Thumbnails.php an h1
Post by: McKenzie on September 07, 2008, 02:51:21 PM
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).