From 370b829460a2ccf0a3fcf614bcd6e4f918f6560e Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 16 Jun 2011 04:59:16 +1000 Subject: reCAPTCHA support --- templates/index.html | 28 +++++++++++++++++++++++++++- templates/main.js | 6 +++++- templates/thread.html | 28 +++++++++++++++++++++++++++- 3 files changed, 59 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index c0491534..d00380e6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,6 +9,22 @@ {config[meta_keywords]?} + {config[recaptcha]?} {boardlist[top]} @@ -56,6 +72,16 @@ + {config[recaptcha]? + + + Verification + + + + + + } File @@ -134,4 +160,4 @@

Powered by Tinyboard v0.9.2 | Tinyboard Copyright © 2010-2011 Tinyboard Development Group

All trademarks, copyrights, comments and images on this page are owned by and/or are the responsibility of their respective parties.

- \ No newline at end of file + diff --git a/templates/main.js b/templates/main.js index a57ff972..cf9f9e77 100644 --- a/templates/main.js +++ b/templates/main.js @@ -161,7 +161,11 @@ function init() } } +var RecaptchaOptions = { + theme : 'clean' +}; + window.onload = init; {config[google_analytics]? -var _gaq = _gaq || [];_gaq.push(['_setAccount', '{config[google_analytics]}']);{config[google_analytics_domain]?_gaq.push(['_setDomainName', '{config[google_analytics_domain]}'])}{!config[google_analytics_domain]?_gaq.push(['_setDomainName', 'none'])};_gaq.push(['_trackPageview']);(function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();} \ No newline at end of file +var _gaq = _gaq || [];_gaq.push(['_setAccount', '{config[google_analytics]}']);{config[google_analytics_domain]?_gaq.push(['_setDomainName', '{config[google_analytics_domain]}'])}{!config[google_analytics_domain]?_gaq.push(['_setDomainName', 'none'])};_gaq.push(['_trackPageview']);(function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();} diff --git a/templates/thread.html b/templates/thread.html index f2f9b8b0..d900c95e 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -8,6 +8,22 @@ + {config[recaptcha]?} {boardlist[top]} @@ -55,6 +71,16 @@ + {config[recaptcha]? + + + Verification + + + + + + } File @@ -123,4 +149,4 @@

Powered by Tinyboard v0.9.2 | Tinyboard Copyright © 2010-2011 Tinyboard Development Group

All trademarks, copyrights, comments and images on this page are owned by and/or are the responsibility of their respective parties.

- \ No newline at end of file + -- cgit v1.3