[pmwiki-users] a simple form

ABClf languefrancaise at gmail.com
Mon Dec 27 16:23:12 CST 2010


Hi James,

I guess it is related to fox ; have a read to
http://www.pmwiki.org/wiki/Cookbook/Fox

-page permissions need to be set, either in a local config file or on
SiteAdmin.FoxConfig, before Fox can do any work! This measure has been
added to provide full security, especially important if you want to
enable Fox for form posting on edit-protected pages. Read below about
security configuration settings.
-read paragraph : Cookbook/Fox#security

Some remarks :
1/ it is possible to include several pages (or some sections) in one
other, using pagelist (so, you could use a one-page-for-one-question
and get a synthetic faq page).
2/ It is also possible du get some PTV from multiple pages :

FAQ/001
[[#faqbegin]]
question:this is my first question
answer:here it is first answer
[[#faqend]]

FAQ/002
[[#faqbegin]]
question:this is my second question
answer:here it is second answer
[[#faqend]]

FAQ/All
use
or a pagelist to collect every text from [[#faqbegin]] to [[#faqend]]
or a pagelist to collect every question ptv and answer ptv and style
the output the way you want.

3/ Other than shoutbox, CommentBox should work too.

4/ I don't use any authentification system and don't know what ldap is
; maybe this page would help :
http://www.webdevrefinery.com/forums/topic/2828-getting-pmwiki-to-authenticate-with-ldap/

Gilles.







2010/12/27 James M <jamesm1415 at gmail.com>:
> Hi - thanks for the suggestion Peter.  I've been trying to follow the
> (simple) instructions on the webpage, but with no success.
>
> I have a simple pmwiki installation on my localhost (linux + apache +
> firefox) - no passwords etc.  I installed fox - hopefully correctly!
> and I've put the following code on Main.Form
>
>>>shoutbox<<
> %sidehead%shoutbox
> (:fox shoutbox #top target=ShoutBox:)
> (:input hidden author value='{$Author}':)
> (:input textarea class=shoutbox shout cols=20 rows=2:)
> (:input submit post Enter:)
> (:foxtemplate "'''{$$author}''' [-{$$(date:M j, 'y  g a)}-]\n{$$shout}[[<<]]":)
> (:foxend shoutbox:)
> (:foxmessage:)
> (:include ShoutBox lines=30:)
> %right%[[ShoutBox|more >>]]
>>><<
>
> Note I've added the foxmessage line, which I found after some reading
> around, and when I try entering some text in the box and click on
> ENter, I get the error message
> PERMISSION DENIED to add on Main.ShoutBox
>
> Any suggestions why it's not working?
>
> Thanks
> James
>
>
>
> On Wed, Dec 22, 2010 at 7:11 PM, Peter Bowers <pbowers at pobox.com> wrote:
>> On Wed, Dec 22, 2010 at 5:46 PM, James M <jamesm1415 at gmail.com> wrote:
>>>
>>> I want to make an interactive FAQ page for my teaching - where
>>> students can fill in a form asking a question and then I can reply
>>> (either filling in a form or editing the wiki page).  I tried
>>> wikiforms, but that's not appropriate as it only puts one question per
>>> page.  I'd also like to be able to style the question and answer
>>> differently using CSS - eg just a different colour background. It's
>>> going to take me too long figuring out how to use each one.
>>>
>>> Thanks for any suggestions
>>>
>>> James
>>>
>>> ps If possible, I'd like to configure it so that students can
>>> authenticate their submission with their University username/password
>>> which can be read off an LDAP server.  But that's not essential.
>>
>> You might take a look at Fox / Alternative ShoutBox:
>> http://www.pmwiki.org/wiki/Cookbook/FoxShoutboxAlternative
>> It won't do what you want "out of the box" but I believe with just a couple
>> changes it would probably meet your needs...  (This solution would require
>> you editing the page to put the answers in.)
>> -Peter
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



-- 

---------------------------------------
| A | de la langue française
| B | http://www.languefrancaise.net/
| C | languefrancaise at gmail.com
---------------------------------------



More information about the pmwiki-users mailing list