Logged in with Authid: as author:
This comment form uses markup from fox.php and standard PmWiki input markup to post to different pages, and provide delete buttons for posters or admin. It uses CommentBoxTemplate as a template page for each message posted.
(:foxmessages:)
(:fox comments template=CommentBoxTemplate target=Comments
formcheck=text,author,access:)
|| $[Heading]:||(:input text heading size=60:)
|| ||'''$[Your Message]''' ||
|| ||(:guibuttons:)||
|| ||(:input textarea id=text name=text cols=60 rows=6:) ||
|| Summary:||(:input text csum:) ||
(:if enabled EnableAccessCode:)
|| ||Enter value {$AccessCode} (:input text access size=3
class=inputtext:)(:input hidden accesscode {$AccessCode}:) <- Have you
entered the code number?||
(:if enabled EnablePostCaptchaRequired:)
|| ||Enter value {$Captcha} (:input captcha class=inputtext:) <- Have
you entered the code number?||
(:if:)
|| $[Author]:||(:input text author value='{$Author}' size=30:) (:input
submit post Enter:) ||
(:foxend comments:) |
|
|
The Comments page is included here with (:include Comments:)
53 Comments
a test
BC junk
BC junk
Just trying to figure out if I should use fox
I think I like this idea, I wonder how many sites use this
Thanks for this note! I disabled Captcha now for foxdelete actions (conditionally in config.php)
or edit the page if EnablePostCapture required!
A kind of deadly embrace ...
code number not showing up on first try
hi. noticing that the captcha code isn't showing up the first time - only shows up after i submit without entering anythign and getting an error.
Blue Text
Code
line2
line3
This looks useful.
Piece of code
second line
@]
This is a message. Italics Bold Underline
Now using (:input textarea...:) which supports now values given.
what does it all look like?
You can avoid this by used Cookbook:Textarea instead of the input textarea markup. Make sure to write name=text as the form control name, not just text, as the input markup allows.
Then add to config.php (or a local/GroupName.php or other local configuration file, because you may not want to preserve POST values in some other circumstances):
# POST input values will be preserved
foreach ($_POST as $k=>$v) {
if(!is_array($v))
$InputValues[$k] = htmlspecialchars($v);
}
I have now changed this form to use this method.
if I enter a wrong accesscode the form is empty an I have to write the post again. Is there a way to avoid that?