project
project summary freshmeat entry development infos mailing list WebInstaller database tools ChangeLog
page plugins
ProtectedEmail PowerSearch README README.config README.plugins README.fragments ProtectedMode INTERNALS WordIndex AboutPlugins PhpInfo OrphanedPages ListOfPluginHooks RSS RecentChanges PageIndex NewestPages SearchPages MostVisitedPages MostOftenChangedPages UpdatedPages
usage hint
9OTUNE YOGURT SÜREER AYRAN OLANA KADAR SİKERİMxD
I am trying to integrate ewiki (the basic version without plugins etc.) into a phpbb to use the Wiki as a knowledge base. I use a portalmod and want the wiki to be a subpage of the portal, so the URL to reach the Wiki is http://..../phpbb/portal.php?page=8. I already commented out the line in ewiki_id() so ewiki should ignore the "page" portion of the URL. I already reach the edit form, but when i try to submit anything it is send to http://..../phpbb/edit/page=8. Any hints how to set EWIKI_SCRIPT and/or *EWIKI_SCRIPT_URL to get the wiki finding itself?
MarioSalzer: You then have to set your EWIKI_SCRIPT and _URL constants to something like "http://..../phpbb/portal.php?page=8&id=". All page and action names will simply get appended to whats defined there.
Thanks for the clarification, i also had to stripdown ewiki_id() to ignore anything else except the "id":
function ewiki_id() {
($id = @$_REQUEST["id"])
if (!strlen($id) || ($id=="id=")) {
$id = EWIKI_PAGE_INDEX;
}
(EWIKI_URLDECODE) && ($id = urldecode($id));
return($id);
}
The integration into the phpbb portalmod already works, but since i disabled the EWIKI_CONTROL_LINE (i have control links on the portal page) i also don't see the last modified date wich is added by the same function. Is there another way to get that date and the author of the last change so they could be shown on the page?
milky: The date and author names are in $ewiki_data["author"] and $ewiki_data["lastmodified"]. $ewiki_data is a global variable, that you should be there while and after you called the main ewiki_page() function.
The ["content"] field is absent then usually, but all the meta data should be there, so you can output it as you like. So you generally don't need to write a plugin for tasks like this.