Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can you put a URL in a prim?

Jazz Brennon
Registered User
Join date: 6 Mar 2007
Posts: 84
07-17-2008 19:56
I'd like to put my blog URL in a prim (as a sign), so someone can click on it, and open the web page. Has anyone done this?
Thanks!
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
07-17-2008 20:09
The LSL command for opening a web page is llLoadUrl .

If you put llLoadUrl into Google one of the first links to come up is to the llLoadUrl page in the Second Life Wiki, which offfers the following script:

From: someone
default
{
touch_start(integer total_number)
{
llLoadURL(llDetectedKey(0), "Flame on!", "http://forums.secondlife.com";);
}
}


and the following info:
From: someone

llLoadURL(key avatar_id, string message, string url)

llLoadURL displays a dialog box to the user offering to load a web page using the default web browser.


The URL given must begin with "http://" or "https://"; it will not work with other protocols. (such as ftp, telnet, secondlife, etc.) Muting an object will suppress any URL offers from that object.

Note: url is truncated to 255 characters and message is truncated to 254 characters.

Note: this function delays the script for 10 seconds.


You can also find this by putting

lsl scripting "load web page"

in as your search terms in Google. This general pattern will often enable one to find the command when you know what you want the script to do but don't know the command for it.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
07-17-2008 20:39
default
{

touch_start(integer total_number) {

// speak out loud!
llSay(0,"http://www.put-your-url-here.com";);

}

}


//END ====== This will say the URL in chat whenever the prim is clicked.

// This script was auto-generated by Ann Enigma's script autogenerator
// available at http://www.3greeneggs.com/autoscript/
_____________________
WooT
------------------------------

http://www.secondcitizen.net/Forum/
Bree Giffen
♥♣♦♠ Furrtune Hunter ♠♦♣♥
Join date: 22 Jun 2006
Posts: 2,715
07-17-2008 20:41
I've done this! It's too bad I forgot my blog password.
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
07-17-2008 21:04
Depending on what browser you use, and what options you have set, you may be able to get your browser to show you the password.

In Firefox, it's Tools / Options / Security / Saved Passwords / and the Show Passwords button at the bottom right.

Also, sometimes you can find stuff like that by using the Windows Search function to search the text of every file on your hard drive. In this case, you might look for your blog username then check the files in the results.

Have you tried using the blog's "forgot your password?" function if it has one?
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Jazz Brennon
Registered User
Join date: 6 Mar 2007
Posts: 84
Thank you!
07-19-2008 00:09
Suzeanne and Brianna, thanks for your help! It worked great :-)
JB