2006-12-31, 01:59 PM
Hi,
This is a mod for linking to WikiPage
Example:
For inserting this go in AdminCP > Custom MyCode and click on "Add MyCode" and write this:
MyCode title
Or launch this MySQL Query
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 but I inserted it in my Site and i think to share it.
[OT] Congratulations for MyBB
This is a mod for linking to WikiPage
Example:
[wiki]Main_Page[/wiki]
You have only to write PageName of Wiki into [wiki] Tag 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. 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. 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 but I inserted it in my Site and i think to share it.
[OT] Congratulations for MyBB