aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-05-31 21:13:07 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-05-31 21:13:07 +0000
commitce5f81049e969e8bd9907f21223a7c9d1f5f25e7 (patch)
tree0fc3feb66036a28f529b9580c654264ab0d3cc36 /phpBB
parent5c214088b4c7a158cb4f8e63e8eaf0c2d0426c8b (diff)
downloadforums-ce5f81049e969e8bd9907f21223a7c9d1f5f25e7.tar
forums-ce5f81049e969e8bd9907f21223a7c9d1f5f25e7.tar.gz
forums-ce5f81049e969e8bd9907f21223a7c9d1f5f25e7.tar.bz2
forums-ce5f81049e969e8bd9907f21223a7c9d1f5f25e7.tar.xz
forums-ce5f81049e969e8bd9907f21223a7c9d1f5f25e7.zip
Added instant bbcode to posting Default template
git-svn-id: file:///svn/phpbb/trunk@393 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/templates/Default/posting_body.tpl40
1 files changed, 38 insertions, 2 deletions
diff --git a/phpBB/templates/Default/posting_body.tpl b/phpBB/templates/Default/posting_body.tpl
index 3f80412609..e6f6e1c341 100644
--- a/phpBB/templates/Default/posting_body.tpl
+++ b/phpBB/templates/Default/posting_body.tpl
@@ -1,3 +1,18 @@
+<script language="Javascript">
+<!--
+function x ()
+{
+ return;
+}
+
+function addBBcode(bbCode)
+{
+ document.posting.message.value=document.posting.message.value+bbCode;
+ document.posting.message.focus();
+ return;
+}
+-->
+</script>
<tr>
<td>
<table border="0" align="right" width="20%" bgcolor="#000000" cellpadding="0" cellspacing="1">
@@ -14,7 +29,7 @@
</td>
</tr>
<tr>
- <td><form action="{S_POST_ACTION}" method="post">
+ <td><form action="{S_POST_ACTION}" method="post" name="posting">
<table border="0" align="center" width="100%" bgcolor="#000000" cellpadding="0" cellspacing="1">
<tr>
<td>
@@ -38,7 +53,28 @@
<tr class="tablebody">
<td bgcolor="#DDDDDD">{L_MESSAGE_BODY}<br><br>
{HTML_STATUS}<br>{BBCODE_STATUS}</td>
- <td bgcolor="#CCCCCC">{MESSAGE_INPUT}</td>
+ <td bgcolor="#CCCCCC">
+ <table border="0" with="100%">
+ <tr><td>{MESSAGE_INPUT}</td>
+ <td width="60%">Instant BBCode<br>
+ <a href="javascript: x()" onclick="addBBcode('[url] [/url]');"><img src="templates/Default/images//url.gif" width="72" height="16" border="0" alt="Insert URL BBCode"></a>&nbsp;
+ <a href="javascript: x()" onclick="addBBcode('[email] [/email]');"><img src="templates/Default/images//email_url.gif" width="72" height="16" border="0" alt="Insert Email Address"></a>
+ <br>
+ <a href="javascript: x()" onclick="addBBcode('[b] [/b]');"><img src="templates/Default/images//bold.gif" width="72" height="16" border="0" alt="Bold"></a>&nbsp;
+ <a href="javascript: x()" onclick="addBBcode('[i] [/i]');"><img src="templates/Default/images//italics.gif" width="72" height="16" border="0 alt="Italics"></a>
+ <br>
+ <a href="javascript: x()" onclick="addBBcode('[quote] [/quote]');"><img src="templates/Default/images//quote.gif" width="72" height="16" border="0" alt="Quote"></a>&nbsp;
+ <a href="javascript: x()" onclick="addBBcode('[code] [/code]');"><img src="templates/Default/images//code.gif" width="72" height="16" border="0" alt="Code - UBBCode&#153;"></a>
+ <br>
+ <a href="javascript: x()" onclick="addBBcode('[list]');"><img src="templates/Default/images//list-start.gif" width="72" height="16" border="0" alt="Start List"></a>&nbsp;
+ <a href="javascript: x()" onclick="addBBcode('[*]');"><img src="templates/Default/images//list-item.gif" width="72" height="16" border="0" alt="List Item"></a>
+ <br>
+ <a href="javascript: x()" onclick="addBBcode('[/list]');"><img src="templates/Default/images//list-end.gif" width="72" height="16" border="0" alt="End List"></a>&nbsp;
+ <a href="javascript: x()" onclick="addBBcode('[img] [/img]');"><img src="templates/Default/images//image.gif" width="72" height="16" border="0" alt="Display Image"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
</tr>
<tr class="tablebody">
<td bgcolor="#DDDDDD">{L_OPTIONS}</td>