MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > General Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old November 6th, 2004, 06:45   #1
Chico
 
Join Date: Nov 2004
Posts: 3
Chico is on a distinguished road
Default Creating a link from header image

Hello everybody. Just joined Mambo, lovin' it. :grin:

Most probably being a dumbo, but how do you make the header image become a clickable link to another page? In this case, home.
Chico is offline   Reply With Quote
Old November 6th, 2004, 07:22   #2
Troubadour
 
Troubadour's Avatar
 
Join Date: Mar 2004
Posts: 70
Troubadour is on a distinguished road
Default

If you've worked with html at all previously - exactly the same way. In the index.php file of your template, put an href tag with the link to your homepage around the img src.
__________________

t h i n k s y n c
corporatecreativemedia
http://www.thinksync.com.au
Troubadour is offline   Reply With Quote
Old November 6th, 2004, 10:08   #3
Chico
 
Join Date: Nov 2004
Posts: 3
Chico is on a distinguished road
Default

Cheers
Chico is offline   Reply With Quote
Old July 16th, 2005, 07:27   #4
maxa
 
maxa's Avatar
 
Join Date: Apr 2005
Posts: 59
maxa is on a distinguished road
Default

Quote:
Originally Posted by Troubadour
In the index.php file of your template, put an href tag with the link to your homepage around the img src.
The problem is that in many Mambo templates the header image is not a src in the index.php, but a background specified by css.

In my case it looks like this in the index.php:
Quote:
<td width="100%">
<div id="logo"></div>
and like this in the template_css.css:
Quote:
div#logo {
background: #0100F1 url(../images/de_logo.jpg) no-repeat;
height: 73px;
}
Could anyone please suggest me how to link this to Home?
/maxa
__________________
www.indell.se/webbhotell
maxa is offline   Reply With Quote
Old December 15th, 2005, 01:11   #5
Sabine
 
Join Date: Dec 2005
Location: Australia
Posts: 14
Sabine is on a distinguished road
Default Can someone explain this in more details please?

Quote:
Originally Posted by Troubadour
If you've worked with html at all previously - exactly the same way. In the index.php file of your template, put an href tag with the link to your homepage around the img src.
Hi everyone,

I am trying to do exactly this: link the header image of my index page (using rhuk planetfall) to the 'Home' in Main menu.

I should mention that I am only just starting in Dreamweaver and Mambo, so my knowledge of html and php is VERY limited.

I went into my index.php file in Dreamweaver, and I located the following tags, but I'm not that sure they refer to my header.

<td colspan="<?php echo $collspan_offset; ?>" class="header">
<img src="<?php echo $mosConfig_live_site; ?>/templates/rhuk_planetfall/images/spacer.png" width="646" height="9" alt=""/>


Here is one of my problems: supposing the img tag above is the right one, I can't find a 'href' tag anywhere in Dreamweaver to add around it! Not in html (can only find 'hr'), and the PHP tags are called 'expression' and 'scriplet' (???).

Maybe I need to do this from the template's CSS sheet?
There is a reference to the header too in my CSS sheet:

.header {
height: 111px;
background: url(../images/mambo_header.jpg) no-repeat;
}

So, would I need to add another line of code that tells the background image to link to the 'Home' page?

I am yelling a big 'HELP ME': could someone please walk me through what to do, step by step, to add that 'href' tag or write that code (or anything that I need to do to link header to Home?)
PLEASE??!!
__________________
Sincerely,
Sabine

Last edited by Sabine : December 18th, 2005 at 00:16.
Sabine is offline   Reply With Quote
Old December 18th, 2005, 02:37   #6
Sabine
 
Join Date: Dec 2005
Location: Australia
Posts: 14
Sabine is on a distinguished road
Default It's done!

There is a great forum for PHP at phpbuilder.com, and someone helped me to figure out exactly what to do.

The forum has some neat sections like "Newbies" and seems to contain loads of great tips and info.

If anyone needs the exact line of code, this is what I added in Bold, around my existing img tag:
<a href="http://linkto.php"><img src="<?php echo $mosConfig_live_site; ?>/templates/rhuk_planetfall/images/spacer.png" width="646" height="110" alt=""/></a>

I had to adjust the "height" from 9 to 110 to fit exactly around the image.

And it works!
__________________
Sincerely,
Sabine
Sabine is offline   Reply With Quote
Old May 24th, 2006, 14:36   #7
onestop
 
onestop's Avatar
 
Join Date: May 2006
Posts: 8
onestop is on a distinguished road
Default How to do this in a news item?

I'd like to be able to place a clickable image in a news item on my front page...

for instance I would like to place a LiveHelp button image in a Newsflash on my front page...that will open my LiveHelp program in a new window?

I've used {mosimage} to place a graphic in a NewsItem. I'd like it to be linkable...adding a mailto: function or opening a new window with my script.
onestop is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -7. The time now is 09:18.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.