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: Make Album name on Thumbnails.php an h1  (Read 4408 times)

0 Members and 1 Guest are viewing this topic.

Superficial Gallery

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Make Album name on Thumbnails.php an h1
« 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!
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Make Album name on Thumbnails.php an h1
« Reply #1 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.

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;
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Make Album name on Thumbnails.php an h1
« Reply #2 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?
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Make Album name on Thumbnails.php an h1
« Reply #3 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.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Make Album name on Thumbnails.php an h1
« Reply #4 on: September 06, 2008, 09:01:34 pm »

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

Superficial Gallery

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Make Album name on Thumbnails.php an h1
« Reply #5 on: September 07, 2008, 03:02:29 am »

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

too late...

 :(

I didn't know!  What do I do?
Logged

McKenzie

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • My car gallery
Re: Make Album name on Thumbnails.php an h1
« Reply #6 on: September 07, 2008, 12:23:09 pm »

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

Superficial Gallery

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Make Album name on Thumbnails.php an h1
« Reply #7 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
Logged

McKenzie

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • My car gallery
Re: Make Album name on Thumbnails.php an h1
« Reply #8 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).
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.