Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer night - @878.80
Activity rating: Four Stars Posts & Arts: 84/1k.beats Random | Recent Posts | Guild Recents
News: :wizard: You can make anything on the web! :wizard: Guild Events: There are no events!

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  Idea: Badge Button Sharing Standard!


« previous next »
Pages: 1 [2] Print Embed
Author Topic: Idea: Badge Button Sharing Standard!  (Read 5947 times)
vvinrg
Jr. Member ⚓︎
**
View Profile WWW


It's mine! My text! You can't have it!! Bwahaha!!!
⛺︎ My Room
StatusCafe: winrg
iMood: winrg
Matrix: Chat!
XMPP: Chat!

Artifacts:
First 1000 Members!Joined 2023!
« Reply #15 on: an Autumn night » Embed

I'll write a python module for this, why not.

Logged
vvinrg
Jr. Member ⚓︎
**
View Profile WWW


It's mine! My text! You can't have it!! Bwahaha!!!
⛺︎ My Room
StatusCafe: winrg
iMood: winrg
Matrix: Chat!
XMPP: Chat!

Artifacts:
First 1000 Members!Joined 2023!
« Reply #16 on: an Autumn night » Embed

Thoughts while I work on implementing code to parse this:

I propose the following form for comments on all list files:

Code
## This will be reproduced later-on.
# This will be discarded.
## This will get tacked on to the end.
foo
bar
# This will also be discarded.
foobar

This would be parsed into something of the form:

Code
[
  {
    "comment": "This will be reproduced later on. This will get tacked on to the end.",
    "entry": "foo"
  },
  {
    "comment": null,
    "entry": "bar"
  },
  {
    "comment": null,
    "entry": "foobar"
  }
]

The procedure while parsing should be to accumulate double-hash comments until reaching a line with no comments, and then pushing the structure containing the concatenated double-hash comments and the line with no comments. I think it would be useful to allow people to specify extra info about their buttons, just for fun.



The following forms should be supported for friends.txt entries:

Code
example.com
example.com/BBSS/
https://example.com
https://example.com/BBSS/

Each of these will yield the same actual URL for where to find BBSS-related files. The second and forth forms should be considered special-cases for people operating on webhosts which give subdirectories instead of subdomains, in which case they may contain something like `tilde.example/~foo/BBSS/`.



I'd appreciate any thoughts on these ideas.

Logged
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
Bug!You're a Star!Flinstone VitaminI got robbed by Dan Q on Melonland!Always working hard!Known Apple shill
« Reply #17 on: an Autumn night » Embed

@vvinrg These all seem like super solid choices and I'd fully support them  :grin: The URL formats is a really good idea since people would almost certainly add URLs that are not perfectly formatted; I would even add a fall back so if someone uses a totally incorrect URL like "bob.com/pasta.html" it tries to look at the base domain anyway "https://bob.com/BBSS"

I think the main sticking point people had with this idea was that they found the folder name "BBSS" confusing; we never really came up with a perfect solution for that; some people seemed to prefer "badges" as a root folder, whereas others just wanted "88x31" as the root folder and no support for other sizes.

Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: Red TulipLurby?here comes the bapSmile on, rainbow flower!Plank
vvinrg
Jr. Member ⚓︎
**
View Profile WWW


It's mine! My text! You can't have it!! Bwahaha!!!
⛺︎ My Room
StatusCafe: winrg
iMood: winrg
Matrix: Chat!
XMPP: Chat!

Artifacts:
First 1000 Members!Joined 2023!
« Reply #18 on: an Autumn night » Embed

I think I'll end up checking [provided] -> "/BBSS/" -> "/badges/".

Logged
vvinrg
Jr. Member ⚓︎
**
View Profile WWW


It's mine! My text! You can't have it!! Bwahaha!!!
⛺︎ My Room
StatusCafe: winrg
iMood: winrg
Matrix: Chat!
XMPP: Chat!

Artifacts:
First 1000 Members!Joined 2023!
« Reply #19 on: an Autumn night » Embed

Update on implementation: deciding to make a bad path a hard fail, but having the following defaults to check for a missing path: "/BBSS/", "/.well-known/BBSS/", "/badges/", "/buttons/", and "/". I think it should be configurable? But IDK how python module imports work soo...

Logged
vvinrg
Jr. Member ⚓︎
**
View Profile WWW


It's mine! My text! You can't have it!! Bwahaha!!!
⛺︎ My Room
StatusCafe: winrg
iMood: winrg
Matrix: Chat!
XMPP: Chat!

Artifacts:
First 1000 Members!Joined 2023!
« Reply #20 on: a Winter day » Embed

hihihi im not dead i just got swamped with college but it's winter break so im working on documenting the python module! coming up next is a set of BBSS sites to test with and a javascript impl.

@Melooon would you mind my writing some proper docs and a getting started guide for the format as a whole?

Logged
Pages: 1 [2] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 MelonLand Editor Recent Edits Tenement Arcade Want to Login or Join ? Forum Art Hub Chat Webring Web Guides Graphics Catalogue Wiki Newsletters Image Stream
Melon's Sites TamaNotchi Textures PixelSea GifyPet MoMG Ozwomp Online Loom Videos Leaky Webring Melonking
Tools Melon Software ArtHub Embed Maker ML Passports
Outlinks Frutiger Aero Forum Onio Club m15o's Web Services 32Bit Cafe iMood Webrings Internet Phone Book HTML Energy Declarations Hackers & Designers
Zap!
Minecraft: Online
Who: lithiumgamma