Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: pmakulski on January 29, 2006, 05:33:17 PM

Title: Insert Hyperlink vs html link
Post by: pmakulski on January 29, 2006, 05:33:17 PM
Using 1.06

The Insert hyperlink icon inserts a pair of square bracket tags.
Code: [Select]
[url][/url]This makes a link that shows only the link, and it opens in a new window.

If I code the html myself
Code: [Select]
<a href="mylink">Click me</a> I get a hyperlink that doesn't show the url.  Which is prettier, in most cases, and usually what I want to do.  But it doesn't open in a new window.

But sometimes I want the link to open in a new window. To do this, I would usually type:
Code: [Select]
<a href="mylink" target="New">Click me</a>But SMF doesn't want to honour this target tag. The link morphs into
Code: [Select]
mylink[/url]%22%20target=%22new
How can I get SMF to honour the complete html link.
Or, alternatively, is there a way to hide the URL under a display text?

Thanks
Title: Re: Insert Hyperlink vs html link
Post by: Harro on January 29, 2006, 06:28:20 PM
To display a text, use this:
Code: [Select]
[url=http://theurl.com]The text[/url]And it'll open in a new window :)
Title: Ah ha!
Post by: pmakulski on January 29, 2006, 06:42:47 PM
Yup, that worked.  Thanks.
(How to use the square url tag wasn't obvious, at least, not to me.)
You saved the day.  :)
Title: Re: Insert Hyperlink vs html link
Post by: Harro on January 29, 2006, 06:51:13 PM
You're welcome :)