SMFHacks.com

Modifications/Themes => Modifications Talk => Topic started by: SMFHacks on May 31, 2017, 10:49:05 pm

Title: [WIP] SMF Wiki for SMF 2.0.14
Post by: SMFHacks on May 31, 2017, 10:49:05 pm
Originally by niko updated for SMF 2.0.14 and some other bug fixes. Licensed BSD

Note: This is only for testing purposes, not recommended on live sites!

This version isn't feature complete as of yet

It's highly recommended to enable cache when using Wiki mod.

Please report all bugs either here or issue tracker (Feature request are welcome, too!).



Features

    Creating and Editing pages
    File Uploads


Syntax

This page contains information about Wiki Codes supported by SMF Wiki!
Quote
Code                                 Example                            Description                     
[ [Main_Page ] ]   Main Page   Basic link to another page. Remove spaces in the brackets
[ [Main_Page|My Title ] ]   My Title   Link to page using another title  Remove spaces in the brackets
{{Example}}   This is example template.   Include page "Example" from Template namespace
{{Example2|test}}   This is example template, you gave parameter test.   Include page "Example2" from Template namespace with numbered parameter
{{Example3|text=My Text}}   Parameter text was My Text   Include page "Example3" from Template namespace with named parameter
<*nowiki>{{Example}}<*/nowiki> (use without *)   {{Example}}   Disables parsing of BBC and Wiki code inside tags.


<nowiki> tag can be used to make sure code isn't parsed.
Code is parsed in every tag with exception of [nobbc],
Code: [Select]
and [php]. Wiki code is parsed in [html] tag. (as of rev195)





[i]Standalone mode[/i]

Standalone mode enables you to run wiki outside SMF install directory. It's required to enable Friendly URLS.

Provided by file "wikistandalone.php" which should be put in SMF directory for Friendly URLs and somewhere else if you want to just run outside SMF directory. (on latter case you need to edit path in file).

Example rule for .htaccess for friendly urls

[code[

    RewriteEngine On
    RewriteRule ^wiki/(.*)$ wikistandalone.php?page=$1 [NC,QSA]

Remember to configure links from admin.