Image link.
#1
Another MyCode Corner Production! If you want some more really awesome MyCodes go to http://MyCodeCorner.cz.cc

Image Link:
Image link is a very simple MyCode that allows your users to use image links. So instead of having to use two other MyCodes they can use just this one. When you see "ALT" use one or the other code, not both.


Title:
Image Link


Short Description:
Allows your users to link images simply

Regular Expression:
\[imgl=(.*?)\](.*?)\[/imgl\]


Replacement:
<a href="$2"><img src="$1"></a>
Image link first, web link second.
ALT
<a href="$1"><img src="$2"></a>
Web link first, image link second.



How to use:
[imgl=IMAGE LINK HERE]WEB LINK HERE[/imgl]
ALT
[imgl=WEB LINK HERE]IMAGE LINK HERE[/imgl]



Preview:

None: Looks like an image, when you click takes you to your weblink.

Live Demo:
http://demo.mycodecorner.cz.cc/showthread.php?tid=13


http://MyCodeCorner.cz.cc
Reply
#2
Cheers, in use at my forum. Smile
<snip - "too big"> despite many sigs on here being much larger and approved - sort it out instead of removing sigs without warning
Reply
#3
Undecided this mycode is

[url=imageurl][img]imagelink[/img][/url]
Exclamation MyBB-Es.Com, spanish support for MyBB Wink
Reply
#4
That's the idea. It makes it quicker.
<snip - "too big"> despite many sigs on here being much larger and approved - sort it out instead of removing sigs without warning
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)