Jump to content
MakeWebGames

Simple Gravatar Addon


peterisgb

Recommended Posts

This isn't a big mod if a mod at all.

This mod/snippit allows you to replace your in game profile_pic with your Gravatar image.

It will display a gravatar image if user doesn't have a profile pic.

Place this Snippit into where you wish to display.

Change $r to $ir where necessary.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Upload images to images/ directory.

The comments gave me the idea to make avataaars mod. Which is on the market place.

Thanks.

male.png

female.png

Edited by peterisgb
Link to comment
Share on other sites

10 minutes ago, Sim said:

Wonder if there is an avatar creator API available? 🙂 Be nice to implement.

for games no, but its not hard u just need someone to make  imgand u place them on top of each other

i will make one in my game but i will only make the face the items in mt game right now ar at least 433 so it will be expensive to make equipment as a avatar but if i can get a good budjet by not 🙂

 

Link to comment
Share on other sites

1 hour ago, ags_cs4 said:

for games no, but its not hard u just need someone to make  imgand u place them on top of each other

i will make one in my game but i will only make the face the items in mt game right now ar at least 433 so it will be expensive to make equipment as a avatar but if i can get a good budjet by not 🙂

 

Full avatar be expensive, but face avatar could be manageable. An avatar creator website with API for game and website implementation could be a really good idea.  

 

Edit:

Worst typing I've ever seen you do.

Edited by Sim
Link to comment
Share on other sites

On 8/17/2020 at 9:26 PM, Sim said:

Worst typing I've ever seen you do.

lets pretend we didn't see that 😄 was in the car so yea.

but having avatar changer for example:

Quote

 

Skin color: 4 colors.

Hair Color: 4 (black, brown, gray, white).

Face Hair Color: 4 (black, brown, gray, white).

Beard: 4 - 7

mustach: 2 - 4

eye shape: 2 - 4

eye color: 4 (green,blue,brown,black) 

mouth shape: 2 - 4

ears: 2 - 3

and all this will be twice for both genders so that why i said it will cost ((28*2)-8)=48, or the max ((38*2)-8)=68 

it will be lot of images

 

 

Link to comment
Share on other sites

Link to comment
Share on other sites

1 minute ago, Sim said:

Not exactly what I was referring about.

Even if an API was created, there have to be a script to incorporate it. Cause the API would most likely just pull the images.

You've confused me now. 🙂

It in itself is an API, you write the script to interact with the api and change the values for the linked image accordingly.

Link to comment
Share on other sites

4 hours ago, Sim said:

What's the get request to fetch all hair?

Their API doesn't support that.
A quick scrape of their form, however, would suit your needs.

Here, I'll even build the array for you

All options that were available at the time of writing:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...