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:
http://weblogtoolscollection.com/b2-img/wiki12.zip
You can see an implementation of this wiki at:
http://weblogtoolscollection.com/wikiwiki.php
Thanks so much for writing the wiki plugin!
In wikiwiki.php there is a call to get_currentuserinfo();. Where is this located?
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?
Hi,
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
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!
Hey cool!
You might be interested in my wiki:
http://grey.ripcord.co.nz/wiki
Ben
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.
I’m having the exact same problem, also with Erfurt Wiki. I have yet to resolve the problem.
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:
http://www.php.net/manual/en/f.....untime.php
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?
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.
Hi that sounds like what I’m looking for, where did you put that exactly. Sorry I’m not that much into coding 😉
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.
-DigitalHobbit
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?
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?
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.
wiki: http://rampen.ca/leo/blog/wiki12.php
Leo
Will this work with WP 1.5 as well?
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?
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.phpI 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/www.greencabal.com/wikiwiki.php on line 44”.
Any help?
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.
Luke: I have not worked on this code for a while and consider it dead. Some other solutions are available. Just search this blog.
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:
http://www.instinct.co.nz/wordpress-wiki-plugin/
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.