DungeonMaster Posted June 16, 2013 Posted June 16, 2013 Is the Wiki merely a page to add plain text and upload an image? Nothing more? Quote
KyleMassacre Posted June 16, 2013 Posted June 16, 2013 Is the Wiki merely a page to add plain text and upload an image? Nothing more? I honestly haven't messed with the wiki much but as far as I can tell yes. You can if it isn't yet but wrap it in PrettyMessage possibly? Quote
DungeonMaster Posted June 16, 2013 Author Posted June 16, 2013 OK thanks, I'm confused by using the name "Wiki" its more like a note box with an upload facility. Quote
a_bertrand Posted June 17, 2013 Posted June 17, 2013 It's more than that. You can add as many pages and as many images as you want not just 1. So you could basically build your help with it for example, with chapter or sections. Basically it's a very small mediawiki ;) Quote
DungeonMaster Posted June 17, 2013 Author Posted June 17, 2013 I did notice the table built rows based on the page name but I did not see a way to link them together? Quote
a_bertrand Posted June 17, 2013 Posted June 17, 2013 Like with any wiki: On page one you type something like [[page 2]] and that will produce a link to a "page 2", save, while viewing it, you can now click on this "page 2" link and fill the content and continue. Quote
DungeonMaster Posted June 17, 2013 Author Posted June 17, 2013 Oh thanks, there is no use of heading markup on this? Or at least bold? Quote
a_bertrand Posted June 17, 2013 Posted June 17, 2013 You can use any HTML tag, so no special wiki tags beside the link tag and the image tag. Quote
DungeonMaster Posted June 17, 2013 Author Posted June 17, 2013 When I use HTML it shows up as text it is not parsed. Quote
a_bertrand Posted June 18, 2013 Posted June 18, 2013 Sorry my fault, indeed it uses the PrettyMessage function to display it. If you didn't disabled the rich editor, you should be able to use that. Anyhow you should be able to use the supported BB tags like [b][u] and any other BB tags you will support. Quote
DungeonMaster Posted June 18, 2013 Author Posted June 18, 2013 I do have the rich text editor disabled but it seems to also disable BB tags... on this, but I don't see why it should be dependent on the rich text editor in order to have it functional - the only one tag that works for me is the wiki link. Quote
a_bertrand Posted June 18, 2013 Posted June 18, 2013 Well the tine_mce (rich editor) contains a pretty_message.php hook, which defines LI, UL OL I B and U BB tags. You could as well create a new module copy the pretty_message.php file there and you should have again the BB code support for those. You could also edit it to support whatever BB code you want to have ;) Quote
DungeonMaster Posted June 19, 2013 Author Posted June 19, 2013 How does the image upload work? Where does it upload the image to and how do you call back the image? Quote
a_bertrand Posted June 19, 2013 Posted June 19, 2013 Wiki images are saved in the database (as you could see from the code at line 33 of the script). To include the image use the wiki tag: [[image:filename]] Quote
DungeonMaster Posted June 19, 2013 Author Posted June 19, 2013 Thanks, the only problem I see here, maybe for a future update is that if you forgot the image name you will have to hunt it down or upload an image with the same name you will get an overwrite of a current name. Quote
a_bertrand Posted June 19, 2013 Posted June 19, 2013 It's not a full blown wiki anyhow, and the only other way to avoid double uploads would be to use ID which of course you would loose the info of which ID is what, therefore we should then add an image browser too. Honestly for the kind of wiki offered, the current system should be enough. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.