Pastebin BBC

Started by Suki, January 04, 2012, 07:11:38 AM

Previous topic - Next topic

Suki

Link to Mod

Pastebin BBC mod
Author: Suki


Description

For SMF 2.0.x only

This mod needs cURL library.

This mod will add a BBC tag:  [pastebin][/pastebin] where you can post your code snippet and it will be posted on pastebin.com.

In order to use this mod, you need to register an account on pastebin.com, once you have your account, log in and then go to Pastebin API  there you can find Your Unique Developer API Key.

This BBC acts diferent from the regular BBC mods, this mod will parsed the tag before it goes to the database, by the time it gets stored in the database, the tag is now a link to the pastebin site, this is made to prevent the tag from being parsed (and generate a new pastebin url for the same tag) every time the tag is displayed.


License

* This SMF modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/


Settings

- Admin->Configuration->Modifications
-Master enable/disable option.
-Specify the length for the pastebin, options are 1 hour, 1 day, 1 month.


Languages

English/utf8


Changelog

1.0 - Sep 26, 2011,
-Initial Release

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: