We added a reply form to the HTS message center!!!

Got an idea on how things should be done? A problem with something on the site? Voice your opinion!

We added a reply form to the HTS message center!!!

Post by mutants_r_us_guild on Tue Aug 12, 2008 8:03 pm
([msg=9488]see We added a reply form to the HTS message center!!![/msg])

AnonHacker and I have been doing some thinking, and we decided it was time somebody did something about the missing reply button in the HTS messages center. So, a few lines of JS later, and we had a working model. Later we beefed it up to accept names with spaces and automatically detect which skin you are using and adjust the DOM values in the JS accordingly. (There's an extra DIV tag in the dark skin :P)

Now we are releasing this to the public, our fellow HTS members.
We have two options:

1. a FireFox/Netscape Plugin
2. UserScript source

I will post the source here along with a download link for the plugin. :)

Enjoy


DOWNLOAD
------------------
http://www.fileden.com/files/2008/1/10/ ... lytool.xpi



SOURCE
-----------------
// ==UserScript==
// @name Hack This Site Reply tool
// @namespace HTS-Replier
// @description Adds a reply form to every PM sent in HTS
// @include http://www.hackthissite.org/pages/messa ... ssage.php*
// ==/UserScript=='
if (document.getElementsByTagName("link")[2].href=='http://www.hackthissite.org/templates/dark/dark.css') window.onload=document.getElementsByTagName("td")[3].innerHTML+='<center><form method="POST" action="/pages/messages/msys/send.php" name="send"><table cellspacing="0" cellpadding="4" style="border: 2px #336699 solid;"><th class="bdark-td" colspan="2"><h3 align="center">Send a Reply</h3></th><tr><td width="150" class="blight-td">Send a message to:</td><td class="blight-td"><input type="text" name="recipient" size="20" value="' + document.getElementsByTagName("div")[6].innerHTML.slice(13,-33) + '" /></td></tr><tr><td class="bdark-td">Priority:</td><td class="bdark-td"><select name="priority" width="100"><option value="0">Normal</option><option value="1">Low Priority</option><option value="2">Medium Priority</option><option value="3">High Priority</option></select></td></tr><tr><td class="bdark-td" colspan="2"><div align="center">Subject: &nbsp;<input type="text" name="subject" size="49" value="RE: ' + document.getElementsByTagName("strong")[2].innerHTML + '" /></div></td></tr><tr><td class="blight-td" colspan="2"><div align="center">Message:<br /><textarea name="body" cols="50" rows="10"></textarea><br /><br /><input type="submit" name="Submit" value="Send" class="submit-button"></div></td></tr></table></form></center>'
else window.onload=document.getElementsByTagName("td")[5].innerHTML+='<center><form method="POST" action="/pages/messages/msys/send.php" name="send"><table cellspacing="0" cellpadding="4" style="border: 2px #336699 solid;"><th class="bdark-td" colspan="2"><h3 align="center">Send a Reply</h3></th><tr><td width="150" class="blight-td">Send a message to:</td><td class="blight-td"><input type="text" name="recipient" size="20" value="' + document.getElementsByTagName("div")[5].innerHTML.slice(13,-33) + '" /></td></tr><tr><td class="bdark-td">Priority:</td><td class="bdark-td"><select name="priority" width="100"><option value="0">Normal</option><option value="1">Low Priority</option><option value="2">Medium Priority</option><option value="3">High Priority</option></select></td></tr><tr><td class="bdark-td" colspan="2"><div align="center">Subject: &nbsp;<input type="text" name="subject" size="49" value="RE: ' + document.getElementsByTagName("strong")[2].innerHTML + '" /></div></td></tr><tr><td class="blight-td" colspan="2"><div align="center">Message:<br /><textarea name="body" cols="50" rows="10"></textarea><br /><br /><input type="submit" name="Submit" value="Send" class="submit-button"></div></td></tr></table></form></center>'




*NOTE:
We are also sending this to the Devs so that they can implement it serverside.. that way you wont have to download anything in the future. Until then... use our script and enjoy :)
Image
Image
Image
User avatar
mutants_r_us_guild
Poster
Poster
 
Posts: 246
Joined: Fri May 30, 2008 7:56 pm
Blog: View Blog (0)


Re: We added a reply form to the HTS message center!!!

Post by ScrAm on Tue Aug 12, 2008 10:57 pm
([msg=9493]see Re: We added a reply form to the HTS message center!!![/msg])

Interesting.
I'll try it out soon.
ScrAm
Experienced User
Experienced User
 
Posts: 92
Joined: Sun Apr 13, 2008 3:17 pm
Location: Indiana
Blog: View Blog (0)


Re: We added a reply form to the HTS message center!!!

Post by oohal on Tue Aug 12, 2008 11:17 pm
([msg=9495]see Re: We added a reply form to the HTS message center!!![/msg])

o.O Where the hell did the reply button go? It's back now in all it's replying glory.

-oohal
oohal
New User
New User
 
Posts: 18
Joined: Sun Apr 13, 2008 5:49 pm
Blog: View Blog (0)


Re: We added a reply form to the HTS message center!!!

Post by TheMindRapist on Wed Aug 13, 2008 11:59 am
([msg=9581]see Re: We added a reply form to the HTS message center!!![/msg])

Yeah, it used to exist, then somebody removed it.
Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)


Re: We added a reply form to the HTS message center!!!

Post by anonHacker on Thu Aug 14, 2008 9:28 am
([msg=9666]see Re: We added a reply form to the HTS message center!!![/msg])

It also has two less TD tags, but I already did that part for you.

Anyway, thanks for adding back the normal reply button. Could anyone explain why they got removed to begin with?
anonHacker
Experienced User
Experienced User
 
Posts: 76
Joined: Sun Jul 27, 2008 10:51 am
Blog: View Blog (0)


Re: We added a reply form to the HTS message center!!!

Post by TheMindRapist on Thu Aug 14, 2008 11:49 am
([msg=9670]see Re: We added a reply form to the HTS message center!!![/msg])

I think the plan was to remove the HTS message center and force people to use the forums message center. However, the HTS message center is needed for some missions, which was probably realized during the removal process. Which left it missing some things. I like the HTS message center better than the forums one anyway.
Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)


Re: We added a reply form to the HTS message center!!!

Post by Karec on Fri Aug 15, 2008 5:17 pm
([msg=9824]see Re: We added a reply form to the HTS message center!!![/msg])

Good job on this side project guys, getting the community to help with the site is what we try to promote. :D
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
-Rick Cook, The Wizardry Compiled
Karec
Poster
Poster
 
Posts: 127
Joined: Sun Apr 13, 2008 2:39 pm
Blog: View Blog (0)



Return to Comments & Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests