Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

[Source Code]Get a users profile picture

Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
03-03-2008 12:22
From: Void Singer
...a greeter for my friends club, which pops up the pic and a public message welcoming the person ...


I have a 'Free to Copy' Welcome Board at The Particle Garden, Zebulon (98,95,26). This does exactly as you describe but additionally shoots a targetted particle stream with the profile picture on. Very effective and fun.

Also there are 'Free to Copy' Profile Picture Flags and various other 'Free to Copy' bric-a-brac using the same techniques.
_____________________
http://wiki.secondlife.com/wiki/User:debbie_Trilling
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
03-03-2008 13:07
What is boils down to, is you can now dynamically, by script, assign a 'face' to a key or name in SL. As the saying goes, "A picture is worth a thousand words".

While I don't agree with LL that this sort of thing is a TOS violation, I do agree that people have a certain right to say how their image is used.
Everyone's profile has an option to not allow it's viewing in search. If they check that box, that protects their profile not only from showing on the Internet, but protects it from being accessed by this device.
_____________________
Jana Kamachi
Registered User
Join date: 19 Apr 2007
Posts: 111
03-06-2008 18:59
From: someone

Or, you could sell a greetings card which, when opened, had the current profile pic of the sender in it.


That could be really cute, do you mind if I release a freebie?
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-06-2008 20:36
I wonder how they'll treat the new land stream which allows html, seeing as it's essentially the same concept....
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Dumisani Ah
Pass me the hammer
Join date: 2 Dec 2006
Posts: 95
I found one use for this I love, although I have not been successful ;)
03-07-2008 14:31
Since Debbie released her profile picture rezzer thingy, I have been messing around with parts of her code for one purpose I think this will work so well for, albeit I have been a complete failure for the hack that I am. The purpose I think it will work extremely well for is on my rental properties where I wanted the renter's profile automatically updated to an 'av online indicator where instead of the old drag and drop the texture onto the av online indicator texture prim, they now simply pay the rental box and it automatically displays their profile pic on the online indicator. As soon as I have successfully done this I will post it here with pleasure. There must be lots of other ideas with it, but this is one I actually thought rocked for what I wanted :) And my renters won't complain as it is a part of the conditions of their rental contract... or something like that LOL.
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
03-07-2008 16:02
From: Winter Ventura
So, any of you come up with uses for this that don't amount to "Because we can, LOL?"


Yes, I have, in that reading the code and understanding how it works, gave me the confidence to try not only Particles, but HTTPRequest, with a practical example of their use in scripts. As a result many of my own scripts have improved. I Also updated, abused and posted variations, but the issue was not the practicality in world, or the TOS conflict it appears to have raised, but the fact that it helps others to learn the possibilities.

I suggest that you point your web cam back to where it was if you have forgotten the value of learning. And please accept that I am not trying to start a Flame war, but this is the "Scripting Tips" forum, not the Products for sale forum, it is the technique not the application that is important here.
Lyndka Cochrane
Registered User
Join date: 26 Oct 2006
Posts: 2
What use can it be...?
03-25-2008 09:49
Sorry for the long contribution - I own a gizmo being sold based on this script by H&S and I use it at events I co-host. Essentially it displays the picture of AV's it finds and displays a snippet of text and so far the 'magic' factor has generated the most comment - and all (to date) positive. The only comments we seem to get are "OMG she looks so cute in that picture" - followed by flurried snapshots as folk scramble to update their pictures. The H&S device gives each AV it scans and displays, the ability to opt out of the scan and to date I'm not aware that anyone has.

My point is - it's a charming bit of fluff that is very entertaining and a good talking point - well done for discovering how to do it and kudos for making the script open source. Will it be abused - probably - (remember cage guns the bane of SL for quite a while?) some idiot somewhere will find a way to abuse the data. Should the ability to pull the data be turned off then or should the data presented be 'sanitised'? My vote would go with the latter - and so gives a solid reason for keeping membership/sensitive data and payment details separate (and external) from the grid.

SL is supposed to engender creativity on many levels - but remember a door is basically a sheet of wood in a hole and a bed is a platform to lie on - the prim sculptors and script creators in SL need an environment to challenge them or they'll go find somewhere else and we'll be left essentially with a Messenger with animation and pretty skys.

Thank you for scripting and discovering how to do 'neat' stuff - I wish I could - keep on doing it - please!
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
05-03-2008 12:17
FYI to all this, I see that someone named Xavier Tosung, Owner and creator of AIRTECH purveoys of Club and contest boards/ contest wizards, has gone ahead and marketed such a product anyway (that doesn't ask permission.)
Xavier Tosung
Registered User
Join date: 12 Sep 2006
Posts: 4
Profile pic display
05-03-2008 14:00
Thanks to Chaz for IM'ing in world about this as i was ignorant it was a TOS violation (though to be honest it sounds stupid and harmless but hey) The product has been withdrawn from sale.
Jana Kamachi
Registered User
Join date: 19 Apr 2007
Posts: 111
05-03-2008 14:40
If you modify your product to ask permissions, it wouldn't be a TOS violation. You could use a HTTP source to store approved keys so they wouldn't need to approve every time they encounter someone with your device.
_____________________
~Solar Alter~
Xavier Tosung
Registered User
Join date: 12 Sep 2006
Posts: 4
05-04-2008 00:47
thank you jana , good idea. will do :)
Klug Kuhn
Registered User
Join date: 7 Sep 2007
Posts: 126
Profile Picks Finder
09-25-2008 00:53
For those who are after to get profile picks, here is a little module which is similar as if there was a function like:

list llGetPicksDetails(key avatar)

The link is
http://www.slexchange.com/modules.php?name=Marketplace&file=item&ItemID=922662

Sorry for posting a product link here, but this is to help out who are frustrating about to get picks from the response body truncated limit 2048 bytes in llHTTPRequest().

Hope this help~
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
09-25-2008 10:58
Can someone please explain why it would be a TOS violation? I can't find an authoratative post above, searching for "TOS".
_____________________
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
09-25-2008 11:26
From: Lear Cale
Can someone please explain why it would be a TOS violation? I can't find an authoratative post above, searching for "TOS".


Lear, I'm guessing you prolly saw this posting above in this thread:

/54/bf/225460/3.html#post1859980

And on the guess that what you are saying is that you'd like to see the transcript of the actual meeting, I went to the Governance Team page on the wiki here:

http://wiki.secondlife.com/wiki/Office_Hours/GTeam

However, there was no indication of where transcripts were available for viewing as there are for other teams.

Perhaps someone else reading this thread might know if they are available, and where.
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
09-25-2008 12:26
I've never come away from a G-Team office hour without shaking my head in amazement and consternation.

It is only a ToS violation if LL chooses to define it as one. It is manifestly not a copyright violation inasmuch as LL has permission to make available any uploaded content it sees fit--and has done so with exactly this same content, and not only in-world, but to the entire planet on world.secondlife.com, in a format completely different from the in-world Profiles. So if they want to let scripts access it as they have Firefox, Internet Explorer, Chrome, Safari, Konquerer, Epiphany, etc., etc., they just have to say the word.

That they chose to say that other word is a testament to why one needs a stiff drink before any G-Team office hour. And after. During the hour might help, too.
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
09-25-2008 12:32
From: Qie Niangao
That they chose to say that other word is a testament to why one needs a stiff drink before any G-Team office hour. And after. During the hour might help, too.


/me makes a mental note to sit next to Qie at meetings :}
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
09-25-2008 20:50
Count me in; I'll buy :)
_____________________
Ann Otoole
Registered User
Join date: 22 May 2007
Posts: 867
09-30-2008 03:06
Make your profile picture and advertisement for your business. Someone wants to put your profile picture up in a gigantic 10*10 pic for all to see for free? Fine. Put that ad up rofl. If enough people did this the whole profile picture grabber thing would fade away along with all the drama i bet.

As for the profile picks thing. I ran an experiment. Nobody is interested in profile pick payola really. Not like many thought. So when you see a box full of bots in a place that purports to pay for picks, etc... Sleekbots run by the parcel owner. Again the whole thing with picks and traffic needs to be disconnected from search period.

Now using the above mentioned list applet script to make a reward system that maybe gives a nice gift to subscription group members that were nice enough to put in your place in picks? Yes that would be a solid customer rewards use case. But the whole tradition of gaming search needs to end and Linden Lab needs to step up and deal with it. Everyone knows it is a gamed system and the concurrency numbers are bogus to some degree (perhaps as much as one third or more). One would think such an embarrassment would be something to avoid instead of actively promoting falsified metrics.
Gabriele Graves
Always and Forever, FULL
Join date: 23 Apr 2007
Posts: 6,205
09-30-2008 20:13
From: Winter Ventura
"I'm actually quite interested to know if anyone has thought up a PRACTICAL use for this."



... Like what?
I have a practical use for this. I create and sell a picture voting contest system. The current system requires a person with object modification rights to "setup" the picture prim for each contestant.
Currently a contestant makes notecard with a full perm texture embedded within it and drops this notecard into a notecard dropper object I provide with the contest.
A lot of people seem to have problems with the dropping of notecards with textures in and some have no concept of perms and get frustrated when the contest owner says they cannot use the image the contestant provided due to the perms being at the default.

Sooo, I am moving to a self-setup version of this so that the admin burden is lessened. Part of the self-setup will ask the contestant if they would like to drop a texture on to the prim, provide a texture UUID via chat or have their profile picture grabbed and used. I expect a lot of less technical people will use the latter option as it is really a one click option, just like their name is grabbed as soon as they begin setup.

That only leaves them to choose a contest category they would like to enter (from a set of menu dialogs) and they are done - simple.
3 things grabbed, 2 choices made and could be as little as 3 clicks to get setup.

The fact the user chose that option means they opted in also and so it fulfills the LL barrier to being fine with TOS violations.
skyhigh Denimore
Registered User
Join date: 20 Nov 2008
Posts: 5
can get another information?
11-20-2008 05:12
i got to know that script can get someone's texture of profile by using llHttpRequest and specific URL.and i want to know more this kind of technique.
So,How to get map of sim region and avator or object position or others by useing llHttpRequest? If there are someone who know about this question.Please tell some informations.
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
11-20-2008 06:04
Sorry, skyhigh, using http request we can only get information that's available on the web. Profiles happen to be available on the web. Most of the other things you're asking for aren't.

One exception might be maps, because you can get a map texture using an SLURL. Google to find out more about them, and I can't help you any more about this because I never tried it.
Cappy Frantisek
Open Source is the Devil!
Join date: 27 Oct 2006
Posts: 400
11-20-2008 08:40
From: Ann Otoole
Make your profile picture and advertisement for your business. Someone wants to put your profile picture up in a gigantic 10*10 pic for all to see for free? Fine. Put that ad up rofl. If enough people did this the whole profile picture grabber thing would fade away along with all the drama i bet.

Even better, put in a porno pic! that would squash the whole thing pronto!
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
11-20-2008 08:52
These profile grabber gadgets have become quite common now, and none ask for permission to use your picture first -- as the Lindens said they would need to in order not to violate TOS.
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Klug Kuhn
Registered User
Join date: 7 Sep 2007
Posts: 126
11-20-2008 15:07
From: skyhigh Denimore
i got to know that script can get someone's texture of profile by using llHttpRequest and specific URL.and i want to know more this kind of technique.
So,How to get map of sim region and avator or object position or others by useing llHttpRequest? If there are someone who know about this question.Please tell some informations.


I've got one hidden on my library to get a parcel map, never tested inworld tho, but seems working :)


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

key http_request_id;
string URL = "http://www.subnova.com/secondlife/api/map.php";
string SIM_NAME;
integer iLine;

map(string name)
{
vector temp;
list temp_name;
integer i=0;
temp = llGetScale();
http_request_id = llHTTPRequest(URL + "?" + "sim" + "=", [], "";);
iLine = 0;
temp_name = llParseString2List(name,[],[" "]);
for(i=0;i<llGetListLength(temp_name);i++){
if(llList2String(temp_name,i) == " ";){
temp_name = llListReplaceList(temp_name,["_"],i,i);
}
}
SIM_NAME = llDumpList2String(temp_name,"";);
http_request_id = llHTTPRequest(URL + "?" + "sim" + "=" + SIM_NAME, [], "";);
}

default
{
state_entry()
{
map(llGetRegionName());
}

http_response(key request_id, integer status, list metadata, string body)
{
if (request_id == http_request_id){
if (body != "";) {
llSetTexture(body, ALL_SIDES);
llSetText(SIM_NAME + "\n \n \n ",<.984, .686, .365>,.8);
}
}
}

on_rez(integer n)
{
llResetScript();
}
}

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-20-2008 16:51
This is the same code as above without the fluff :p

CODE

key httpRequestId;
string URL = "http://www.subnova.com/secondlife/api/map.php";

default {
state_entry() {
httpRequestId = llHTTPRequest(URL + "?" + "sim" + "=" + llEscapeURL(llGetRegionName()),[], "");
}
http_response(key request_id, integer status, list metadata, string body) {
if (request_id == httpRequestId) llSetTexture(body, 0);
}
}
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
1 2 3 4 5 6 7