Modified:
/trunk/drydock/tpl/drydock-anonbbs/head.tpl
/trunk/drydock/tpl/drydock-anonbbs/postblock.tpl
/trunk/drydock/tpl/drydock-anonbbs/recaptcha.tpl
=======================================
--- /trunk/drydock/tpl/drydock-anonbbs/head.tpl Sat Jul 23 15:03:41 2011
+++ /trunk/drydock/tpl/drydock-anonbbs/head.tpl Sat Jul 23 15:16:22 2011
@@ -1,5 +1,5 @@
{it->binfo assign=binfo}
-{assign var="postblock_increment" value=0}
+{counter name="postblock_increment" start=0}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
=======================================
--- /trunk/drydock/tpl/drydock-anonbbs/postblock.tpl Sat Jul 23 15:03:41
2011
+++ /trunk/drydock/tpl/drydock-anonbbs/postblock.tpl Sat Jul 23 15:16:22
2011
@@ -1,5 +1,5 @@
{* Increment variable *}
-{math assign="postblock_increment" equation="x + 1" x=$postblock_increment}
+{counter assign="pb" name="postblock_increment"}
<div class="pgtitle">
{if $comingfrom=="board"}
@@ -53,13 +53,13 @@
{/if} {* if pix>0*}
Password: <input type="password" name="password" size="8"
/> {* New password field for deletion *}
{if $THvc==1}
- <input type="button"
id="recaptcha_required_{$postblock_increment}"
-
onclick="showRecaptcha('recaptcha_div_{$postblock_increment}',
- 'submit_{$postblock_increment}',
- 'recaptcha_required_{$postblock_increment}');"
+ <input type="button" id="recaptcha_required_{$pb}"
+ onclick="showRecaptcha('recaptcha_div_{$pb}',
+ 'submit_{$pb}',
+ 'recaptcha_required_{$pb}');"
value="Post"
class="recaptcha_required" />
- <input type="submit" id="submit_{$postblock_increment}"
class="post_submit" value="Post" style="display: none;" />
+ <input type="submit" id="submit_{$pb}" class="post_submit"
value="Post" style="display: none;" />
{else}
<input type="submit" value="Post" />
{/if}
=======================================
--- /trunk/drydock/tpl/drydock-anonbbs/recaptcha.tpl Sat Jul 23 15:03:41
2011
+++ /trunk/drydock/tpl/drydock-anonbbs/recaptcha.tpl Sat Jul 23 15:16:22
2011
@@ -1,2 +1,2 @@
{* ReCAPTCHA tpl for anonbbs layout *}
-<div id="recaptcha_div_{$postblock_increment}"></div>
+<div id="recaptcha_div_{$pb}"></div>