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 11:29:07 2011
+++ /trunk/drydock/tpl/drydock-anonbbs/head.tpl Sat Jul 23 15:03:41 2011
@@ -1,36 +1,66 @@
{it->binfo assign=binfo}
-<?xml version="1.0" encoding="utf-8"?>
+{assign var="postblock_increment" value=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">
-<head>
-<title>
-{if $comingfrom=="board"}
-{$THname} - /{$binfo.folder}/
-{else}
-{$THname} - /{$binfo.folder}/ reply view {* i'd like to put globalid here
if possible? *}
-{/if}
-</title>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta http-equiv="Content-Style-Type" content="text/css" />
-{* tyam - load per-board stylesheets *}
-{if $binfo.customcss}
-<style type="text/css">@import url('{$THtplurl}futaba.css');</style>
-<link rel="stylesheet" type="text/css"
href="{$THurl}tpl/{$binfo.folder}.css" title="{$binfo.folder} theme" />
-<link rel="alternate stylesheet" type="text/css"
href="{$THtplurl}futaba.css" title="Futaba-ish Stylesheet" />
-{else}
-<link rel="stylesheet" type="text/css" href="{$THtplurl}futaba.css"
title="Futaba-ish Stylesheet" />
-{/if}
-<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
-<script type="text/javascript" src="{$THurl}js.js"></script>
-</head>
-{if $comingfrom=="thread"}
-<body class="replypage">
-{else}
-<body>
-{/if}
-<div id="main">
- <div class="box">
- <div class="pgtitle">
- {$THname} - /{$binfo.folder}/
- </div>
- <div>
+ <head>
+ <title>
+ {if $comingfrom=="board"}
+ {$THname} - /{$binfo.folder}/
+ {else}
+ {$THname} - /{$binfo.folder}/ reply view {* i'd like to
put globalid here if possible? *}
+ {/if}
+ </title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"
/>
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+
+ {* tyam - load per-board stylesheets *}
+ {if $binfo.customcss}
+ <style type="text/css">@import
url('{$THtplurl}futaba.css');</style>
+ <link rel="stylesheet" type="text/css"
href="{$THurl}tpl/{$binfo.folder}.css" title="{$binfo.folder} theme" />
+ <link rel="alternate stylesheet" type="text/css"
href="{$THtplurl}futaba.css" title="Futaba-ish Stylesheet" />
+ {else}
+ <link rel="stylesheet" type="text/css"
href="{$THtplurl}futaba.css" title="Futaba-ish Stylesheet" />
+ {/if}
+
+ <script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
+
+ {if $THvc==1}
+ {* This next script include is needed for multiple recaptchas
on a single page *}
+ {literal}
+ <script type="text/javascript"
src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>
+ <script type="text/javascript">
+
+ $(function() {{
+ $(".post_submit").hide();
+ }});
+
+ function showRecaptcha(element, submitButton,
recaptchaButton) {
+ Recaptcha.destroy();
+
Recaptcha.create("{/literal}{$reCAPTCHAPublic}{literal}", element, {
+ theme: "clean",
+ tabindex: 0,
+ callback: Recaptcha.focus_response_field
+ });
+ $(".post_submit").hide();
+ $(".recaptcha_required").show();
+ $("#"+recaptchaButton).hide();
+ $("#"+submitButton).show();
+ }
+ </script>
+ {/literal}
+ {/if}
+
+ <script type="text/javascript" src="{$THurl}js.js"></script>
+ </head>
+ {if $comingfrom=="thread"}
+ <body class="replypage">
+ {else}
+ <body>
+ {/if}
+ <div id="main">
+ <div class="box">
+ <div class="pgtitle">
+ {$THname} - /{$binfo.folder}/
+ </div>
+ <div>
=======================================
--- /trunk/drydock/tpl/drydock-anonbbs/postblock.tpl Sat Jul 23 12:53:01
2011
+++ /trunk/drydock/tpl/drydock-anonbbs/postblock.tpl Sat Jul 23 15:03:41
2011
@@ -1,59 +1,75 @@
+{* Increment variable *}
+{math assign="postblock_increment" equation="x + 1" x=$postblock_increment}
+
<div class="pgtitle">
-{if $comingfrom=="board"}
- {if $binfo.tlock}
+ {if $comingfrom=="board"}
+ {if $binfo.tlock}
Board is locked, no more posts allowed.
- {else}
+ {else}
New thread
- {/if}
-{elseif $comingfrom=="thread"}
- {if $thread.lawk}
+ {/if}
+ {elseif $comingfrom=="thread"}
+ {if $thread.lawk}
Thread is locked, no more posts allowed.
- {else}
+ {else}
Reply
- {/if}
-{/if}
+ {/if}
+ {/if}
</div>
- <div id="showit" class="sslarge">
- <form method="post" enctype="multipart/form-data" action="{$THurl}{if
$comingfrom=="thread"}reply{else if $comingfrom == "board"}thread{/if}.php"
id="postform">
- <div>
- {if $comingfrom == "board" && $binfo.forced_anon!=1}
{* begin forced_anon *}
-Subject: <input type="text" name="subj" size="45" /><br />
-{ /if} {* end forced_anon *}
-{ if $binfo.forced_anon!=1} {* begin forced_anon *}
- Name: <input type="text" name="nombre" size="20" />
{/if}{* end forced_anon *}Link: <input type="text" name="link" size="20"
/><br />
- {if $THvc==1}
- {include file=recaptcha.tpl}
- {elseif $THvc==2}
- LEAVE BLANK IF HUMAN: <input type=text" name="email" /><br />
- {/if}
- <textarea name="body" cols="51" rows="8"
id="cont"></textarea><br />
-{ if (($binfo.tpix > 0 and $comingfrom == "board") or ($binfo.rpix > 0
and $comingfrom == "thread"))} {* are there images? *}
-<table><tr><td class="postblock">File</td><td>
+<div id="showit" class="sslarge">
+ <form method="post" enctype="multipart/form-data" action="{$THurl}{if
$comingfrom=="thread"}reply{else if $comingfrom == "board"}thread{/if}.php"
id="postform">
+ <div>
+ {if $comingfrom == "board" && $binfo.forced_anon!=1} {* begin
forced_anon *}
+ Subject: <input type="text" name="subj" size="45" /><br />
+ {/if} {* end forced_anon *}
+ {if $binfo.forced_anon!=1} {* begin forced_anon *}
+ Name: <input type="text" name="nombre" size="20" />
+ {/if}{* end forced_anon *}
+
+ Link: <input type="text" name="link" size="20" /><br />
+
+ {if $THvc==1}
+ {include file=recaptcha.tpl}
+ {elseif $THvc==2}
+ LEAVE BLANK IF HUMAN: <input type="text" name="email"
/><br />
+ {/if}
+
+ <textarea name="body" cols="51" rows="8"
id="cont"></textarea><br />
+ { if (($binfo.tpix > 0 and $comingfrom == "board") or
($binfo.rpix > 0 and $comingfrom == "thread"))} {* are there images? *}
+ <table><tr><td class="postblock">File</td><td>
<script type="text/javascript">
<!--
- document.write('\
-{section name=filelist loop=$binfo.pixperpost}
+ document.write('\{section name=filelist loop=$binfo.pixperpost}
<div id="file{$smarty.section.filelist.index}"{if
$smarty.section.filelist.index!=0} style="display:none;"{/if}><input
type="file" name="file{$smarty.section.filelist.index}"
onchange="visfile({$smarty.section.filelist.index})" /><br /></div>\
{/section}');
// /-->
</script>
- <noscript>
-{section name=filelistnojs loop=$binfo.pixperpost}
-<div id="file{$smarty.section.filelistnojs.index}"><input type="file"
name="file{$smarty.section.filelistnojs.index}" /><br /></div>
-{/section}
- </noscript>
-</td></tr></table>
- {/if} {* if pix>0*}
-Password: <input type="password" name="password" size="8" /> {* New
password field for deletion *}
-
-
- <input type="submit" value="Post" /><br />
-<input type="hidden" name="board" value="{$binfo.folder}" />
-{if $comingfrom == "thread"}<input type="hidden" name="thread"
value="{$thread.id}" />{/if}
- </div>
- </form>
+ <noscript>
+ {section name=filelistnojs
loop=$binfo.pixperpost}
+ <div
id="file{$smarty.section.filelistnojs.index}"><input type="file"
name="file{$smarty.section.filelistnojs.index}" /><br /></div>
+ {/section}
+ </noscript>
+ </td></tr></table>
+ {/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}');"
+ value="Post"
+ class="recaptcha_required" />
+ <input type="submit" id="submit_{$postblock_increment}"
class="post_submit" value="Post" style="display: none;" />
+ {else}
+ <input type="submit" value="Post" />
+ {/if}
+ <br />
+ <input type="hidden" name="board" value="{$binfo.folder}"
/>
+ {if $comingfrom == "thread"}<input type="hidden" name="thread"
value="{$thread.id}" />{/if}
</div>
- <div class="ssmed">
- <span class="name">
-<a href="{$THurl}{if
$THuserewrite}{$binfo.folder}{else}drydock.php?b={$binfo.folder}{/if}#tlist">Thread
List</a>
-
+ </form>
+</div>
+<div class="ssmed">
+ <span class="name">
+ <a href="{$THurl}{if
$THuserewrite}{$binfo.folder}{else}drydock.php?b={$binfo.folder}{/if}#tlist">Thread
List</a>
+
=======================================
--- /trunk/drydock/tpl/drydock-anonbbs/recaptcha.tpl Sat Jul 23 12:38:38
2011
+++ /trunk/drydock/tpl/drydock-anonbbs/recaptcha.tpl Sat Jul 23 15:03:41
2011
@@ -1,7 +1,2 @@
{* ReCAPTCHA tpl for anonbbs layout *}
-{literal}<script type="text/javascript">var RecaptchaOptions = {
theme: 'custom', lang: 'en',
custom_theme_widget: 'recaptcha_widget'};</script>{/literal}
-<div id="recaptcha_widget" style="display: none;">
- <div id="recaptcha_image"></div>
- Verification Code: <input id="recaptcha_response_field"
name="recaptcha_response_field" type="text">
- <script type="text/javascript"
src="http://api.recaptcha.net/challenge?k={$reCAPTCHAPublic}&lang=en"></script>
-</div>
+<div id="recaptcha_div_{$postblock_increment}"></div>