<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<base href="../" />
<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Help  /  Add Comment Plugin</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Help  /  Add Comment Plugin</h1>
</div>
<div id="content">



<div class="wikitext"><p class="tightenable top"><a href="Help/WikiPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">WikiPlugin</span></a> to let users attach comments to the end of a page. Since v1.3.8.
Change the layout via the templates comment.tmpl and addcomment.tmpl, and the CSS classes
wikicomment, wikicomment-header, wikicomment-body, wikicomment-footer</p>
<h3>Usage</h3>
<pre class="tightenable top">
     &lt;?plugin AddComment order||=normal jshide||=0 mode||=show,add noheader||=0 ?&gt;</pre>
<h3>Plugin Arguments</h3>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable top bottom"><th><strong>jshide</strong>:</th>
<td>Boolean if the comments and/or textbox should be initially hidden and on click expanded. Default: 0</td>
</tr>
<tr class="tightenable top bottom"><th><strong>order</strong>:</th>
<td>List comments in chronological (order=normal) or reverse order (order=reverse)</td>
</tr>
<tr class="tightenable top bottom"><th><strong>mode</strong>:</th>
<td>List of add and/or show.  Default: add,show</td>
</tr>
<tr class="tightenable top bottom"><th><strong>noheader</strong>:</th>
<td>Boolean if the &quot;Comments&quot; h2 header should be omitted. Default: 0</td>
</tr>
<tr class="tightenable top"><th><strong>pagename</strong>:</th>
<td>Attach to which page? Default: current pagename</td>
</tr>
</table>
<h3>Known Problems</h3>
<p class="tightenable">jshide does not work yet. Not very well tested.</p>
<h3>Examples</h3>
<div class="plugin tightenable" id="AddCommentPlugin"><h4><a name="comment-header" class="wikiaction" title="Click to display" onclick="togglecomments(this)">Comments</a></h4>
<div id="comments" style="display:none;"><script type="text/javascript">
<!--//
function togglecomments(a) {
  comments=document.getElementById('comments');
  if (comments.style.display=='none') {
    comments.style.display='block';
    a.title='Click to hide the comments';
  } else {
    comments.style.display='none';
    a.title='Click to display all comments';
  }
}
// --></script>
<div class="wikicomment wikicomment-form">
<form action="Help/AddCommentPlugin.html?action=" method="post" class="wikiaction"
      accept-charset="iso-8859-1">
  <input type="hidden" name="comment[pagename]" value="Help/AddCommentPlugin" />
  <input type="hidden" name="pagename" value="Help/AddCommentPlugin" /><input type="hidden" name="directory" value="/tmp/wikidumphtml" />  <table class="wikicomment-form">
     <tr><td width="100%"><textarea class="commentedit" rows="3" cols="55"
                       name="comment[content]" wrap="virtual"></textarea></td>
         <td class="submit-button"><input type="submit" value="Add Comment"
                     name="comment[addcomment]" class="wikiaction" /></td>
     </tr>
  </table>
</form>
</div>
</div>
</div>
<hr />
<p class="tightenable bottom"><a href="PhpWikiDocumentation.html" class="wiki">PhpWikiDocumentation</a> <a href="Help/WikiPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">WikiPlugin</span></a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;admin&quot;  Last edited on August 14, 2007  7:11 am by &quot;The PhpWiki programming team&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
