Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
@Dsctatom,

Tbh I skipped right over that, because there is no need to get the session id. Actually I'm yet to see a case where it's needed for navigation purposes.

I've seen a number of scripts and extensions and in most cases they all try to isolate the session ID or the URL containing the ID. Then build an absolute URL around it.

Just a little tip...

Treat the ID as if it's a component of the root, that's what the server does. All you need is a relative URL. Example for a link to General Forum, no ID needed.

Simply
"forums.ws?14,15"
will navigate to...

"ht tp://services.runescape.com/m=forum/c=YourSessionID/sl=0/forums.ws?14,15"


That's how URL's are meant to work. This means you wont get logged out when navigating and there is no interaction at all with the ID. It also means your code doing less, and I feel more comfortable knowing my code isn't parsing ID's around.

Anyway aside from that, I'll have a proper play around with your code very soon. I've been slack and actually been playing RuneScape for a change.

05-Apr-2014 10:25:51

Dsctatom
Dec Member 2023

Dsctatom

Posts: 12,987 Opal Posts by user Forum Profile RuneMetrics Profile
Indecent Act said :
Simply
"forums.ws?14,15"
will navigate to...

"ht tp://services.runescape.com/m=forum/c=YourSessionID/sl=0/forums.ws?14,15"


That's how URL's are meant to work. This means you wont get logged out when navigating and there is no interaction at all with the ID. It also means your code doing less, and I feel more comfortable knowing my code isn't parsing ID's around.


I had done it that way because that's how Jagex made the links, but I'm not sure what you mean. If I try to open any forum in another tab without the ID it shows me logged out.

05-Apr-2014 18:11:55

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
@Dsctatom, sorry if I wasn't clear.

Running this code will show you what I mean, it's how RS Linkify handles all navigation and it doesn't log you out and it doesn't extract/read/use session ID's.

This is your code with some very minor changes. I tested it in the browser console without any issues. (edit: this will only work within the services.runescape.c om sub domain)

http://puu.sh/7XqSe.txt

Hope this shows what I mean, and ty again for your idea, I quite like it and if I go with it I'd like to credit you for it :)

05-Apr-2014 23:42:52 - Last edited on 06-Apr-2014 00:05:57 by Indecent Act

Dsctatom
Dec Member 2023

Dsctatom

Posts: 12,987 Opal Posts by user Forum Profile RuneMetrics Profile
I don't know what I'm doing wrong, but that results in me being logged out. Were you running that independently or integrated with RS Linkify when you tested it? I tried it alone with RSL off and alone with RSL on, to no avail.

Btw, is it intentional that the quote chat heads are the standard one and not your custom one? I think you have it set to only handle the first instance; it's correct in the first post of this page, but incorrect in my quote.

06-Apr-2014 01:26:08 - Last edited on 06-Apr-2014 01:27:50 by Dsctatom

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
@Chess Guy4, Thanks for that, I'm looking into now.

@Dsctatom, the mini-avatar isn't showing because you didn't include the avatar qfc in the quote. You can avoid that since RS Linkify supports text selection quoting.

When you don't wish to quote an entire post just select the text you want and hit quote. RS Linkify will only quote what you have selected and will apply the avatar code if a custom avatar exists.

Edit: I ran the code in the console while in the services.runescape subdomain.

@Meredith, so glad you posted. I needed your clear way of putting forward an example to illustrate what I mean. I tend to overcomplicate things I think :)

06-Apr-2014 01:52:38 - Last edited on 06-Apr-2014 01:53:57 by Indecent Act

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