[pLog-svn] r6878 - in plugins/branches/lifetype-1.2/contact: . templates
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri May 1 12:29:49 EDT 2009
Author: jondaley
Date: 2009-05-01 12:29:49 -0400 (Fri, 01 May 2009)
New Revision: 6878
Added:
plugins/branches/lifetype-1.2/contact/templates/form.template
Modified:
plugins/branches/lifetype-1.2/contact/readme.txt
Log:
updated readme, and added template that I forgot to check in last time
Modified: plugins/branches/lifetype-1.2/contact/readme.txt
===================================================================
--- plugins/branches/lifetype-1.2/contact/readme.txt 2009-05-01 16:27:56 UTC (rev 6877)
+++ plugins/branches/lifetype-1.2/contact/readme.txt 2009-05-01 16:29:49 UTC (rev 6878)
@@ -13,10 +13,16 @@
Template code - note this plugin will take care of checking if the
plugin is enabled or not, and won't show the form if
- it is disabled for the blog
+ it is disabled for the blog.
{if $contact}
{$contact->showContactForm()}
{/if}
+NOTE: I have included the necessary template code for authimage and
+hiddeninput by default. If you are using any other spam blocking
+plugins that require custom template code, you'll need to add it to
+plugins/contact/template/form.template (just like you need to do for
+the "regular" comment forms). Let me know if there is code you need
+to add, and I'll add it to the plugin by default.
Added: plugins/branches/lifetype-1.2/contact/templates/form.template
===================================================================
--- plugins/branches/lifetype-1.2/contact/templates/form.template (rev 0)
+++ plugins/branches/lifetype-1.2/contact/templates/form.template 2009-05-01 16:29:49 UTC (rev 6878)
@@ -0,0 +1,28 @@
+<div id="contact">
+<form name="contactForm" method="post" action="{$url->blogLink()}">
+ <label for="userName">{$locale->tr("plugin_contact_name")}: </label>
+ <input type="text" name="userName" /><br/>
+
+ <label for="userEmail">{$locale->tr("plugin_contact_email_address")}: </label>
+ <input type="text" name="userEmail" /><br/>
+
+ <label for="commentTopic">{$locale->tr("comment_topic")}: </label>
+ <input type="text" name="commentTopic" /><br/>
+
+ <label for="commentText">{$locale->tr("comment_text")}: </label>
+ <script type="text/javascript">var ed1 = new Lifetype.UI.Editor("commentText","ed1");</script>
+ <textarea rows="15" id="commentText" name="commentText" style="width:100%"></textarea><br/>
+
+ <input type="hidden" name="op" value="pluginContactSendEmail" />
+ <input type="hidden" name="blogId" value="{$blog->getId()}" />
+ {if $authimage && $authimage->isEnabled()}
+ <div><label for="authImage">{$locale->tr("authimage_type_code")}</label>
+ <input type="text" name="authImage" id="authImage" value="" /> {$authimage->show()}</div>
+ {/if}
+ {if $hiddeninput && $hiddeninput->isEnabled()}
+ {$hiddeninput->printHiddenFields()}
+ {/if}
+ <input type="submit" value="{$locale->tr("comment_send")}" />
+</form>
+</div>
+
More information about the pLog-svn
mailing list