Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: MyTime on October 13, 2014, 04:22:45 PM

Title: clickable images that redirect too a url
Post by: MyTime on October 13, 2014, 04:22:45 PM
http://custom.simplemachines.org/mods/index.php?mod=1253

I think this is a the link too a mod that I think is what i'm trying too do, but using a custom theme and portamx, may be the problem with the mod just installing quick threw my packages and giving me errors.

Is their a way I can add an image and make it a clickable link too a url, for instance my photo gallery url on my site, and making a graphic called 'photos', so when you click on the graphic picture 'photos' it goes too the url where my photo gallery is on my site, I'm using a portamx portal, should I use a block from that, or is their a better way of just doing it threw the subs.php files or something like that. Thank you for any help
Title: Re: clickable images that redirect too a url
Post by: kat on October 13, 2014, 05:12:45 PM
It's very easy. :)

(http://www.katzy.dsl.pipex.com/Smileys/Click.gif) (http://www.katzy.dsl.pipex.com)

[url=http://www.katzy.dsl.pipex.com][img]http://www.katzy.dsl.pipex.com/Smileys/Click.gif[/img][/url]
Title: Re: clickable images that redirect too a url
Post by: MyTime on October 13, 2014, 05:16:46 PM
I tried copy and pasting that exact 'code' you gave me above, it was in an html block using the portamx portal and did not work, could you give me some further advice xD
Title: Re: clickable images that redirect too a url
Post by: MyTime on October 13, 2014, 05:22:34 PM
I made a bbc block and it worked, is that what I must do?
Title: Re: clickable images that redirect too a url
Post by: Burke ♞ Knight on October 13, 2014, 05:29:10 PM
Or, you could use html in an html block:

<a href="http://www.katzy.dsl.pipex.com"><img src="http://www.katzy.dsl.pipex.com/Smileys/Click.gif" alt="Click.gif" /></a>
Title: Re: clickable images that redirect too a url
Post by: MyTime on October 13, 2014, 05:42:31 PM
I entered that code into the html block and it also did not work
Title: Re: clickable images that redirect too a url
Post by: Burke ♞ Knight on October 13, 2014, 05:48:37 PM
Then there seems to be something wrong with the html block in your portal.
You'd be best to go to it's support topic and find out why simple html link and image tags will not work with it's html block.