Logo with multiple links

Started by MoonCatcher, July 08, 2008, 08:31:19 AM

Previous topic - Next topic

MoonCatcher

I don't know if this is possible, but I thought I have seen it somewhere else.

I have this little piece of html that I want to intergrate into php, so that I get a logo with multiple links to different sites.



<html>
<head>
<meta name="Author" content="">
<meta name="Generator" content="Paint Shop Pro 9">
<title> </title>
</head>
<body>

<img name="Logo0" src="Logo.png" width="800" height="333" border="0" usemap="#Logo" alt="" />

<map name="Logo">
<area shape="rect" coords="24,70,137,203" href="http://****" alt="click for ***">
<area shape="rect" coords="236,35,238,66" alt="">
<area shape="rect" coords="144,40,269,196" href="http://***" alt="click for ***">
<area shape="rect" coords="542,45,652,201" href="http://***" alt="click for ***">
<area shape="rect" coords="665,74,778,209" href="http://***" alt="click for ***">
</map>

</body>
</html>


How and where do I put this if it's possible?

TIA

vbgamer45

That looks like the right way to do with the image map. Just need to make sure that your image cords are correct.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rafter

Quote from: vbgamer45 on July 22, 2008, 09:07:32 PM
That looks like the right way to do with the image map. Just need to make sure that your image cords are correct.
Agreed. Just check cords and see if they're placed correctly.

MoonCatcher

Yes I know that's right, but I want to know how to intergrate html into a php page, cause there's no html page wher I can put the imagemap.

Which file do I have to alter to get it working?

NickC

If you want it on every page, put it in index.template.php for the theme(s) you are using. Enclose it in a php echo function:

echo 'your html code';

Kardamilas

Sorry for diging it out but i have almost the same issue...

i build a custom html block shown only in my portal with the same structure
as the first post but despite that is shown corect at the preview and all links
are active,but on my portal page links are not there...

my code is this...

<p align="center"><img src="http://tdmhellas.gr/logos/xorigoi33.jpg" width="600" height="400" border="0"  usemap="#Map" /></p>
          <map name="Map" id="Map">
            <area shape="rect" coords="535,372,599,399" href="http://www.ebike.gr/main/" target="http://www.ebike.gr/main/" />
            <area shape="rect" coords="458,373,534,399" href="http://www.bikerspirit.net/" target="http://www.bikerspirit.net/" />
            <area shape="rect" coords="378,370,457,398" href="http://www.vrisko.gr/details/470i6636de3j331id523_g3j177ead7b" target="http://www.vrisko.gr/details/470i6636de3j331id523_g3j177ead7b" />
            <area shape="rect" coords="483,327,600,371" href="https://www.facebook.com/pages/Platsa-Ploutsa-Car-Wash/1428850467338564" target="https://www.facebook.com/pages/Platsa-Ploutsa-Car-Wash/1428850467338564" />
            <area shape="rect" coords="378,327,481,368" href="http://www.smprinis.gr/" target="http://www.smprinis.gr/" />
            <area shape="rect" coords="268,326,378,397" href="http://motokouzis.gr/" target="http://motokouzis.gr/" />
            <area shape="rect" coords="142,325,267,399" href="http://www.xo.gr/profile/profile-906259109/el/" target="http://www.xo.gr/profile/profile-906259109/el/" />
            <area shape="rect" coords="0,280,147,324" href="http://www.pavlospettas.gr/" target="http://www.pavlospettas.gr/" />
            <area shape="rect" coords="150,277,291,321" href="http://motonio-parts.car.gr/contact/" target="http://motonio-parts.car.gr/contact/" />
            <area shape="rect" coords="293,277,449,325" href="http://www.e-moto.gr/el/" target="http://www.e-moto.gr/el/" />
            <area shape="rect" coords="451,273,598,325" href="http://www.ampapageorgiou.gr/" target="http://www.ampapageorgiou.gr/" />
            <area shape="rect" coords="450,209,599,271" href="http://www.megastockbazaar.gr/" target="http://www.megastockbazaar.gr/" />
            <area shape="rect" coords="300,203,450,275" href="http://www.vrisko.gr/details/1dab5a213ka4b37e2a2j630gdg051hbd" target="http://www.vrisko.gr/details/1dab5a213ka4b37e2a2j630gdg051hbd" />
            <area shape="rect" coords="143,205,299,274" href="http://www.papastavroushops.gr/" target="http://www.papastavroushops.gr/" />
            <area shape="rect" coords="0,208,142,277" href="http://www.yamaha-team.gr/" target="http://www.yamaha-team.gr/" />
            <area shape="rect" coords="300,135,449,202" href="http://www.moto-k.gr/" target="http://www.moto-k.gr/" />
            <area shape="rect" coords="142,134,299,203" href="http://www.motorparts.com.gr/" target="http://www.motorparts.com.gr/" />
            <area shape="rect" coords="2,134,141,204" href="http://motocosmos.gr/" target="http://motocosmos.gr/" />
            <area shape="rect" coords="450,73,598,208" href="http://motocosmos.gr/" target="http://motocosmos.gr/" />
            <area shape="rect" coords="300,71,450,134" href="http://www.moto-discovery.com/eshop/" target="http://www.moto-discovery.com/eshop/" />
            <area shape="rect" coords="145,71,298,131" href="http://www.paddock.gr/" target="http://www.paddock.gr/" />
            <area shape="rect" coords="0,71,143,132" href="http://www.spiliotis.gr/" target="http://www.spiliotis.gr/" />
            <area shape="rect" coords="399,2,600,69" href="http://www.motodynamics-accessories.gr/" target="http://www.motodynamics-accessories.gr/" />
            <area shape="rect" coords="207,3,396,69" href="http://www.alexopoulos.gr" target="_new" alt="" />
            <area shape="rect" coords="0,1,205,70" href="http://www.motodiktio.gr/Default.asp?Static=5" target="http://www.motodiktio.gr/Default.asp?Static=5" alt="" /></map>

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


kat

I actually used something very similar, many years ago.

I made the code, below, a separate file and just called it in index.template, using the "include 'banner.php';" wotsit. It worked rather well, as it 'appens. :) With the old SMF v1 index.template, I just put it below this:

</head>
<body>';


so that, if I need to edit the code, to change a URL, or something, I only had to do one file and not one file for every damned theme.

I somehow doubt it'd be quite so easy with SMF v2 themes, though.

// Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
echo '

This is the banner code:

<center><img src="TLABanner.jpg" usemap="#TLABanner" alt="" style="border-style:none" /></center>

<map id="TLABanner" name="TLABanner">
<area shape="rect" coords="8,89,108,103" href="http://www.centerofchaos.com/topalliance/in.php?id=6" title="" target="_BLANK" />
<area shape="rect" coords="7,104,107,120" href="http://www.rpgtopsites.com/in.php3?list=1093198172&site=tla" title="" target="_BLANK" />
<area shape="rect" coords="6,122,112,136" href="http://s11.invisionfree.com/foelastalliance/index.php" title="" target="_BLANK" />
<area shape="rect" coords="9,137,44,153" href="http://www.giveupalready.com/showthread.php?t=27511" title="" target="_BLANK" />
<area shape="rect" coords="8,153,121,168" href="http://www.centerofchaos.com/" title="" target="_BLANK" />
<area shape="rect" coords="349,90,490,106" href="http://shadowfax.thelastalliance.co.uk/" title="" target="_BLANK" />
<area shape="rect" coords="348,107,456,121" href="http://farms.thelastalliance.co.uk/" title="" target="_BLANK" />
<area shape="rect" coords="347,122,448,136" href="http://www.tlakoc.org.uk/index.php?action=arcade" title="" target="_BLANK" />
<area shape="rect" coords="347,136,462,153" href="http://www.sagaofsyn.com/chat.html" title="" target="_BLANK" />
<area shape="rect" coords="346,154,417,169" href="http://nizzle.clearphp.com/tlachat/phpMyChat.php3" title="" target="_BLANK" />
<area shape="rect" coords="648,105,701,121" href="http://www.the-shoutbox.com/" title="" target="_BLANK" />
<area shape="rect" coords="647,122,772,137" href="http://loc.eagles-realm.com/" title="" target="_BLANK" />
<area shape="rect" coords="647,138,759,152" href="http://s4.invisionfree.com/The_Silent_Hood" title="" target="_BLANK" />
<area shape="rect" coords="646,153,789,169" href="http://s7.invisionfree.com/Raging_Drow_Alliance" title="" target="_BLANK" />
<area shape="default" nohref="nohref" alt="" />
</map>

Ahmed Salim

hi,

That looks like the right way to do with the picture map. Just need to create sure that your picture cables are appropriate.

kat

Picture cables? Is that anything like Spam? ;)

Advertisement: