Select All & Copy Code To Clipboard
Navigation
Search
SMF Mod Site
This is an outdated mod that is no longer supported by its author. Use at your own risk
- Mod Name:
- Select All & Copy Code To Clipboard
- Created By:
- karlbenson

- Type:
- Archived

- First Created:
- October 10, 2007, 02:48:26 PM
- Last Modified:
- January 19, 2008, 12:06:24 AM
- Latest Version:
- 1.2
- Compatible With:
- 1.1.4
- Total Downloads:
- 3620
Download this mod
Description:
SELECT ALL AND COPY CODE TO CLIPBOARD v1.2
By Karl Benson
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
Code: [Select]
?>ADD BEFORE (and translate as necessary the language strings)Code: [Select]
$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.
Code: [Select]
$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)


