News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Strange problem with HREF

Started by CapadY, July 21, 2010, 04:24:03 PM

Previous topic - Next topic

CapadY

Using SMF2RC3, english

I have a little problem
I made a little extension to show a webaddress beneath the user data left to the posts.

The code used is:


<a href="www.justasite.com">justasite</a>


when I hover this link (correct shown) I see the next address:

http://mysite.com/www.justasite.com

So, the webaddress from my own site is added before the site I want to link to.

Is there somebody who can tell me if this is normal, and more important, how to prevent this addon of my own wabaddress ?

Thanks in advance,




[/code]
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Joker™

how about this


echo '<a href="http://www.justasite.com" target="_blank">', $txt['yourtext'], '</a>';

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

CapadY

Joker,

you're great, this solved it.
The only problem now is the strings will be to long but I think I can solve that :)

Thanks
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Joker™

Your welcome, Marking topic solved  ;)  
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: