Jump to content

Mestiv's signature


Mestiv

Recommended Posts

A question: you're parsing the URL to get the topic and page, right?

But how do you made it recognize capitalized letters and apostrophe? In URL it's just "...mestivs-signature". How does it recognize that there is an apostrophe in "mestivs"?

Link to comment
Share on other sites

A question: you're parsing the URL to get the topic and page, right?

But how do you made it recognize capitalized letters and apostrophe? In URL it's just "...mestivs-signature". How does it recognize that there is an apostrophe in "mestivs"?

I think it's the actual page the url points to that's being parsed, not the url itself. The topic is the title, so it should be easy to find. (It might break in topics/subforums with dashes in the name though...)

Edited by Eki
Link to comment
Share on other sites

This is pretty neat. owo

I would be interested in learning how to do this.

Take a programming class :) It's not for everyone, but it's worth a try. If you'll find it fun and interesting, you can have a nice career as a programmer ;)

 

A question: you're parsing the URL to get the topic and page, right?

But how do you made it recognize capitalized letters and apostrophe? In URL it's just "...mestivs-signature". How does it recognize that there is an apostrophe in "mestivs"?

I think it's the actual page the url points to that's being parsed, not the url itself. The topic is the title, so it should be easy to find. (It might break in topics/subforums with dashes in the name though...)

 

Eki is right, I read the page that the URL leads to. That's why my signature doesn't work in private conversations and locked subforums, that are not accessible to anonymous user. I'll have to work on that :)

Link to comment
Share on other sites

  • 3 weeks later...

My signature has started to slowly learn your names ;) Currently, most of you will be just "fellow Sharders", but give it time and I hope you'll see my Polandball greet you by your username :)

 

And expect mistakes, as we all know, names are hard to learn ;)

names.png

Link to comment
Share on other sites

My signature has started to slowly learn your names ;) Currently, most of you will be just "fellow Sharders", but give it time and I hope you'll see my Polandball greet you by your username :)

 

And expect mistakes, as we all know, names are hard to learn ;)

names.png

How does it learn my name? Will posting more speed it up?

Link to comment
Share on other sites

It no longer knows anything about me. It just has a link to this thread that says sig.png

Hahaha! You can't track me!

Does it still not work at all for you? I have one error logged on my server, so that must be your case.

 

How does it learn my name? Will posting more speed it up?

 

It uses this page to see who's viewing threads that have my signature in them. Posting more doesn't change anything, viewing my posts does ;)

Link to comment
Share on other sites

Does it still not work at all for you? I have one error logged on my server, so that must be your case.

 

 

It uses this page to see who's viewing threads that have my signature in them. Posting more doesn't change anything, viewing my posts does ;)

So if I reload this over and over, it will?

Link to comment
Share on other sites

So if I reload this over and over, it will?

Yes, reloading over and over should make it learn faster. From what I see, my signature should be already displaying your name to you, at least on one of the devices you use to browse the forum. Changing the device or clearing cookies from your browser makes it forget a user.

Link to comment
Share on other sites

Yes, reloading over and over should make it learn faster. From what I see, my signature should be already displaying your name to you, at least on one of the devices you use to browse the forum. Changing the device or clearing cookies from your browser makes it forget a user.

Oh. Even if I'm on mobile, will it clear it?

Link to comment
Share on other sites

Oh. Even if I'm on mobile, will it clear it?

 

I wasn't clear I think, sorry. When you're on you mobile, you most likely view the forum in it's mobile version. That version doesn't display signatures, so my software won't even know you're reading my posts. If you switch to "full version" of the 17th Shard, your mobile will be treated like any other computer.

 

When you use a full browser to view the site in it's normal version, my software will know that someone is displaying my signature.

 

Now, here's how this all works, for anyone interested :)

When you display my signature for the first time, you ask my server for it. The server returns the signature and assigns you a cookie (no spikes, I promise!). What are cookies? From now on, every time you request my signature, your browser sends back the cookie while requesting the signature image. This way my program can recognize different browsers asking for signature.

 

Now, when your browser asks for my signature, it also tells my server in which thread you want to display it in. So my software quickly checks who's the last person to view given thread, using the page I liked to in my previous post. This method is not 100% reliable, so it takes several iterations to make sure the username guessed for this particular browser is correct.

 

When you log into 17th Shard on a different browser/machine you don't have the cookie that my server assigned to your previous browser (unless you use some shared sessions by logging in to chrome etc.). That's why the signature software has to start the guessing process all over again. Luckily, it doesn't forget about your previous browser, so when you use it again, it will be recognized.

 

I hope that explains it a bit... I'm not too confident in my explanation skills :P

Link to comment
Share on other sites

So now that it seem to work I run out of ideas what else to do with my signature. Any ideas/requests? I'm able to make a poll in someones signature if anyone is interested :) I'm open for commision :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...