Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
I just thought of a whitespace character that doesn't get caught by the censor, it's the normal space character! It never gets caught by the censor either.

Since ­­Big Font­­ is most appropriately used as a header or otherwise a one-liner, what do you think about using spaces at the end of a line to detect headers and give them a header style?

Simplified for explanation, in regex you might have:
rawText.replace(/^[^\n]+( ){2}$/g,function(headerText){return "[headertag1]"+headerText.slice(0,-3)+"[/headertag1]"})

rawText.replace(/^[^\n]+( ){3}$/g,function(headerText){return "[headertag2]"+headerText.slice(0,-3)+"[/headertag2]"})

Where each headertag represents some mutually exclusive header style.

E: Or possibly put the spaces in a bold tag to not get false positives.

Header styles that currently exist on the RS website:

http://gdriv.es/blasty/i/linkify/header1.png
http://gdriv.es/blasty/i/linkify/header2.png
http://gdriv.es/blasty/i/linkify/header3.png
http://gdriv.es/blasty/i/linkify/header4.png
http://gdriv.es/blasty/i/linkify/header5.png
http://gdriv.es/blasty/i/linkify/header6.png

i

­­
­­<
Blasty
the Blue
>­­
­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

11-Jul-2014 14:34:27 - Last edited on 11-Jul-2014 15:09:29 by Blasty

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Another suggestion, perhaps including [b][/b] in the beginning of a post could make the background of the post use a different texture if it is a thread topic post. i.e. it is a concurrent post from the first post in a thread by the thread creator (first page only).

E: My original idea was a different background but the 'topic post' tag could give the topic posts a variety of styles (image borders, headers, etc.) that distinguish it as topic posts.

Or perhaps this could be the use of blank colour tags outside of linkify

Texture I have in mind:

http://www.runescape.com/img/rs3/background-main-full-width.jpg

i

­­
­­<
Blasty
the Blue
>­­
­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

11-Jul-2014 14:51:03 - Last edited on 11-Jul-2014 15:04:54 by Blasty

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Also wanted to add that the censor is only an issue in non-specialist forums so white-space tags can be kept for tags that are exclusively used within specialist forums.

Also wanted to ask what you think about having two signatures: one for specialist forums and one for non-specialist forums?

i

­­
­­<
Blasty
the Blue
>­­
­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

11-Jul-2014 15:17:22

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
I suddenly came up with an idea that should make it viable to add a 'like' button to threads.

Looking for comments while I continue doing some plans.

In order to prevent abuse, users must sign up in order to be able to like. This is done on a thread by me where players will post a 10-digit hexadecimal code similar to the authenticator from a client secret that is based on their display name and the date at time of creation. I will then confirm their codes.

When a user makes a post request to like a thread, the request will include the thread qfc, user id and 10-digit hexadecimal code.

Simply in terms of authentication, the minimum linkify would need on top of what I'm doing is:
- A settings page to set and store user id and client secret
- The function that turns the client secret and timestamp into a 10-digit hexadecimal code.
- option to opt-out/opt-in of the like system(?)

In terms of integration into RSOF, a single request for the like count may be updated every time the threads list is open or the first page of a thread. There will be two types of like count requests: thread list and the OP of a thread. The thread list request will include the number of likes (of up to 10?) threads. The thread OP request will include the number of likes and the display names of the likers.

When this request is made, linkify should apply changes to the page so the user can view the data and also include a like button.

The UI work needed should be minimal, I'll have a look at how I can make it embed smoothly into RS and feel like it belongs there.

Feedback appreciated :)

i

­­
­­<
Blasty
the Blue
>­­
­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

11-Jul-2014 16:34:57

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Amendment to the above: I'm thinking of changing the code generating function to not be dependent on time, but instead the thread's qfc and client secret. This is just to make sure if one thread's support is brute forced, other threads can't be and also make it so I don't have to deal with potential time syncing problems.

i

­­
­­<
Blasty
the Blue
>­­
­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

11-Jul-2014 16:56:42

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