Creating a link Creating a link
 

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

Creating a link

Started by RF, November 26, 2003, 04:17:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RF

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
john

Joachim Müller

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 <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<!-- 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<!-- 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

momof3kids

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