<?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.5.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
		<title lang="en">Prime BBCode Note</title>
		<description lang="en">Add a Note BBCode, which displays a tooltip-like box containing text when the mouse is moved over the Note BBCode icon. The text inside the box can accept BBCodes, and the pop-up box will close automatically when the mouse is moved off the icon (unless the user clicks the icon, which will make the pop-up box stick in place until manually closed or until the cursor is moved a certain distance away from the pop-up box).</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 $5.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_note]]></homepage>
			</author>
		</author-group>
		<mod-version>1.0.5</mod-version>
		<installation>
			<level>easy</level>
			<time>180</time>
			<target-version>3.0.6</target-version>
		</installation>
		<history>
			<entry>
				<date>2007-09-24</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>2007-01-04</date>
				<rev-version>1.0.1</rev-version>
				<changelog lang="en">
					<change>Discovered that the bubble will not pop up in the correct location if the text that causes it to pop up wraps past a single line. The only fix I could find is to force the line not to wrap.</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-04-08</date>
				<rev-version>1.0.2</rev-version>
				<changelog lang="en">
					<change>Found a solution to the previous issue such that the text can now wrap.</change>
					<change>Link to the stylesheet from the HTML file rather than the existing stylesheet file (so there is no need to refresh the theme when making style changes).</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-07-02</date>
				<rev-version>1.0.2a</rev-version>
				<changelog lang="en">
					<change>Repackaged for MODX 1.2.0.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-08-20</date>
				<rev-version>1.0.3</rev-version>
				<changelog lang="en">
					<change>Fixed a bug that would cause the icon to not show up in Internet Explorer.</change>
				</changelog>
			</entry>
			<entry>
				<date>2009-05-19</date>
				<rev-version>1.0.4</rev-version>
				<changelog lang="en">
					<change>Changed a little JavaScript so it wouldn't interfere with the JQuery javascript library.</change>
				</changelog>
			</entry>
			<entry>
				<date>2009-07-05</date>
				<rev-version>1.0.5</rev-version>
				<changelog lang="en">
					<change>Fixed an issue with the icons not displaying on Internet Explorer 8.</change>
				</changelog>
			</entry>
		</history>
		<link-group>
			<link type="template" href="contrib/template subsilver2.xml" realname="subsilver2" lang="en">subsilver2</link>
		</link-group>
	</header>
	<action-group>
		<copy>
			<file from="root/styles/prosilver/template/prime_bbcode_note.html" to="styles/prosilver/template/prime_bbcode_note.html" />
			<file from="root/styles/prosilver/template/prime_bbcode_note.js" to="styles/prosilver/template/prime_bbcode_note.js" />
			<file from="root/styles/prosilver/theme/images/prime_bbcode_note.gif" to="styles/prosilver/theme/images/prime_bbcode_note.gif" />
			<file from="root/styles/prosilver/theme/images/prime_bbcode_note_close.gif" to="styles/prosilver/theme/images/prime_bbcode_note_close.gif" />
			<file from="root/styles/prosilver/theme/prime_bbcode_note.css" to="styles/prosilver/theme/prime_bbcode_note.css" />
		</copy>

		<open src="styles/prosilver/template/overall_header.html">
			<edit>
				<find><![CDATA[</head>]]></find>
				<action type="before-add"><![CDATA[<link href="{T_THEME_PATH}/prime_bbcode_note.css" rel="stylesheet" type="text/css" />]]></action>
			</edit>
			<edit>
				<find><![CDATA[<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">]]></find>
				<action type="after-add"><![CDATA[<!-- INCLUDE prime_bbcode_note.html -->]]></action>
			</edit>
		</open>

		<diy-instructions lang="en"><![CDATA[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:
        [note]{TEXT}[/note]

    (2) In the "HTML replacement" area, enter the following:
        <span class="prime_bbcode_note_spur" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);"></span><span class="prime_bbcode_note">{TEXT}</span>

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

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

When that's all filled out, click "Submit". Now, we're going to create one more version of
this BBCode, so create a new BBCode and enter this information:

    (1) In the "BBCode usage" area, enter the following:
        [note={TEXT1}]{TEXT2}[/note]

    (2) In the "HTML replacement" area, enter the following:
        <span class="prime_bbcode_note_text" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);">{TEXT1}</span><span class="prime_bbcode_note_spur" onmouseover="show_note(this);" onmouseout="hide_note(this);" onclick="lock_note(this);"></span><span class="prime_bbcode_note">{TEXT2}</span>

    (3) In the "Help line" area, enter the following:
        Note: [note=text-to-note]note text[/note]

    (4) In the "Settings" area, do NOT check the box for "Display on posting page". Well, you can
        if you want, but we already have the previous version of the tag being displayed.

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