Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Hevilmystic
Feb Member 2022

Hevilmystic

Posts: 60,012 Emerald Posts by user Forum Profile RuneMetrics Profile
Could it not be something as simple as adding a 'v' to the end of any imgur.com/bla.gif url and then embedding the gifv (webm)?

Edit: I understand some people would still like to use actual gifs rather than webms, forgot about that actually, never mind.

Maybe a 'convert all imgur gifs to webm' option?

Test of a gif, relatively small (and wasn't originally a gifv/webm):

http://i.imgur.com/4EA25an.gif

Test of one with a v added:

http://i.imgur.com/4EA25an.gifv

Edit v2: I tested the above on a gif that's over 2 years old on Imgur (so implemented before they converted large gifs into webm), and it still automatically makes it a webm, so I don't think there would be a huge problem.
Unslain Bosses - Clan

28-Feb-2015 11:02:41 - Last edited on 28-Feb-2015 11:09:16 by Hevilmystic

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Okay I found the problem with settings, Version 3.1.7.43 is uploaded now, should be live in the next 20-30 min. Very sorry about that.

Your idea with webm is fine as far as a HTML5 video format goes. That 42 mb gif would be smaller as a HTML video. Even if it wasn't smaller it wouldn't freeze the browser or cause any issues.

But it's not a fix for all gifs, that will only work for imgur hosted files. If that was gif uploaded to puush, or simply hosted somewhere else, there will likely be no fallback to HTML5 video formats.

I need to handle all gifs regardless of their host. I'm pretty sure I can do it, it'll just take some testing.

28-Feb-2015 11:20:49

Ryan M
May Member 2008

Ryan M

Posts: 3,095 Adamant Posts by user Forum Profile RuneMetrics Profile
Looking into housekeeping on the first page... you can save at least 876 characters by removing the codes below <3 and above bump in post 6. That is, whenever you remove most of them and replace them with the ones being kept. I don't think I've seen anyone request a code before though.

Also your to-do list from post 9:
- Add Cancel button to edit post — Reskin might get it. Otherwise, yes.
- Add titles to avatar (top page) — Reskin and new script are fine w/o.
- Bookmarks — Scrapped? Don't mind it. Based on quote at bottom.
- Custom skins for forums (hold) — Feature creep. We know we can though.
- Fix Cancel return location — Where are cancel options on the forums?
- Gradient backgrounds (hold) — RGBA (Reskin) > Gradient (Current)
- Ignore list (not in the future) — I can see why. Conflicts.
- Inline post editing — That's a lot of bug testing. WYSIWYG > RTE.
- Input alt codes quickly (working) — Don't know about this.
- Right click add to clan/friends list — Feature creep.

Ones you were unsure about:
- Import and update friends list — Feature creep.
- Monitor thread status (page position, number of posts, etc)
- Monitor the current forum section and update without needing to refresh page

AJAX isn't nice when the window is small unless you're playing off Wikia or Wikipedia which can handle all the requests. So I don't see the other two you were unsure about happening. Your statement of no automated requests is best kept. :)

There is http://dev.wikia.com/wiki/AjaxRC if you really want to build off of something for a page refresh though. Stripping the Wikia hacks and styles shouldn't be too hard if you ever decide to go this route.


Indecent Act said :
http://i.imgur.com/CN06oOk.png

28-Feb-2015 11:28:00

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
I can't wait to hack into page #1 and cull it down.

I wont comment on everything, just things that may need clarifying. So the lack of comments means agreed :)

- Fix Cancel return location — Where are cancel options on the forums?

There is or was a cancel button on the thread creation page.
The return buttons are just return to forum. What needs fixing is if you are on page 2 or higher of a sub forum and view a thread, the button takes you to page one of the sub section rather than the last page your were on. Easy to fix just haven't got around to it.

- Ignore list (not in the future) — I can see why. Conflicts.

I never wanted this. I believe any issues or problems that pertain to this topic require more than software solution.

However the new options for post backgrounds will allow you to enter you're own css rules. A list of names can be dedicated to custom css rules, {display:none} for example. Even though that wasn't intended for ignore, the extra freedom I'm giving allows for some potential creative use.

- Import and update friends list — Feature creep.

Already done it and have it working in the new options.

- Monitor thread status (page position, number of posts, etc)

As you know, I'm keeping away from this.

Bookmarks

I'd like to do something, but I'm not even looking at that. Got more than enough to do in the meantime. Big problem is everyone wants something different. If it's not one size fits all, then it's nothing.

Inline post editing

The clan forums have all the building blocks for this stuff, since they use javascript to parse the post text and sort bb tags etc. You can get BBtags to HTML via post or from function call, but the tags are different so they don't work on these forums.
But anyway I'm not about to do it :)

28-Feb-2015 12:07:16

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Hevilmystic said :
That's a good point, damn my eagerness :P


It's a nice approach and tbh it's not an angle that I would have though to look at it from.

After you mentioned it, I was thinking sure it doesn't fix all gifs, but doing it for all imgur gifs would still be great. Since the HTML formats are better in so many ways.

My only concern is not all gifs are animated, so HTML5 fallback is most likely non existent. I haven't tested as yet, but I will. If it doesn't break static gifs I may end up doing this :)

28-Feb-2015 12:27:38

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
That's really nice of you make a test image, thank you for that :)

Sadly that's what I expected.

Oh the browser doesn't exactly tell you how it is, it tells you either how it sees something or it tells you what it's done and how it interprets the page. Basically all common modern browsers lie.

View page source is a perfect example, that view isn't page source, it's the browsers interpretation of what the served HTML means. This can be seen here on RSOF. When a jmod's signature is quoted, that's the raw HTML. If you look at the page source you'll sometimes see differences in that code (most notably, errors corrected by the browser).

And here's what I predicted with the image, imgur are picking up on the incorrect file extension and rather than redirect, they serve the correct image. They are a fine bunch over there, going to so much trouble for us :)

http://i.imgur.com/SeqZPbi.png

It works in the browser because it's not being told to wrap the source in a video element. Where as RS Linkify only see's gifv and wraps it with video tags.

28-Feb-2015 13:07:49 - Last edited on 28-Feb-2015 13:16:59 by Indecent Act

Quick find code: 261-262-33-65181208 Back to Top