WordPress 1.2 Wiki Integration

July 5th, 2004
WordPress Hack

This hack lets you create a wiki inside your WordPress install and is authenticated (for editing) using the WordPress user list. Some of the features of this wiki include:

  • Extremely simple install
  • Protection of the information through WordPress user authentication
  • Static pages with infinite depth of linkage
  • A BUNCH of plugins which allow various customizations
  • Integration into the WordPress theme

You can download the install from:

You can see an implementation of this wiki at:




  1. Thunderbyrd (1 comments.) says:

    Thanks so much for writing the wiki plugin!

  2. Randy Brown (2 comments.) says:

    In wikiwiki.php there is a call to get_currentuserinfo();. Where is this located?

  3. DigitalHobbit (4 comments.) says:

    I was finally able to implement a workaround for this problem. This probably isn’t the cleanest solution, but it does the job. I simply put stripslashes() around the two places where $data[“content”] gets rendered, i.e. in the edit form and on the regular page view. Seems to work fine.

  4. Thomas (1 comments.) says:

    Hi that sounds like what I’m looking for, where did you put that exactly. Sorry I’m not that much into coding ;-)

  5. Atheistx (1 comments.) says:

    I’m having the exact same problem, also with Erfurt Wiki. I have yet to resolve the problem.

  6. Mark (34 comments.) says:

    Add this to the beginning of the script, after the first <?php
    set_magic_quotes_runtime (0);

    Basically, magic quotes are turned on for your server and this will turn it off for the script.

    Find more informaion here:

  7. DigitalHobbit (4 comments.) says:

    Thanks for the info, but even though this explanation makes sense, the workaround did not fix the problem for me. I have tried adding this line to “wiki.php” as well as “ewiki.php”, and neither made a difference. Any other ideas?

  8. DigitalHobbit (4 comments.) says:

    I have used this plugin for a while now, and overall I really like it. I am running into one major problem, though:

    Whenever I create a page, all apostrophes in the text are escaped into backslash + apostrophe. This happens every time I edit the page, so I eventually end up with a whole bunch of backslashes plus an apostrophe for every apostrophe.

    Has anybody else run into this and does anybody know how to fix it? I am not sure if this is a problem of Erfurt Wiki in general or if it has something to do with the integration into WordPress.

  9. Prashant Mullick (1 comments.) says:

    Great plugin!

    I was having a problem with the edit page text form spanning too long on my wiki page. Would you be able to point me to how I could control the size of the edit page box that comes up?

  10. Thomas says:

    it works just fine ther is just one issue. i’d like to have viewing also restricted to the userlist. And in fact I’d like to restrict it to specific userlevels. Let’s say only users with level 3 can edit and see the wikipages.

    Is there a way to do that?

    Thanks Thomas

  11. Ben says:

    Hey cool!

    You might be interested in my wiki:


  12. Jonathan says:

    I added a little something to ewiki.php so that hosts on a port other than the default (e.g. 80) could still use it. The line (890 on my version of the source) that assigns the $url could look something like this:

    $url = “http://” . $_SERVER[“SERVER_NAME”] .
    ($_SERVER[“SERVER_PORT”] ? (“:” . $_SERVER[“SERVER_PORT”]) : “”) . $url;

    Very nice plugin!

  13. DigitalHobbit (4 comments.) says:

    Hi Thomas, sorry, but I didn’t notice your follow-up until now.

    I had to modify two lines in ewiki.php. You can search for $data[“content”] and identify the lines where this variable is rendered. In my case, this is in line 706 and 1467, but this may be different in your file (don’t remember if I made any other changes since I installed it). My two modified lines look like this:

    706: $o .= $ewiki_plugins[“render”][0] (stripslashes($data[“content”]), $render_args);

    1467: . htmlentities(stripslashes($data[“content”])) . “”

    Hope this works for you.


  14. Caj says:

    When I upload a picture, it’s placed in my MySql databse, but not displayed on the screen, and there isn’t any code on the wiki page. Is there something I have overlooked or completly misunderstood?

  15. boogi (1 comments.) says:

    I recently installed this script and am having trouble allowing HTML tags (I know the comment said it was bad, but I’d like to allow for things like and and especially ). I have the setting:

    define(“EWIKI_ALLOW_HTML”, 1);

    but that still doesn’t seem to work. Any suggestions?

  16. Leo (1 comments.) says:

    I can’t get it to work…I get a page with no CSS it seems, and everything all over the place. Theres also an error in the top of the page.


  17. Ruby Sinreich (2 comments.) says:

    Will this work with WP 1.5 as well?

  18. Ruby Sinreich (2 comments.) says:

    I am really missing something. How does this integrate with WordPress?

    The only mention of it in the readme is this:
    This wiki can really be embedded inside any page within your blog.

    If you are embedding this inside a WordPress template, just add this code outside the WordPress loop:...

    I want to make the wiki pages match the look and navigation of the rest of my site. How do I do that?

  19. Tim (1 comments.) says:

    Simpler is to use the erfurt wiki plugin provided to handle this problem, which is usually caused by evil magic quotes being turned on in your server.

    Add the line include_once("fragments/strip_wonderful_slashes.php"); to your config.php

  20. clark (1 comments.) says:

    I couldn’t get it to work.

    The plugin download does not include the plugin. After some searching I found it included in a erfurtwiki full download here: http://erfurtwiki.sourceforge......R1.01d.tgz. Un-tgz’d and in the fragments folder. I included it in my wordpress root folder and added “include_once(“strip_wonderful_slashes.php”);” to my config.php file.

    Got this: “Fatal error: Call to undefined function: get_settings() in /home/clark/ on line 44″.

    Any help?

  21. Luke Gedeon (2 comments.) says:

    Mark, This post is still showing up very high/early in the Google search results. If there is a newer version that works with 2.x a pointer to it would be really helpful.

  22. Mark Ghosh (386 comments.) says:

    Luke: I have not worked on this code for a while and consider it dead. Some other solutions are available. Just search this blog.

  23. Dan Milward (8 comments.) says:

    Hey Guys. Some related news – we have just launched a plugin called WordPress Wiki Plugin. This plugin works with WordPress 2.7 and adds real Wiki functionality to your site without having to integrate another third party wiki.

    Try it out now:

  24. ellen (2 comments.) says:

    One minor installation problem. I got a “ewiki error: could not read from directory” when I first installed.
    I tired re-installling after chmod ing everything to 777 and still got the error. A bit of digging through the code showed that for some reason it couldn’t create the init-pages directory. I made thhe directory manually and now everything seems to be fine.


  1. […] in my program from helping others Downloaded and installed the latest hack for 1.2 – the Wiki plugin. Really easy to install, I’ve got my initia […]

  2. […] 下幾點: 修正之前我寫的一些外掛程式的錯誤。 加入了wiki套件。WeblogToolsCollection網站在七月五日就推出了這個å […]

  3. […] ki Filed under: General — DigitalHobbit @ 10:55 pm Mark just published a Wiki plugin for WordPress on his Weblog Tools Collection. Th […]

  4. […] me to write my own from scratch. Last week I discovered Mark Ghosh’s excellent work integrating ErfurtWiki with WordPress, which, while not a bli […]

  5. […] This little plugin here automatically links camel case words in the weblog to a wiki: Wiki Integration I will document the different components wh […]

  6. […] The wiki is powered by wikiwiki, based on erfurt wiki but using WordPress’s authentication. I’ve tinkered and hacked away a bit to make it fit with the theme (plus a modification to functions.php as described here. I need to hack away at it a bit more: I’m not happy with all feedback in the code, but I wanted to launch it right away, after adapting Hugh Fearnley-Whittingstall’s spiced baked desert apple recipe for my pears – for my adaptation click here. […]

  7. […] here  . I am using Erfurt wiki for handling the wiki interface. Also, used a little help from a hack by Mark Ghosh. Lets see how it works. The main limitation would be that target audience coming on […]

  8. […] gibt zwar ein paar Beschreibungen wie man das Erfurt Wiki (EWiki) in WordPress 1.2 (WP) integriert, doch in der aktuellen (2.0.3) […]

  9. […] una línea de inc/common.php en el directorio de instalación de DokuWiki, que no he encontrado. Wikiwiki consiste en dos archivos (wikiwiki.php y ewiki.php) que teóricamente permiten incrustar un motor […]

Obviously Powered by WordPress. © 2003-2013

page counter