MyBB Community Forums

Full Version: Wiki BBCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
This is a mod for linking to WikiPage
Example:
[wiki]Main_Page[/wiki]
You have only to write PageName of Wiki into [wiki] Tag Smile

For inserting this go in AdminCP > Custom MyCode and click on "Add MyCode" and write this:

MyCode title
Wiki
MyCode description
With this BBcode you can link to our Wiki without writing complete path
Regular expression
\[wiki\](.*?)\[/wiki\]
Replacement
<a href="http://www.sitename.com/wiki/index.php/$1">Wiki: $1</a>
You have to edit http://www.sitename.com/wiki/ with your sitename and the folder where wiki is placed. Smile

Or launch this MySQL Query
INSERT INTO mybb_mycode (title, description, regex, replacement, active) VALUES ("Wiki", "With this BBcode you can link to our Wiki without writing complete path", "\[wiki\](.*?)\[/wiki\]", '<a href="http://www.sitename.com/wiki/index.php/$1">Wiki: $1</a>', "yes")
You have to edit http://www.sitename.com/wiki/ with your sitename and the folder where wiki is placed. Smile
And edit the prefix if it isn't mybb

Ex. Your site is www.dob.com and Wiki is placed in a folder called doc You have to write http://www.dob.com/doc/

I know that it isn't a great mod Toungue but I inserted it in my Site and i think to share it. Big Grin

[OT] Congratulations for MyBB Smile
We have a Wiki tag here too Smile [wiki]MyBB Team[/wiki]
oh sorry. Sad
I didn't know Smile