Wiki Style Pages for Seditio
Author: Kilandor
Submitted by: Kilandor
Date: 2007-07-28 13:47
Comments: (0)
Ratings:
 
~ © & Created by : Kilandor - http://www.seditioforge.com ~

~ Wiki Notes ~

This uses the SQL Auto Installer, If you have used a previous version of this, do not upload sql_autoinstaller.php

Users with Write Access to the Wiki Plugin, will be allowed to edit pages.
Users with Admin Acess to the Wiki Plugin Will beable to Edit, and Acess the History of pages.

To Choose the Categorys to become a Wiki, In the Plugin Config, Input the Category Code Names Seperated by Commas (if for some reason you have to have more than 255char, Manually set them in your sql db (this is temprorary and will be improved later))
~ TPL Additions ~

In page.tpl Add this
HTML4STRICT Code:

<!-- BEGIN: PAGE_WIKIHIST -->
    {PAGE_WIKIHIST_UNVALIDATE} &nbsp; {PAGE_WIKIHIST_EDIT} &nbsp; ({PAGE_WIKIHIST_COUNT}) &nbsp; {PAGE_WIKIHIST_HISTORY}<br />
<!-- END: PAGE_WIKIHIST -->
<!-- BEGIN: PAGE_WIKIEDIT -->
    {PAGE_WIKIEDIT_EDIT} &nbsp; ({PAGE_WIKIEDIT_COUNT})<br />
<!-- END: PAGE_WIKIEDIT -->


In page.add.tpl add this
HTML4STRICT Code:

<!-- BEGIN: WIKI -->
    <tr>
        <td>{PAGE_WIKIADD_TITLE}</td>
        <td>{PAGE_WIKIADD_RULES}</td>
    </tr>
<!-- END: WIKI -->


Change either to suit your needs to fit into your skin.

~ Optional Corehack ~

Find
PHP Code:

$log_groups = array (
    'all' => $L['All'],
    'def' => $L['Default'],
    'adm' => $L['Administration'],
    'for' => $L['Forums'],
    'sec' => $L['Security'],
    'usr' => $L['Users'],
    'plg' => $L['Plugins']
    );


Change to

PHP Code:

$log_groups = array (
    'all' => $L['All'],
    'def' => $L['Default'],
    'adm' => $L['Administration'],
    'for' => $L['Forums'],
    'sec' => $L['Security'],
    'usr' => $L['Users'],
    'plg' => $L['Plugins'],
    'wki' => "Wiki"
    );


This allows for a new Sort Category of Wiki, If you do not do this, you can just look in all.

~ Todo ~


  • Improve Highlight code(similar to mediawiki)

  • Change History to be able to compare selected versions

  • Standalone Config page?



~ Change Log ~

V2.0

  • Major Recoding

  • Now Uses Seditio Auth System

  • No longer completely hooks over pages

  • Standalone Edit/History Pages and TPL

  • Improved Wiki Cat Selection Method Slightly.

  • Generic Color/Line comparison for the Body text.


V1.0

  • Initial Release



~ Personal Notes ~

I tried to Make sure everything was ready to go, and check through everything. Its possible I missed something, If you have any problems let me know please.

If you have any ideas, or suggestions or, problems, Pleas post here.
http://www.seditioforge.com/forums/plug-ins-and-modifications-s5.html



Download : Seditio Wiki
Size: 15KB, downloaded 300 times
Copyright © 2008 Domain.Com. All Rights Reserved.
Page created in 0.816 seconds