Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer night - @193.02
Activity rating: Four Stars Posts & Arts: 72/1k.beats Random | Recent Posts | Guild Recents
News: :happy: Open the all windows! Your mind needs storms and air! :happy: Guild Events: There are no events!

+  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 2810 times)
Memory
Guest

« on: a Spring day » 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:
Bug!You're a Star!Flinstone VitaminI got robbed by Dan Q on Melonland!Always working hard!Known Apple shill
« Reply #1 on: a Spring day » 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 71 times.)
« Last Edit: a Spring day by Melooon » 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
Memory
Guest

« Reply #2 on: a Spring day » 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:
Bug!You're a Star!Flinstone VitaminI got robbed by Dan Q on Melonland!Always working hard!Known Apple shill
« Reply #3 on: a Spring day » 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: Red TulipLurby?here comes the bapSmile on, rainbow flower!Plank
SilkSkull
Hero Member
*****
View Profile WWW


⛺︎ My Room
iMood: SilkSkull

Artifacts:
First 1000 Members!Cool Dude AwardJoined 2022!High Speed Ozwomp!
« Reply #4 on: a Spring night » 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: a Spring night » 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
@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
Join: craft.melonking.net