<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="./contrib/xsl/modx.prosilver.en.xsl"?>
<!-- 
	NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.
-->
<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.0.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
		<title lang="en">Prime BBCode Protect</title>
		<description lang="en">This MOD will add a BBCode called "Protect", which attempts to prevent any text between the BBCode tags from being copied. There are some unavoidable limitations, such as it will only function if the user has JavaScript enabled, and the protected text can still be copied by viewing the document's source or by selecting multiple lines of text without passing the cursor over the protected text.</description>
		<author-notes lang="en">Support is given for both prosilver and subsilver2 templates, though it should work with any template style. If you are using other templates then you might need to modify the template instructions slightly to fit your templates.

 Creating, maintaining, and updating MODs requires a lot of time and effort, so if you like this MOD and have the desire to express your thanks through a donation, that would be greatly appreciated. My Paypal ID is primehalo@gmail.com, or contact me for my mailing address. The suggested donation amount for this MOD is $1.00 (but any amount will help).</author-notes>
		<author-group>
			<author>
				<realname>Ken F. Innes IV</realname>
				<email>primehalo@gmail.com</email>
				<username>primehalo</username>
				<homepage><![CDATA[http://www.absoluteanime.com/admin/mods.htm#bbcode_protect]]></homepage>
			</author>
		</author-group>
		<mod-version>1.0.0b</mod-version>
		<installation>
			<level>easy</level>
			<time>180</time>
			<target-version>3.0.2</target-version>
		</installation>
		<history>
			<entry>
				<date>2007-09-25</date>
				<rev-version>1.0.0</rev-version>
				<changelog lang="en">
					<change>Initial release</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-10-21</date>
				<rev-version>1.0.0a</rev-version>
				<changelog lang="en">
					<change>Repackaged.</change>
					<change>Confirmed compatibility with phpBB3.0.RC7.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-07-02</date>
				<rev-version>1.0.0b</rev-version>
				<changelog lang="en">
					<change>Repackaged for MODX 1.2.0.</change>
				</changelog>
			</entry>
		</history>
		<link-group>
			<link type="template" href="contrib/template subsilver2.xml" lang="en">subsilver2</link>
		</link-group>
	</header>
	<action-group>
		<copy>
			<file from="root/styles/prosilver/template/prime_bbcode_protect.html" to="styles/prosilver/template/prime_bbcode_protect.html" />
			<file from="root/styles/prosilver/template/prime_bbcode_protect.js" to="styles/prosilver/template/prime_bbcode_protect.js" />
		</copy>

		<open src="styles/prosilver/template/overall_header.html">
			<edit>
				<find><![CDATA[<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">]]></find>
				<action type="after-add"><![CDATA[<!-- INCLUDE prime_bbcode_protect.html -->]]></action>
			</edit>
		</open>

		<diy-instructions lang="en"><![CDATA[Note: Don't forget to install the template portions of this MOD! The template 
installation instructions are located in the "templates" directory. And now
for the do-it-yourself instructions....

Go to the Administration Control Panel and navigate to the "Posting" tab, then
to the "BBCodes" section. Click the "Add a new BBCode" button. The following
page is where you are to enter the information for the new BBCode.

    (1) In the "BBCode usage" area, enter the following:
        [protect]{TEXT}[/protect]

    (2) In the "HTML replacement" area, enter the following:
        <span onmouseover="copy_protection_on(this)" onmouseout="copy_protection_off()" class="copy_protected">{TEXT}</span>

    (3) In the "Help line" area, enter the following:
        Note: [protect]text[/protect]

    (4) In the "Settings" area, check the box for "Display on posting page".

When that's all filled out, click "Submit".
]]></diy-instructions>
	</action-group>
</mod>
