XbabylonX Posted March 24, 2014 Share Posted March 24, 2014 Hello,string Spot="http://maps.secondlife.com/secondlife/" + llGetRegionName() + "/128/128/22"; with the above piece of code Im trying to create a string to say in the local chat. Works fine but only when the sim name has no white spaces. When having one or more, the link includes only the first word and leaves all the other out of it.I guess I need to replace the white space (in llGetRegionName()) with %20 and be treated as one word. But I cant find a replace function. Or there is another way to solve this problem?Thank you! Link to comment Share on other sites More sharing options...
Rolig Loon Posted March 25, 2014 Share Posted March 25, 2014 Take a look at llUnescapeURL . 1 Link to comment Share on other sites More sharing options...
XbabylonX Posted March 25, 2014 Author Share Posted March 25, 2014 :matte-motes-sarcasm: llEscapeURL() That did it yeah. The string now is the correct one and Im ok with it. However, out of curiocity I would like to know this Sim Name (199,61,4014) The chat displays the above as a link. Is it possible to make it look like a web link? Just like we did in html? For example: <a href="http://www.example.com">Blah blah click me I am a link</a> Link to comment Share on other sites More sharing options...
ObviousAltIsObvious Posted March 25, 2014 Share Posted March 25, 2014 XbabylonX wrote: :matte-motes-sarcasm: llEscapeURL() That did it yeah. The string now is the correct one and Im ok with it. However, out of curiocity I would like to know this Sim Name (199,61,4014) The chat displays the above as a link. Is it possible to make it look like a web link? Just like we did in html? For example: <a href=" http://www.example.com">Blah blah click me I am a link</a> llOwnerSay("the link is [http://maps.secondlife.com/Ahern/128/128/0 Ahern(128, 128, 0)], how about that!") other alternatives will automatically pretty print: secondlife://Ahern/128/128/0 for the place profile secondlife:///app/worldmap/Mohrr/128/128/0 for a map floater these won't do the formatting in some viewers that intentionally use retro interfaces, like Singularity, but we don't have to worry much about this because these people are getting the interface they want. Link to comment Share on other sites More sharing options...
Jopsy Pendragon Posted March 25, 2014 Share Posted March 25, 2014 Chat will hilite legit URLs, but you can't hide a url with a label. I guess to prevent things like: Search for more of this great stuff on... <a href="http://my.malicious.site.net:3984">Google</a>! Link to comment Share on other sites More sharing options...
XbabylonX Posted March 25, 2014 Author Share Posted March 25, 2014 Thank you, I will try the 3 of them! Link to comment Share on other sites More sharing options...
ObviousAltIsObvious Posted March 25, 2014 Share Posted March 25, 2014 Jopsy Pendragon wrote: Chat will hilite legit URLs, but you can't hide a url with a label. I guess to prevent things like: Search for more of this great stuff on... <a href="http://my.malicious.site.net:3984">Google</a>! that one actually works as llOwnerSay("Search for more of this great stuff on [http://my.malicious.site.net:3984 Google]!"); but you can see the real link if you mouse over it. some things are restricted from chat, like secondlife:///app/teleport/EvilSanbox/5/6/78 but many forms thought to be safe are allowed. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now