Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 21, 2024 - @865.64 (what is this?)
Forum activity rating: Three Stars Posts: 27/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts    Start New Topic
News: :ozwomp: Reminder: Forum messages stay readable for years! Keep yours high quality! :ozwomp:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ☆ ∙ Showcase & Links
| | |-+  ☮︎ ∙ Other Communities & Webrings
| | | |-+  [Release] LibreRing: Make your own webring!


« previous next »
Pages: [1] Print
Author Topic: [Release] LibreRing: Make your own webring!  (Read 916 times)
Memory
Guest
« on: March 12, 2023 @642.81 »

Hey there!


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!
Logged
Melooon
Hero Member ⚓︎
*****


So many stars!

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

View Profile WWW

Thanks for being rad!a puppy for your travelsAlways My PalFirst 1000 Members!spring 2023!Squirtle!!!!MIDI WarriorMIDI Warrior1234 Posts!OzspeckCool Dude AwardRising Star of the Web AwardMessage BuddyPocket Icelogist!OG! Joined 2021!...
« Reply #1 on: March 12, 2023 @737.79 »

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 19 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
Memory
Guest
« Reply #2 on: March 12, 2023 @765.32 »

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 ⚓︎
*****


So many stars!

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

View Profile WWW

Thanks for being rad!a puppy for your travelsAlways My PalFirst 1000 Members!spring 2023!Squirtle!!!!MIDI WarriorMIDI Warrior1234 Posts!OzspeckCool Dude AwardRising Star of the Web AwardMessage BuddyPocket Icelogist!OG! Joined 2021!...
« Reply #3 on: March 12, 2023 @776.39 »

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
SilkSkull
Hero Member ⚓︎
*****


⛺︎ My Room
SpaceHey: Friend Me!
iMood: SilkSkull
Matrix: Chat!

View Profile WWW

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

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
"Will you stop adding lampposts to my games?"

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

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 
« previous next »
 

Vaguely similar topics! (3)

An enemy from the game I'm trying to make

Started by Grafo VolaveruntBoard ➶ ∙ Art Gallery

Replies: 3
Views: 1705
Last post March 22, 2022 @61.42
by Grafo Volaverunt
I started a webring: Retroweb Ring

Started by BradEBoard ☮︎ ∙ Other Communities & Webrings

Replies: 2
Views: 1783
Last post June 27, 2022 @743.02
by BradE
GUIDE: How to make a Website!

Started by MelooonBoard ✁ ∙ Web Crafting

Replies: 1
Views: 2735
Last post March 14, 2023 @665.66
by Inkerlink

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies 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