Jump to content

Creating an object to link to a Flickr group


You are about to reply to a thread that has been inactive for 1931 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I am trying to get my first club off the ground and would like the option of my guests to have an object of some sort to click that would lead them to a flickr group page I have already set up. I have been to clubs that have this set up. click the object, the person is asked if they want an external browser opened. If they agree to it, the browser pops up and takes the to the page. 

The research I have done so far seems to suggest using llLoadURL but with my neophyte level of object construction, I can't figure out how to set up the object to even take the coding. Any help would be appreciated. 

Link to comment
Share on other sites

Replace MY URL with yours.

 

// Just add the URL to line 6 of where you want the user to be directed.
// On the first line of text (line 3), between the "" add what you want your hovering text to be.

string FLOAT_TEXT=" ";
vector FLOAT_COLOR=<1, 1, 1.0>; 
float  FLOAT_ALPHA=1.5;
string page="http://chicatphilsplace.blogspot.com/";//WEBPAGE here ^^

default
{
    state_entry()
    {
       llWhisper(0, "Ready!");
       llSetText(FLOAT_TEXT, FLOAT_COLOR, FLOAT_ALPHA);
    }

    touch_start(integer total_number)
    {
        //  Find out who clicked, and give them a note card
        key giver;
        giver = llDetectedKey(0);
        string name = llDetectedName(0);
            
        if (giver != NULL_KEY) {
            {
            llLoadURL(llDetectedOwner(0),"",page);
        }
    }
}
}

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

On 1/15/2019 at 11:36 PM, Chic Aeon said:

Replace MY URL with yours.

 

// Just add the URL to line 6 of where you want the user to be directed.
// On the first line of text (line 3), between the "" add what you want your hovering text to be.

string FLOAT_TEXT=" ";
vector FLOAT_COLOR=<1, 1, 1.0>; 
float  FLOAT_ALPHA=1.5;
string page="http://chicatphilsplace.blogspot.com/";//WEBPAGE here ^^

default
{
    state_entry()
    {
       llWhisper(0, "Ready!");
       llSetText(FLOAT_TEXT, FLOAT_COLOR, FLOAT_ALPHA);
    }

    touch_start(integer total_number)
    {
        //  Find out who clicked, and give them a note card
        key giver;
        giver = llDetectedKey(0);
        string name = llDetectedName(0);
            
        if (giver != NULL_KEY) {
            {
            llLoadURL(llDetectedOwner(0),"",page);
        }
    }
}
}

Thank you so much for this! I saw somebody once with a clicky over their head, and could not figure out how they'd done it. This is how. I will also read up on LSL as the other person suggested, though. I've only gone as far as lights in there.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1931 days.

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
 Share

×
×
  • Create New...