Topic: Wiki Document System plugin
Wiki Document System plugin version 0.0.1
Timeline, MacroIndex is not finished.
only one macro is working : showActivePages
test it at http://jacobswell.nared.net/punbb/wiki.php
http://jacobswell.nared.net/upload/wikids.zip
study the code for I'm not a good explainer. in fact the code is not compacted. so it does not look nice.
How to install Wiki Document System plugin version 0.0.1
================================================
= locate following files into 'include' folder =
================================================
copy wikids folder and all the files in it into include folder
================================================
= locate following files into 'lang/en' folder =
================================================
en_wikids.php
================================================
= locate following files into your site folder =
================================================
wiki.php
install_wikids.php
========================
= add to en_common.php =
========================
'Documents'=>'Documents',
=====================================================
= open include/functions.php & edit like the following code =
=====================================================
//
// Generate the "navigator" that appears at the top of every page
//
function generate_navlinks()
{
global $pun_config, $lang_common, $cookie, $cur_user;
// Home and Userlist should always be displayed
$links[] = '<a href="index.php">'.$lang_common['Home'].'</a>';
if (isset($pun_config['o_wiki_plugin']) && $pun_config['o_wiki_plugin'] == '1')
$links[] = '<a href="wiki.php">'.$lang_common['Documents'].'</a>';
$links[] = '<a href="userlist.php">'.$lang_common['User list'].'</a>';
================================================
= execute install_wikids.php & delete the file =
================================================
=====================
= admin_options.php =
=====================
1. find
<tr>
<td class="punright" style="width: 35%"><b>GZip output</b><br>If enabled, PunBB will gzip the output sent to browsers. This will reduce bandwidth usage, but use a little more CPU. This feature requires that PHP is configured with zlib (--with-zlib). Note: If you already have the Apache module mod_gzip set up to compress PHP scripts, you should disable this feature.</td>
<td style="width: 65%"><input type="radio" class="puninput" name="form[gzip]" value="1"<?php if ($pun_config['o_gzip'] == '1') echo ' checked' ?>> Yes <input type="radio" class="puninput" name="form[gzip]" value="0"<?php if ($pun_config['o_gzip'] == '0') echo ' checked' ?>> No</td>
</tr>
</table>
</td>
</tr>
2. insert after
<tr>
<td class="puncon1right" style="width: 140px; white-space: nowrap">Plugin </td>
<td class="puncon2">
<table class="punplain" cellpadding="6">
<tr>
<td class="punright" style="width: 35%"><b>Wiki Document System</b><br>Enable if you want to use Wiki Document System.</td>
<td style="width: 65%"><input type="radio" class="puninput" name="form[wiki_plugin]" value="1"<?php if ($pun_config['o_wiki_plugin'] == '1') echo ' checked' ?>> Yes <input type="radio" class="puninput" name="form[wiki_plugin]" value="0"<?php if ($pun_config['o_wiki_plugin'] == '0') echo ' checked' ?>> No</td>
</tr>
</table>
</td>
</tr>