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: Creating a link  (Read 4472 times)

0 Members and 1 Guest are viewing this topic.

RF

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
Creating a link
« on: November 26, 2003, 04:17:32 am »

Hey just wanted to give a quick thank you for making such a great product available to everyone!  Next.... I'm hoping someone could help me add a link to the top image (hw_01.gif) wich is part of the "hardwired" theme, so that users can return to my main homepage... any help is greatly appreciated.. i'm very new to all this... thank you
Logged
john

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Creating a link
« Reply #1 on: November 26, 2003, 07:39:13 am »

well, you can modify many files and many locations to have a link to anything you want. To make the image clickable, you'll have to modify it the template a lot, since it's done as background image (edit /themes/hardwired/template.html and look for
Code: [Select]
<td width="778" height="61" valign="middle" align="right" background="themes/hardwired/images/hw_01.gif">
Instead, I'd inlcude a "home" link in the menu: edit /themes/hardwired/theme.php and search for
Code: [Select]
<!-- BEGIN album_list -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/hardwired/images/buttonleft1.gif" width="7" height="25" border="0" id="buttonleft" alt="" /></td>
                                        <td background="themes/hardwired/images/buttoncenter1.gif">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/hardwired/images/buttonright1.gif" width="7" height="25" border="0" id="buttonright1" alt="" /></td>
<!-- END album_list -->
and replace it with
Code: [Select]
<!-- BEGIN album_list -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/hardwired/images/buttonleft1.gif" width="7" height="25" border="0" id="buttonleft" alt="" /></td>
                                        <td background="themes/hardwired/images/buttoncenter1.gif">
                                                <a href="http://www.yourpage.com" title="foo bar whatevere">your custom link text</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/hardwired/images/buttonright1.gif" width="7" height="25" border="0" id="buttonright1" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/hardwired/images/buttonleft1.gif" width="7" height="25" border="0" id="buttonleft" alt="" /></td>
                                        <td background="themes/hardwired/images/buttoncenter1.gif">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/hardwired/images/buttonright1.gif" width="7" height="25" border="0" id="buttonright1" alt="" /></td>
<!-- END album_list -->

GauGau
Logged

momof3kids

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Creating a link
« Reply #2 on: April 03, 2005, 07:29:28 pm »

ohhh.... :D thanks.  Well I have another ?  How do I keep it on rainy day?  but keep that button?  And are there different codes for different "named" buttons, like I would like another button to say community.  What code do I use for that, or where do I find it?  Thanks.  Mom
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.