Additional Info
Type
Package ID
karlbenson:selectallandcopycod
First Created
October 10, 2007, 02:48:26 PM
Last Updated
January 19, 2008, 12:06:24 AM

Select All & Copy Code To Clipboard v1.2

Alters the output of the 'code' tag to include links to select all and copy code to clipboard
Compatible With 1.1.4
Latest version v1.2
Downloads 4,881
Reviews 0
Rating 0/5
Subscribers 3
License (View License)
Author(s)
Screenshots


SELECT ALL AND COPY CODE TO CLIPBOARD v1.2
By Karl Benson



Introduction
This mod alters the output of the 'code' tag to include links to select all the code and to copy it to clipboard.

Requires 'Flash' to enabled by the browser (as the copying is done by a flash file called _clipboard.swf)

Tested in browsers
IE 6/7
Firefox 1/2
Opera (Select All does not work, but Copy To Clipboard works.)

Features
o Adds "Select Code" Link to each coded section
o Adds "Copy To Clipboard" Link to each coded section

There are no admin settings with this mod. To disable/remove it, you must uninstall it.

Installation
Installation affects source files and a javascript file which is called from the default theme for ALL themes, therefore NO theme edits will be required.
(unless there is a conflict with modifications OR if your not using a supported language)

There are TWO versions of this mod.
One for SMF 1.1.x versions and
one for SMF 2.0 Beta 1 (which is currently available to Charter Members).

If your using a language different than the ones supported this mod (listed below), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)

FIND
?>
ADD BEFORE (and translate as necessary the language strings)
$txt['codeselectall'] = 'Select All';
$txt['codecopytoclipboard'] = 'Copy To Clipboard';
$txt['codedivider'] = '|';


Languages
o Currently Supports
- English/English-utf8
- English_British/English_British-utf8
- Turkish/Turkish-utf8 (Thanks to Kapadokyali & BadBoy)
- Spanish/Spanish-utf8 (Thanks to EgAr)
- Spanish_es/Spanish_es-utf8 (Thanks to EgAr)
- Greek/Greek-utf8 (Thanks to MinasC)
I welcome translations for any other languages which SMF Supports.
Please translate the following and post them in the modification topic.
$txt['codeselectall'] = 'Select All';
$txt['codecopytoclipboard'] = 'Copy To Clipboard';
$txt['codedivider'] = '|';


Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 - 10th October 2007
o Initial release
1.1 - 20th October 2007
o Added languages
- Turkish/Turkish-utf8 (Thanks to Kapadokyali & BadBoy)
- English_British/English_British-utf8
- Spanish/Spanish-utf8 (Thanks to EgAr)
- Spanish_es/Spanish_es-utf8 (Thanks to EgAr)
1.2 - 22nd November 2007
o Added Greek/Greek-utf8 (Thanks to MinasC)
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: