|
Cookbook /
ShoutboxSummary: Display sidebar shoutbox
Version: 1.0
Prerequisites: pmwiki-2.2.0-beta42, Fox forms
Status: tested
Maintainer: KMcC September 27, 2007, at 01:16 AM
Questions answered by this recipe
DescriptionFox-forms (no javascript), low-overhead shoutbox NotesAfter surveying dozens of shoutbox and chat alternatives, I decided to stick with a simple, low-overhead Fox-forms-based solution. A shoutbox (we call it a hollabox) can be a delightful source of wiki fun, as well as provide live help, if desired. Installation StepsWe send all shouts across the Wiki by posting to a common page (in the example below I use 1) Download and install Fox. 2) Edit any skin's sidebar wiki page (usually 3) Add the following markup:
(:if ! equal {$Author} "":)
>>shoutbox<<
%sidehead%shoutbox
(:fox shoutbox #top target=Site.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:)
(:include Site.ShoutBox lines=30:)
%right%[[Site.ShoutBox|more >>]]
>><<
(:if:)
4) Style Couldn't be simpler! And what FUN everyone has! NOTE: For a Farm installation, the Site.ShoutBox should go in the shared.d folder of your Farm. Release NotesInitial release -- 9/27/2007. See AlsoContributorsKMcC September 27, 2007, at 01:15 AM Comments |