Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the "town hall" (meta-discussion site) for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on A Codidact badge/flair for my profile on my web site?

Parent

A Codidact badge/flair for my profile on my web site?

+5
−0

I'd like to put a badge on my website showing details of my account and link Codidact. This is the thing to be displayed, but with my account details:

A screenshot of a profile badge here on codiact of the user Monica Cellio

  • Is there an URL I can embed in an iframe?
  • An API to resolve the details as JSON?

Has anybody done such a thing yet? If so, how?

Thanks in advance!

History

2 comment threads

Preferred badge size (1 comment)
Ooh, nice idea! I don't think we have a route for that now, but it would be good to add. Obviously ... (1 comment)
Post
+6
−0

For comparison and discussion of what we do/don't want to be included, this sounds similar to what SE call "flair" (we don't need to use the same name here).

Note that the image in your question is of a user card, which appears under a post, and doesn't need as much context because it is already on a Codidact page. For displaying on an external website we might want some context such as the Codidact logo or name or both, or the logo or name of the specific community if it isn't an overall Codidact badge.

To demonstrate the potential differences, here is what my user card looks like under a Code Golf SE post:

Code Golf Stack Exchange user card showing my avatar, username, reputation, and gold, silver, and bronze badges

Contrast this with my Code Golf SE flair for use on an external website:

Code Golf Stack Exchange flair card showing my avatar, Code Golf logo, username, reputation, and gold, silver, and bronze badges

There is also an overall SE flair showing multiple communities:

Stack Exchange flair card showing my avatar, username, total reputation over all communities, gold, silver, and bronze badges, and a selection of community logos

Hopefully we can do better than this in terms of use of space, treatment of long usernames, and consistency, but these show that we might want to have some differences from the user card that shows under a post.

In addition to having a community specific and an overall Codidact version, perhaps we could also have a few variations that a user can choose from, depending on what they want to emphasise. For example, Codidact puts less emphasis on the reputation score, so perhaps we could have a version that shows reputation and a version that does not, so a user can prioritise what to use the space for. Similarly we could have multiple sizes, with different amounts of information.

These could all be listed in a dedicated page, perhaps a tab on the user page, and each one could be accompanied by the raw text to paste into your website's HTML to display it.

History

3 comment threads

Second, I'd like to mention, that simply embedding is nice, but I'd like to prefer to have my web sit... (2 comments)
So first of all I do get, that this does not exist (yet). (1 comment)
stats (3 comments)
Second, I'd like to mention, that simply embedding is nice, but I'd like to prefer to have my web sit...
lennybacon‭ wrote 8 months ago

Second, I'd like to mention, that simply embedding is nice, but I'd like to prefer to have my web site back end grab the data and therefore, I can prevent that the IP-Addresses of my visitors are transmitted to a third party, to be compliant with EU's DSGVO and California privacy laws.

Monica Cellio‭ wrote 8 months ago

FYI, you can use the "reply" button to keep comments together in one thread.)

It sounds like you'd like an API call so that you can generate the image and then serve it to your visitors. I agree that's better because it doesn't leak anything about your visitors to us. We're still working on figuring out an API, so there might be a shorter-term less-ideal solution sooner and an API later.