Change font size
It is currently Sat Nov 17, 2018 12:07 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 2 of 2   [ 12 posts ]
Go to page Previous  1, 2
Author Message
 Post subject: Re: Alternative Profile Picture v0.1
PostPosted: Wed Oct 31, 2018 12:18 pm 
Furious Typer
User avatar

Joined: Fri Mar 26, 2010 12:11 pm
Posts: 147
Location: Belgium / Brussels
Hi Frankie Rockett,

I just tested my script "Alernative Profile Picture v0.1" and also the Lotek Ixtar script and they both work very well.

I think you made a mistake somewhere but there is no shame in this :P

PS: If you want the script to be quieter, you can always add llOwnerSay(body) to the very beginning of http_response.
You will know what the php script returns as an answer to the inworld script ...

_________________
Webmaster @ digitalconcepts.free.fr & digigrids.free.fr


Top
 Profile  
 
 Post subject: Re: Alternative Profile Picture v0.1
PostPosted: Fri Nov 02, 2018 1:43 am 
Site Admin
User avatar

Joined: Sun Jun 27, 2010 10:34 am
Posts: 122
Location: France
{L_CODE}:
// Alternative Profile Picture v0.1 by djphil (CC-BY-NC-SA 2.0 BE)

key query;
string url = "http://helper.osgrid.org/get_picture_uuid.php";

default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Initialisation ...");
        llSetTexture(TEXTURE_BLANK, ALL_SIDES);
    }
   
    touch_start(integer n)
    {
        query = llHTTPRequest(url + "?name=" + llDetectedName(0), [HTTP_METHOD, "GET"], "");
    }

    http_response(key response, integer status, list data, string body)
    {
        if (response == query)
        {
            body = llStringTrim(body, STRING_TRIM);
            if (body == "00000000-0000-0000-0000-000000000000") llResetScript();
            llSetTexture(body, ALL_SIDES);
        }
    }
}

Working well for me in Osgrid

_________________
Paela Argus,
Webmanagement Osgrid

https://www.osgrid.org


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 2 of 2   [ 12 posts ]
Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net