Pastebin

by Audeuro
Easy incorporation of 'showcode' feature into your game or chatroom! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Audeuro.Pastebin##version=2

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Audeuro.Pastebin##version=2

92 downloads
Version 2
Date added: Jan 17 2011
Last updated: Apr 5 2011
2 fans
Ever wanted to implement a 'showcode' feature, but you didn't want to worry about memory being taken up on your server to hold the users' code, or that it might not be portable for the sake of Telnet clients?

Well, look no further! This library interfaces with the Pastebin API to allow you to submit code snippets to them without any of these worries!

Documentation on how to use this library is included.

[Update 4/5/11]
As of this update, the Pastebin API has been changed. One must now sign up on the Pastebin website and obtain a Developer API key, then set Pastebin/key to this value.

* Submitted pastes no longer produce Javascript errors when they include spaces.
+ Works with the new Pastebin API.

Comments

Nickr5: (Feb 5 2011, 11:49 am)
In BuildQuery(), on the line "if(window.XMLHtpRequest) {", it should be XMLHttpRequest.