Make Album name on Thumbnails.php an h1 Make Album name on Thumbnails.php an h1
 

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

Make Album name on Thumbnails.php an h1

Started by Superficial Gallery, September 06, 2008, 01:23:29 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Superficial Gallery

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!

Gizmo

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;
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Superficial Gallery

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?

Gizmo

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.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Joachim Müller

Don't use Dreamweaver to edit coppermine files! :o

Superficial Gallery

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?

McKenzie

What is happened? Use the .txt-Editor aka notebad aka Editor (Windows User?).

Superficial Gallery

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

McKenzie

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