Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
May 20, 2026 - @948.16 (what is this?)
Activity rating: Four Stars Posts & Arts: 81/1k.beats Random | Recent Posts | Guild Recents
News: :sleep: These are fast times on the World Wide Web~ Guild Events: Spring Themed Projects

+  MelonLand Forum
|-+  Materials & Info
| |-+  ☮︎ ∙ Communities & Webrings
| | |-+  [Release] LibreRing: Make your own webring!


« previous next »
Pages: [1] Print Embed
Author Topic: [Release] LibreRing: Make your own webring!  (Read 2568 times)
Memory
Guest

« on: March 12, 2023 @642.81 » Embed

Hey there!

https://libre.town/graphics/img/libreringlogo.png

Due to frustrations with the popular options for creating a webring, I decided to write my own webring script from scratch that addresses all of these issues!

Its notable improvements over various alternatives include:
  • Works flawlessly with XHTML sites too due to properly formatted and closed HTML tags.
  • Licensed as free and open source software under a sane, legally enforceable and free license: the LGPL v3 or later.
  • A main logo badge, next/previous site links, a random site feature, and an info button.
  • All in one richly commented and easy to understand javascript file; sacrificing technical elegance for readability.
  • Customizable; both a text and a graphical template included, plus you can just edit the HTML in the script to change its output.


Feel free to set up your own LibreRing, and if you do so, consider joining the official LibreRing users' webring on the same site, designed to be a meta-webring to discover more webrings!
https://libre.town/graphics/gifs/badges/8831_librering.png
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:
old-timey tunes~♪Flinstone VitaminAlways working hard!PoochKnown Apple shillcoolest melon on the web!
« Reply #1 on: March 12, 2023 @737.79 » Embed

This is cool! We definitely need a few ring script alternatives!  :grin:

HOWEVER, since you are someone who tends to appreciate a bit of pickiness about details; I made a few edits for you  :tongue: (I haven't tested this so made needs a fix or two, also feel free to ignore if you don't like this approach)

In general, it's better not to use global variables; particularly if your script is gonna run on someone else's site where you don't know what other scripts they might have and they might even have multiple instances of your script running! I can see you avoided that a bit by using the ring name in the variable names, but it's still better to use a single global object that you can be sure is unique. Also simplified a few of the if/else statements for clarity, and merged the duplicated URLs since most people won't need to edit those.

* ring-code-edit.js (8.97 kB - downloaded 62 times.)
« Last Edit: March 12, 2023 @740.35 by Melooon » Logged


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

Artifact Swap: Cup o' JaneI met Dan Q on Melonland!poochLasagnaEvil fucking snailWeezerSmile on, rainbow flower!
Memory
Guest

« Reply #2 on: March 12, 2023 @765.32 » Embed

HOWEVER, since you are someone who tends to appreciate a bit of pickiness about details; I made a few edits for you  :tongue: (I haven't tested this so made needs a fix or two, also feel free to ignore if you don't like this approach)

Hey Melon, thanks for the suggestions!
The WEBRINGNAME array holding all data is a cool idea, and with your permission I'd merge the all-in-one-array approach into the file.

However, some of the other things are by design:
  • 'let' and 'const' were added to the Javascript standard in 2015 and therefore will break compatibility with older systems. I will keep using vars for that reason.
  • The image URLs were not concatenated because many people do not have their webring on the top level: if the ring URL is example.com/webring.html, then .../webring.html/badge.png won't make sense.

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:
old-timey tunes~♪Flinstone VitaminAlways working hard!PoochKnown Apple shillcoolest melon on the web!
« Reply #3 on: March 12, 2023 @776.39 » Embed

Thats a good point, I didn't think about older browsers  :omg:  And of course, I posted it so you could merge changes if you wanted to!
Logged


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

Artifact Swap: Cup o' JaneI met Dan Q on Melonland!poochLasagnaEvil fucking snailWeezerSmile on, rainbow flower!
SilkSkull
Hero Member
*****
View Profile WWW


⛺︎ My Room
iMood: SilkSkull

Artifacts:
First 1000 Members!MARIO64.PNGCool Dude AwardJoined 2022!High Speed Ozwomp!
« Reply #4 on: March 12, 2023 @931.46 » Embed

Hey this is awesome! I would love to set this up but when I clicked to download the JS file it just opened it in a new tab, is this just a firefox issue?
Logged

She/Her
Figuring out a new sig :P
https://web.archive.org/web/20090821100844im_/http://geocities.com/Athens/9334/water.gif
Memory
Guest

« Reply #5 on: March 12, 2023 @976.47 » Embed

Hey this is awesome! I would love to set this up but when I clicked to download the JS file it just opened it in a new tab, is this just a firefox issue?

Yeah Firefox does that, just right click and "save page".
Logged
Pages: [1] 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
MelonLand @000

Want to Login or Join ?

Minecraft: Online
Join: craft.melonking.net