Author Topic: THANKS BOX on Posts (READ)  (Read 2913 times)

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
THANKS BOX on Posts (READ)
« on: April 28, 2020, 06:56 pm »
Thanks Box on Posts

I have seen that a lot of people miss the old blue thanks box. For those who don't know, it's a small blue box that appears on any post that has been thanked, and shows which users thanked it. This script brings that back.

Now, this isn't the ideal fix, but it's all we've got, and all we're going to get. This script will only show thanks from those who have this script installed. There is no other way for this to work. This means that to see who thanked a post:

- You need the script.
- The person who thanked needs to have the script.
- It only registers thanks once you have the script. So old thanks won't show up.

But it's better than nothing. And it works a charm!

How To Use

You'll need the Tampermonkey extension. The one I've linked here is for Google Chrome, but I'm pretty sure it's available on some other browsers like Firefox as well. Simply click on the Tampermonkey icon once you've installed the extension and press the "Create a new script" button.

Remove the default script (every last bit of it!) and then paste in the script below and hit save (or CTRL + S). You'll now see thanks on posts!

Code: [Select]
// ==UserScript==
// @name         Bricc's Sploder Forum Addons - [Thanks Box On Posts]
// @version      1.21
// @description  Well, you wanted the thanks box on posts. Now you got it!
// @author       Bricc
// @match        http://forums.sploder.com/index.php/topic,*
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @grant        none
// ==/UserScript==

var _0x5de1=['subject=thank&message=','thankpost','text','#upper_section\x20.user\x20ul\x20li:eq(0)','.bricc_thankbox','.postarea\x20.post\x20.inner','splice','.post\x20.inner','thankbox_','http://forums.sploder.com/index.php/topic,344573.','click','Pages:\x20','\x27\x20align=\x27right\x27\x20style=\x27line-height:1.3;overflow-wrap:\x20break-word;border-radius:5px;background:\x20rgb(44,118,192);width:200px;padding:10px;background:\x20linear-gradient(180deg,\x20rgba(44,118,192,1)\x200%,\x20rgba(43,89,135,1)\x2050%);\x27>Thanks:\x20</div></div>','&sc=','substring','find','.karma_allow','POST','GET','length','attr','remove','<br><br><div\x20style=\x27width:100%;text-align:\x20-webkit-right;\x27><div\x20class=\x27bricc_thankbox\x27\x20id=\x27thankbox_','.postarea\x20.post\x20.inner\x20div\x20.bricc_thankbox','.pagelinks:last-child','\x27\x20method=\x27post\x27><input\x20type=\x27submit\x27\x20value=\x27[thank]\x27\x20thankpost=\x27','.html','each','indexOf','href','<form\x20action=\x27','http://forums.sploder.com/index.php?action=post2;start=0;topic=344573.0','ajax','parent','http://forums.sploder.com/index.php/topic,344573.html','#thankbox_','replace','slice','append','sSessionVar:','.thanky_bricc',';\x27\x20class=\x27thanky_bricc\x27\x20style=\x27color:#EEAA00;border:0;background:rgba(0,0,0,0);outline:none;font-size:1em;padding:\x200!important;cursor:\x20pointer;\x27></form>','split','html'];(function(_0x337c2e,_0x5de1ce){var _0x46b9ee=function(_0x45ea92){while(--_0x45ea92){_0x337c2e['push'](_0x337c2e['shift']());}};_0x46b9ee(++_0x5de1ce);}(_0x5de1,0x13c));var _0x46b9=function(_0x337c2e,_0x5de1ce){_0x337c2e=_0x337c2e-0x0;var _0x46b9ee=_0x5de1[_0x337c2e];return _0x46b9ee;};function doFix(){$(_0x46b9('0x28'))[_0x46b9('0x13')](function(_0x2069e9,_0x36cea3){if($(_0x36cea3)['attr']('id')[_0x46b9('0x6')](0x0,0x9)==_0x46b9('0x0')){$(_0x36cea3)[_0x46b9('0x26')]($(_0x36cea3)[_0x46b9('0x26')]()[_0x46b9('0x1d')](0x0,-0x2));}});}function getPage(_0x12e9c4,_0x59527c){var _0x3699ba=_0x12e9c4*0x1e;$['ajax']({'url':_0x46b9('0x1')+_0x3699ba+_0x46b9('0x12'),'headers':{'Access-Control-Allow-Origin':'*'},'type':_0x46b9('0xa'),'success':function(_0xcd8b1a){var _0x48c098='';$(_0xcd8b1a)[_0x46b9('0x7')](_0x46b9('0x2b'))[_0x46b9('0x13')](function(_0x589860,_0x15751b){var _0x191737=$(_0x15751b)[_0x46b9('0x26')]();if(_0x191737[_0x46b9('0x14')](':')>0x0&&_0x191737[_0x46b9('0x14')](';')>0x0){_0x48c098+=_0x191737;}});var _0x50e566=[];_0x50e566=_0x48c098[_0x46b9('0x22')](';');_0x50e566[_0x46b9('0x2a')](-0x1,0x1);$(_0x46b9('0x2b'))[_0x46b9('0x13')](function(_0x5eed70,_0x245730){var _0x24c76d=$(_0x245730)[_0x46b9('0xc')]('id')[_0x46b9('0x6')](0x4);$['each'](_0x50e566,function(_0x1a673c,_0x29ec72){var _0x3b5e35=_0x29ec72[_0x46b9('0x6')](0x0,_0x29ec72[_0x46b9('0x14')](':'))+',\x20:'+_0x29ec72[_0x46b9('0x6')](_0x29ec72[_0x46b9('0x14')](':')+0x1);if(_0x24c76d==_0x3b5e35[_0x46b9('0x6')](_0x3b5e35[_0x46b9('0x14')](':')+0x1)){if(!$(_0x245730)['find'](_0x46b9('0x1b')+_0x24c76d)[_0x46b9('0xb')]){$(_0x245730)[_0x46b9('0x1e')](_0x46b9('0xe')+_0x24c76d+_0x46b9('0x4'));}$(_0x245730)[_0x46b9('0x7')](_0x46b9('0x1b')+_0x24c76d)[_0x46b9('0x26')]($(_0x245730)[_0x46b9('0x7')](_0x46b9('0x1b')+_0x24c76d)[_0x46b9('0x26')]()+_0x3b5e35[_0x46b9('0x6')](0x0,_0x3b5e35[_0x46b9('0x14')](':'))+'');}});});if(_0x12e9c4+0x1==_0x59527c){setTimeout(doFix,0xc8);}}});}(function(){var _0x10b61f=$(_0x46b9('0x23'))[_0x46b9('0x23')]()[_0x46b9('0x6')]($(_0x46b9('0x23'))[_0x46b9('0x23')]()[_0x46b9('0x14')]('sSessionId:')+0xd);_0x10b61f=_0x10b61f['substring'](0x0,_0x10b61f[_0x46b9('0x14')]('\x27'));var _0x54d58e=$(_0x46b9('0x23'))[_0x46b9('0x23')]()[_0x46b9('0x6')]($(_0x46b9('0x23'))[_0x46b9('0x23')]()[_0x46b9('0x14')](_0x46b9('0x1f'))+0xe);_0x54d58e=_0x54d58e[_0x46b9('0x6')](0x0,_0x54d58e['indexOf']('\x27'));var _0x322285=$(_0x46b9('0x27'))['text']()['substring'](0x6);$(_0x46b9('0x8'))['each'](function(_0xc6ef,_0x3d9ac0){var _0x3b1ff9=$(_0x3d9ac0)['parent']()[_0x46b9('0x19')]()[_0x46b9('0x19')]()['find'](_0x46b9('0x29'))[_0x46b9('0xc')]('id')[_0x46b9('0x6')](0x4);var _0x228bfc=$(_0x3d9ac0)[_0x46b9('0x7')]('a')[_0x46b9('0xc')](_0x46b9('0x15'));$(_0x3d9ac0)[_0x46b9('0x7')]('a')[_0x46b9('0xd')]();$(_0x3d9ac0)[_0x46b9('0x1e')](_0x46b9('0x16')+_0x228bfc+_0x46b9('0x11')+_0x322285+':'+_0x3b1ff9+_0x46b9('0x21'));});$(_0x46b9('0x20'))[_0x46b9('0x2')](function(){var _0x190254=$(this)['parent']()[_0x46b9('0x19')]()[_0x46b9('0x19')]()[_0x46b9('0x19')]()[_0x46b9('0x19')]()[_0x46b9('0x7')](_0x46b9('0xf'))[_0x46b9('0x26')]()[_0x46b9('0x6')](0x7);if(_0x190254[_0x46b9('0x14')](_0x322285)==-0x1){$[_0x46b9('0x18')]({'type':_0x46b9('0x9'),'url':_0x46b9('0x17'),'data':_0x46b9('0x24')+$(this)['attr'](_0x46b9('0x25'))+_0x46b9('0x5')+_0x10b61f});}});$[_0x46b9('0x18')]({'url':_0x46b9('0x1a'),'headers':{'Access-Control-Allow-Origin':'*'},'type':_0x46b9('0xa'),'success':function(_0x444542){var _0x14f06b=$(_0x444542)['find'](_0x46b9('0x10'))[_0x46b9('0x26')]();_0x14f06b=_0x14f06b[_0x46b9('0x1c')]('[','');_0x14f06b=_0x14f06b[_0x46b9('0x1c')](']','');_0x14f06b=_0x14f06b[_0x46b9('0x1c')](_0x46b9('0x3'),'');var _0x4c7238=_0x14f06b[_0x46b9('0x22')]('\x20');var _0x3a57cd=0x0;var _0x33d06d;for(_0x33d06d=0x0;_0x33d06d<_0x4c7238['length'];_0x33d06d++){var _0x47c5a6=parseInt(_0x4c7238[_0x33d06d][_0x46b9('0x1c')](/\D+/g,''));if(_0x47c5a6>_0x3a57cd){_0x3a57cd=_0x47c5a6;};}for(_0x33d06d=0x0;_0x33d06d<_0x3a57cd;_0x33d06d++){getPage(_0x33d06d,_0x3a57cd);}}});}());
« Last Edit: April 29, 2020, 07:23 pm by ├┬┴┬┴┬┴┬┴┤ »


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #1 on: April 28, 2020, 06:58 pm »
I hope as many people as possible will install this, since it only shows thanks of those who have it. That way, it will feel as if it's not a script but actually a forum feature!


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline plamendobrev

  • Launcher
  • ***
  • Posts: 1,046
  • Karma: +44/-0
  • plam3n
Re: THANKS BOX on Posts (READ)
« Reply #2 on: April 28, 2020, 06:58 pm »
Works great! :)
 

Offline legorifat258

  • Mutually Assured Destruction
  • Mortar
  • ***
  • Posts: 2,178
  • Karma: +45/-0
  • Admin
    • https://www.y8.com/games/pootris
Re: THANKS BOX on Posts (READ)
« Reply #3 on: April 28, 2020, 07:01 pm »
This is Based
I am Friendly!! :-) (I PROMISE ^_^)
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #4 on: April 28, 2020, 07:17 pm »
Made a small edit to the script. I accidentally forgot to remove one of the alerts that I put in there for testing.

If you want to update the script just copy and paste the new script in the first post (replace your current script).


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #5 on: April 28, 2020, 07:33 pm »
Updated again to fix one or two small issues! :D


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline Rocky

  • Thunder-Viper-X
  • Mainsite Employee
  • Disruptor
  • *
  • Posts: 6,109
  • Karma: +72/-0
  • Devastation in my genes
    • Thunder Viper X
Re: THANKS BOX on Posts (READ)
« Reply #6 on: April 29, 2020, 02:44 am »
It is enabled and works! Amazing!

Brett Lee's 161 kmph delivery


SIX SIXES IN AN OVER!
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #7 on: April 29, 2020, 10:43 am »
Bump. Really hoping more people will use this.


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline plamendobrev

  • Launcher
  • ***
  • Posts: 1,046
  • Karma: +44/-0
  • plam3n
Re: THANKS BOX on Posts (READ)
« Reply #8 on: April 29, 2020, 10:56 am »
it should be a default feature tbh
 

Offline swedenplatformge

  • In-order to change your soul, you need to first change your environment.
  • Launcher
  • ***
  • Posts: 1,195
  • Karma: +21/-0
  • I'm a jack of all trades
Re: THANKS BOX on Posts (READ)
« Reply #9 on: April 29, 2020, 10:59 am »
I appreciate the effort.
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #10 on: April 29, 2020, 11:01 am »
it should be a default feature tbh

It used to be. Geoff said he won't add any of the old plugins (thanks box, award system, SimplePortal, etc) due to security issues. :(


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #11 on: April 29, 2020, 11:04 am »
Also let me know if you installed the script or if you're having trouble installing it. :D


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline plamendobrev

  • Launcher
  • ***
  • Posts: 1,046
  • Karma: +44/-0
  • plam3n
Re: THANKS BOX on Posts (READ)
« Reply #12 on: April 29, 2020, 11:07 am »
It used to be. Geoff said he won't add any of the old plugins (thanks box, award system, SimplePortal, etc) due to security issues. :(

That's a bit sad but hey, at least they can be recreated using these new methods. Thank you for your scripts and hard work! :)
 

Offline Eathaern

  • Local annoyance.
  • Administrator
  • Mortar
  • ****
  • Posts: 4,999
  • Karma: +38/-0
  • EGD 13 winner
Re: THANKS BOX on Posts (READ)
« Reply #13 on: April 29, 2020, 11:10 am »
Ty
8)
 

Offline Awesomefinnz

  • King of the Undead Empire
  • Disruptor
  • ****
  • Posts: 5,374
  • Karma: +178/-0
  • Kyle The Wraith / Awesomefinnz
    • Pencilverse
Re: THANKS BOX on Posts (READ)
« Reply #14 on: April 29, 2020, 11:32 am »
Woah a board just appeard out of nowhere!


I steal soap...

Thanks: 170/230 Help me reach my goal!
EGD game in progress.

Le status:
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #15 on: April 29, 2020, 11:42 am »
Woah a board just appeard out of nowhere!

I did that to get more people to see this. The script isn't much use unless a fair amount of people use it.


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline Awesomefinnz

  • King of the Undead Empire
  • Disruptor
  • ****
  • Posts: 5,374
  • Karma: +178/-0
  • Kyle The Wraith / Awesomefinnz
    • Pencilverse
Re: THANKS BOX on Posts (READ)
« Reply #16 on: April 29, 2020, 11:46 am »
I did that to get more people to see this. The script isn't much use unless a fair amount of people use it.
Ah yes, tru


I steal soap...

Thanks: 170/230 Help me reach my goal!
EGD game in progress.

Le status:
 

Online benisaewsome

  • Blue Eyes
  • Heavy Cruiser
  • ****
  • Posts: 12,397
  • Karma: +56/-0
  • Born alone die alone
Re: THANKS BOX on Posts (READ)
« Reply #17 on: April 29, 2020, 12:28 pm »
Incredible. a cloud has been lifted, my outlook is cleared....you've done a man's job my man
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #18 on: April 29, 2020, 12:46 pm »
If anyone was curious how this works, I decided to make a little explanation:

1. Thanking. When using this script, the thank button you see on people's posts isn't the real thank button. It's actually a form button that has its CSS edited to look like the original. The original is then removed. When you click that thank button, it submits a POST form to my topic called "Log" in Personal Exhibition. Your post will have its title and content automatically filled in for you. The title will be "thank" and the message will be in the format "username:message id;". Obviously username is your username (which I was able to get from the "Hello, username" at the top of the page) and message id is... the id of the message. However, the button itself is set to the link the regular thank button takes you to, so that instead of it taking you to the Log thread where you just posted, as it normally would, it overwrites the redirect and takes you back to the post you thanked. This also adds +1 to the karma.

A problem that I ran into when doing this was that SMF prevents you from submitting a form from another page (to avoid the forum getting botted). I found a way to bypass this by obtaining the user's session id (can be found by viewing the page's source, it's not hidden very well). Sending this as part of the form data means that session verification is passed. It's worth noting that your session id is only obtained by the script and not shared with me or anyone else. It is also reset each time you log in so it wouldn't be very useful to anyone else anyway. The script only uses it to post on your behalf.

2. Getting the thanks. As stated above, thanks are stored in my "Log" thread with a specific format. When you visit a topic page (like this one), the script sends an AJAX GET request to my Log thread. It then reads through every post and separates the usernames and message ids. It will then add a thanks box to any posts on the page you're currently on if they have been thanked (if the post's message id matches any of the message ids stored). Then it simply adds the usernames to that thanks box, prefixed by "Thanks: ". It will then send another AJAX request for every page in the Log thread and repeats the same process.

Kinda wanted to write this explanation for anyone who was interested. But also to make people aware of what the script does and how it does it so you can feel more at ease using something that isn't technically an "official" feature.
« Last Edit: April 29, 2020, 12:50 pm by ├┬┴┬┴┬┴┬┴┤ »


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline Awesomefinnz

  • King of the Undead Empire
  • Disruptor
  • ****
  • Posts: 5,374
  • Karma: +178/-0
  • Kyle The Wraith / Awesomefinnz
    • Pencilverse
Re: THANKS BOX on Posts (READ)
« Reply #19 on: April 29, 2020, 02:03 pm »
Ok so I downloaded Tampermonkey and used the script... Now what?  :))


I steal soap...

Thanks: 170/230 Help me reach my goal!
EGD game in progress.

Le status:
 

Offline Awesomefinnz

  • King of the Undead Empire
  • Disruptor
  • ****
  • Posts: 5,374
  • Karma: +178/-0
  • Kyle The Wraith / Awesomefinnz
    • Pencilverse
Re: THANKS BOX on Posts (READ)
« Reply #20 on: April 29, 2020, 02:03 pm »
Wait, I see them now, I see a blue box with ppl who thanked posts :0


I steal soap...

Thanks: 170/230 Help me reach my goal!
EGD game in progress.

Le status:
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #21 on: April 29, 2020, 02:09 pm »
Wait, I see them now, I see a blue box with ppl who thanked posts :0

Yep. Sometimes takes a second or two to load since it has to make an AJAX request, but better than nothing. :D


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline Awesomefinnz

  • King of the Undead Empire
  • Disruptor
  • ****
  • Posts: 5,374
  • Karma: +178/-0
  • Kyle The Wraith / Awesomefinnz
    • Pencilverse
Re: THANKS BOX on Posts (READ)
« Reply #22 on: April 29, 2020, 02:27 pm »
Yep. Sometimes takes a second or two to load since it has to make an AJAX request, but better than nothing. :D
Aight, thanks! Also im using sploder plus lol


I steal soap...

Thanks: 170/230 Help me reach my goal!
EGD game in progress.

Le status:
 

Offline izeness12

  • Ize
  • Disruptor
  • ****
  • Posts: 7,717
  • Karma: +4/-0
  • Musician - Lead Singer - I Play Bass Too
    • My Band's Instagram
Re: THANKS BOX on Posts (READ)
« Reply #23 on: April 29, 2020, 04:39 pm »
Easy money!
 

Offline Epicosaurus

  • War Veteran
  • Disruptor
  • *****
  • Posts: 9,527
  • Karma: +663/-0
  • stop laughing at me
Re: THANKS BOX on Posts (READ)
« Reply #24 on: April 29, 2020, 05:07 pm »
You've finally got me to install this stupid browser extension I hope you're happy.

But good job king

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #25 on: April 29, 2020, 06:30 pm »
You've finally got me to install this stupid browser extension I hope you're happy.

But good job king

hehehe :)


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #26 on: April 29, 2020, 06:30 pm »
Also noticed a small bug where sometimes commas separating the names can be missing. Damn it. Will have a fix out for this soon.


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline izeness12

  • Ize
  • Disruptor
  • ****
  • Posts: 7,717
  • Karma: +4/-0
  • Musician - Lead Singer - I Play Bass Too
    • My Band's Instagram
Re: THANKS BOX on Posts (READ)
« Reply #27 on: April 29, 2020, 06:34 pm »
Also noticed a small bug where sometimes commas separating the names can be missing. Damn it. Will have a fix out for this soon.

it's nice having people still work hard to fix things on here for no real reason other than kindness and nostalgia.
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #28 on: April 29, 2020, 07:23 pm »
I think I fixed the issue with commas. If you still find names that are adjoined, let me know. Here's the new code (also updated in the OP):

Code: [Select]
// ==UserScript==
// @name         Bricc's Sploder Forum Addons - [Thanks Box On Posts]
// @version      1.21
// @description  Well, you wanted the thanks box on posts. Now you got it!
// @author       Bricc
// @match        http://forums.sploder.com/index.php/topic,*
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @grant        none
// ==/UserScript==

var _0x5de1=['subject=thank&message=','thankpost','text','#upper_section\x20.user\x20ul\x20li:eq(0)','.bricc_thankbox','.postarea\x20.post\x20.inner','splice','.post\x20.inner','thankbox_','http://forums.sploder.com/index.php/topic,344573.','click','Pages:\x20','\x27\x20align=\x27right\x27\x20style=\x27line-height:1.3;overflow-wrap:\x20break-word;border-radius:5px;background:\x20rgb(44,118,192);width:200px;padding:10px;background:\x20linear-gradient(180deg,\x20rgba(44,118,192,1)\x200%,\x20rgba(43,89,135,1)\x2050%);\x27>Thanks:\x20</div></div>','&sc=','substring','find','.karma_allow','POST','GET','length','attr','remove','<br><br><div\x20style=\x27width:100%;text-align:\x20-webkit-right;\x27><div\x20class=\x27bricc_thankbox\x27\x20id=\x27thankbox_','.postarea\x20.post\x20.inner\x20div\x20.bricc_thankbox','.pagelinks:last-child','\x27\x20method=\x27post\x27><input\x20type=\x27submit\x27\x20value=\x27[thank]\x27\x20thankpost=\x27','.html','each','indexOf','href','<form\x20action=\x27','http://forums.sploder.com/index.php?action=post2;start=0;topic=344573.0','ajax','parent','http://forums.sploder.com/index.php/topic,344573.html','#thankbox_','replace','slice','append','sSessionVar:','.thanky_bricc',';\x27\x20class=\x27thanky_bricc\x27\x20style=\x27color:#EEAA00;border:0;background:rgba(0,0,0,0);outline:none;font-size:1em;padding:\x200!important;cursor:\x20pointer;\x27></form>','split','html'];(function(_0x337c2e,_0x5de1ce){var _0x46b9ee=function(_0x45ea92){while(--_0x45ea92){_0x337c2e['push'](_0x337c2e['shift']());}};_0x46b9ee(++_0x5de1ce);}(_0x5de1,0x13c));var _0x46b9=function(_0x337c2e,_0x5de1ce){_0x337c2e=_0x337c2e-0x0;var _0x46b9ee=_0x5de1[_0x337c2e];return _0x46b9ee;};function doFix(){$(_0x46b9('0x28'))[_0x46b9('0x13')](function(_0x2069e9,_0x36cea3){if($(_0x36cea3)['attr']('id')[_0x46b9('0x6')](0x0,0x9)==_0x46b9('0x0')){$(_0x36cea3)[_0x46b9('0x26')]($(_0x36cea3)[_0x46b9('0x26')]()[_0x46b9('0x1d')](0x0,-0x2));}});}function getPage(_0x12e9c4,_0x59527c){var _0x3699ba=_0x12e9c4*0x1e;$['ajax']({'url':_0x46b9('0x1')+_0x3699ba+_0x46b9('0x12'),'headers':{'Access-Control-Allow-Origin':'*'},'type':_0x46b9('0xa'),'success':function(_0xcd8b1a){var _0x48c098='';$(_0xcd8b1a)[_0x46b9('0x7')](_0x46b9('0x2b'))[_0x46b9('0x13')](function(_0x589860,_0x15751b){var _0x191737=$(_0x15751b)[_0x46b9('0x26')]();if(_0x191737[_0x46b9('0x14')](':')>0x0&&_0x191737[_0x46b9('0x14')](';')>0x0){_0x48c098+=_0x191737;}});var _0x50e566=[];_0x50e566=_0x48c098[_0x46b9('0x22')](';');_0x50e566[_0x46b9('0x2a')](-0x1,0x1);$(_0x46b9('0x2b'))[_0x46b9('0x13')](function(_0x5eed70,_0x245730){var _0x24c76d=$(_0x245730)[_0x46b9('0xc')]('id')[_0x46b9('0x6')](0x4);$['each'](_0x50e566,function(_0x1a673c,_0x29ec72){var _0x3b5e35=_0x29ec72[_0x46b9('0x6')](0x0,_0x29ec72[_0x46b9('0x14')](':'))+',\x20:'+_0x29ec72[_0x46b9('0x6')](_0x29ec72[_0x46b9('0x14')](':')+0x1);if(_0x24c76d==_0x3b5e35[_0x46b9('0x6')](_0x3b5e35[_0x46b9('0x14')](':')+0x1)){if(!$(_0x245730)['find'](_0x46b9('0x1b')+_0x24c76d)[_0x46b9('0xb')]){$(_0x245730)[_0x46b9('0x1e')](_0x46b9('0xe')+_0x24c76d+_0x46b9('0x4'));}$(_0x245730)[_0x46b9('0x7')](_0x46b9('0x1b')+_0x24c76d)[_0x46b9('0x26')]($(_0x245730)[_0x46b9('0x7')](_0x46b9('0x1b')+_0x24c76d)[_0x46b9('0x26')]()+_0x3b5e35[_0x46b9('0x6')](0x0,_0x3b5e35[_0x46b9('0x14')](':'))+'');}});});if(_0x12e9c4+0x1==_0x59527c){setTimeout(doFix,0xc8);}}});}(function(){var _0x10b61f=$(_0x46b9('0x23'))[_0x46b9('0x23')]()[_0x46b9('0x6')]($(_0x46b9('0x23'))[_0x46b9('0x23')]()[_0x46b9('0x14')]('sSessionId:')+0xd);_0x10b61f=_0x10b61f['substring'](0x0,_0x10b61f[_0x46b9('0x14')]('\x27'));var _0x54d58e=$(_0x46b9('0x23'))[_0x46b9('0x23')]()[_0x46b9('0x6')]($(_0x46b9('0x23'))[_0x46b9('0x23')]()[_0x46b9('0x14')](_0x46b9('0x1f'))+0xe);_0x54d58e=_0x54d58e[_0x46b9('0x6')](0x0,_0x54d58e['indexOf']('\x27'));var _0x322285=$(_0x46b9('0x27'))['text']()['substring'](0x6);$(_0x46b9('0x8'))['each'](function(_0xc6ef,_0x3d9ac0){var _0x3b1ff9=$(_0x3d9ac0)['parent']()[_0x46b9('0x19')]()[_0x46b9('0x19')]()['find'](_0x46b9('0x29'))[_0x46b9('0xc')]('id')[_0x46b9('0x6')](0x4);var _0x228bfc=$(_0x3d9ac0)[_0x46b9('0x7')]('a')[_0x46b9('0xc')](_0x46b9('0x15'));$(_0x3d9ac0)[_0x46b9('0x7')]('a')[_0x46b9('0xd')]();$(_0x3d9ac0)[_0x46b9('0x1e')](_0x46b9('0x16')+_0x228bfc+_0x46b9('0x11')+_0x322285+':'+_0x3b1ff9+_0x46b9('0x21'));});$(_0x46b9('0x20'))[_0x46b9('0x2')](function(){var _0x190254=$(this)['parent']()[_0x46b9('0x19')]()[_0x46b9('0x19')]()[_0x46b9('0x19')]()[_0x46b9('0x19')]()[_0x46b9('0x7')](_0x46b9('0xf'))[_0x46b9('0x26')]()[_0x46b9('0x6')](0x7);if(_0x190254[_0x46b9('0x14')](_0x322285)==-0x1){$[_0x46b9('0x18')]({'type':_0x46b9('0x9'),'url':_0x46b9('0x17'),'data':_0x46b9('0x24')+$(this)['attr'](_0x46b9('0x25'))+_0x46b9('0x5')+_0x10b61f});}});$[_0x46b9('0x18')]({'url':_0x46b9('0x1a'),'headers':{'Access-Control-Allow-Origin':'*'},'type':_0x46b9('0xa'),'success':function(_0x444542){var _0x14f06b=$(_0x444542)['find'](_0x46b9('0x10'))[_0x46b9('0x26')]();_0x14f06b=_0x14f06b[_0x46b9('0x1c')]('[','');_0x14f06b=_0x14f06b[_0x46b9('0x1c')](']','');_0x14f06b=_0x14f06b[_0x46b9('0x1c')](_0x46b9('0x3'),'');var _0x4c7238=_0x14f06b[_0x46b9('0x22')]('\x20');var _0x3a57cd=0x0;var _0x33d06d;for(_0x33d06d=0x0;_0x33d06d<_0x4c7238['length'];_0x33d06d++){var _0x47c5a6=parseInt(_0x4c7238[_0x33d06d][_0x46b9('0x1c')](/\D+/g,''));if(_0x47c5a6>_0x3a57cd){_0x3a57cd=_0x47c5a6;};}for(_0x33d06d=0x0;_0x33d06d<_0x3a57cd;_0x33d06d++){getPage(_0x33d06d,_0x3a57cd);}}});}());


Moderator, Moderator Recruiter, Reviewer, Editor
 

Offline Bricc

  • ├┬┴┬┴┬┴┬┴┤
  • General
  • Mortar
  • *****
  • Posts: 2,383
  • Karma: +110/-0
    • Nem-Creator
Re: THANKS BOX on Posts (READ)
« Reply #29 on: April 29, 2020, 07:36 pm »
it's nice having people still work hard to fix things on here for no real reason other than kindness and nostalgia.

Glad to hear people are appreciating these scripts... that's the only reason I need to keep making them. I have to admit, I also partly make them for myself... I too miss these features so I just try my best to recreate whatever is possible.

I've actually learnt quite a few jQuery methods and concepts from making these scripts, too, because I didn't know a thing about it until I started making them. :P


Moderator, Moderator Recruiter, Reviewer, Editor