Advertisement:

Author Topic: [WIP] SimpleWiki - Updated 26/10/2010  (Read 30525 times)

Offline Sorck

  • Jr. Member
  • **
  • Posts: 268
  • Gender: Male
  • Is it a bird? Is it a plane? Of course it's not.
    • Sorck on GitHub
    • Second Sphere
[WIP] SimpleWiki - Updated 26/10/2010
« on: June 27, 2010, 02:47:06 PM »

Last week I decided I'd finally get around to writing a wiki intergration for SMF as none have ever seemed to get very far.

Current features:
  • Page create and editting
  • Page protection - none, no guests, wiki admins, forum admins
  • Namespace: These seem to have stopped working upon moving to my web server, I'm not sure why though. The only thing which relies on namespaces is the category system (as the user namespace isn't functioning)
  • Page History - view full history including username and IP (shown for guests, for users only to admins)
  • Page deletion - marks page as deleted without actually deleting it (basically it doesn't show up)
  • Categories - this is apparently a major feature so I added it, categories have there own namespace but as with the rest of the namespace system it's stopped working properly

Current tasks:
  • Permission 'Overhaul'
  • Admin cpanel with some general settings

I've attatched my current mod version of SimpleWiki, upon installation I advise going to your wiki and create the Main Page, then navigate to index.php?action=wiki;sa=create;p=Wiki:Menu

Changelog
27/6/2010 - categories namespace working, fixed some language strings, added search
7/8/2010 - User Namespace added, partially working; colright and colleft BBCodes added; categories BBCode should not show up in wiki pages.
26/10/2010 - Reworked the namespace system to use seperate files for easier development.
« Last Edit: July 29, 2012, 06:39:42 AM by Sorck »

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: [WIP] SimpleWiki
« Reply #1 on: June 27, 2010, 02:49:35 PM »
GREAT!!

I was looking for this!!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Sorck

  • Jr. Member
  • **
  • Posts: 268
  • Gender: Male
  • Is it a bird? Is it a plane? Of course it's not.
    • Sorck on GitHub
    • Second Sphere
Re: [WIP] SimpleWiki
« Reply #2 on: June 27, 2010, 03:13:35 PM »
GREAT!!

I was looking for this!!
It's only a beta at the moment, and has a fairly long way to go, if you find any bugs please report them :)

Offline Liam.

  • SMF Hero
  • ******
  • Posts: 2,240
  • Gender: Male
Re: [WIP] SimpleWiki
« Reply #3 on: June 27, 2010, 03:42:46 PM »
Well there are already two (and a third one on another site) Wiki mods for SMF that are all in ALPHA/BETA, hopefully this one will get further - don't give up ;)

I'll be tracking it, looks good so far.

Offline Sorck

  • Jr. Member
  • **
  • Posts: 268
  • Gender: Male
  • Is it a bird? Is it a plane? Of course it's not.
    • Sorck on GitHub
    • Second Sphere
Re: [WIP] SimpleWiki
« Reply #4 on: June 27, 2010, 04:55:57 PM »
Well there are already two (and a third one on another site) Wiki mods for SMF that are all in ALPHA/BETA, hopefully this one will get further - don't give up ;)

I'll be tracking it, looks good so far.
I followed Sangwe11's wiki mod (and still do) as it went along quite well until he stopped due to school work.
I'm aiming to be the first Wiki mod on the mod site (just need to clean up a few things first)

I'm about to upload a slight revision (added search with search bar, and the language strings for the delete permission)

As a matter of interest, would "strstr('Category:Sorck', ':', true);" return "Category"? It's just I can't seem to get it to work :-\

Offline flapjack

  • SMF Hero
  • ******
  • Posts: 2,615
  • Gender: Male
  • I pity the fools!
Re: [WIP] SimpleWiki
« Reply #5 on: June 27, 2010, 05:20:02 PM »
afaik you should not use strstr as it has problems with utf encoding

Offline Jntg4

  • Jr. Member
  • **
  • Posts: 151
Re: [WIP] SimpleWiki
« Reply #6 on: June 27, 2010, 05:35:55 PM »
I think you need a way to search or type in the name of a page to go to it.
Free Domain Name: http://www.co.cc/?id=167358

Offline Sorck

  • Jr. Member
  • **
  • Posts: 268
  • Gender: Male
  • Is it a bird? Is it a plane? Of course it's not.
    • Sorck on GitHub
    • Second Sphere
Re: [WIP] SimpleWiki
« Reply #7 on: June 27, 2010, 05:49:17 PM »
I think you need a way to search or type in the name of a page to go to it.
I've written that, just haven't uploaded it (wait a few minutes and i will :))

Uploaded Beta 1.01 :)
« Last Edit: June 27, 2010, 05:56:34 PM by Colonel Sorck »

Offline flapjack

  • SMF Hero
  • ******
  • Posts: 2,615
  • Gender: Male
  • I pity the fools!
Re: [WIP] SimpleWiki
« Reply #8 on: June 27, 2010, 06:34:51 PM »
is it a full wiki mod or jus integration for wikimedia?

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: [WIP] SimpleWiki
« Reply #9 on: June 28, 2010, 01:22:53 AM »
Great! Bookmarked! Can't wait to download! (I'm in bed on my phone will download in next day or two...)

Offline Sorck

  • Jr. Member
  • **
  • Posts: 268
  • Gender: Male
  • Is it a bird? Is it a plane? Of course it's not.
    • Sorck on GitHub
    • Second Sphere
Re: [WIP] SimpleWiki
« Reply #10 on: June 28, 2010, 02:57:21 AM »
is it a full wiki mod or jus integration for wikimedia?
Full wiki mod - I don't find mediawiki easy to use, and even more difficult to modify :P

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: [WIP] SimpleWiki
« Reply #11 on: June 28, 2010, 06:28:53 AM »
is it a full wiki mod or jus integration for wikimedia?
Full wiki mod - I don't find mediawiki easy to use, and even more difficult to modify :P
Oh my god yes...

I tried installing MediaWiki and it won't let me install it on my XAMPP localhost site...

This works pretty well on XAMPP and my co.cc site.

Gonna download the new release to see what changed :D
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Sorck

  • Jr. Member
  • **
  • Posts: 268
  • Gender: Male
  • Is it a bird? Is it a plane? Of course it's not.
    • Sorck on GitHub
    • Second Sphere
Re: [WIP] SimpleWiki
« Reply #12 on: June 28, 2010, 11:06:03 AM »
is it a full wiki mod or jus integration for wikimedia?
Full wiki mod - I don't find mediawiki easy to use, and even more difficult to modify :P
Oh my god yes...

I tried installing MediaWiki and it won't let me install it on my XAMPP localhost site...

This works pretty well on XAMPP and my co.cc site.

Gonna download the new release to see what changed :D
27/6/2010 - categories namespace working, fixed some language strings, added search
I'm working on a little overhaul of the permissions as well (ie wikiAllowedTo instead of allowedTo in order to let wiki admins do everything)

Can't wait for some feedback/feature suggestions :)

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: [WIP] SimpleWiki
« Reply #13 on: June 28, 2010, 12:34:04 PM »
Maybe add a tab with all pages, and the option to create a new one?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Sorck

  • Jr. Member
  • **
  • Posts: 268
  • Gender: Male
  • Is it a bird? Is it a plane? Of course it's not.
    • Sorck on GitHub
    • Second Sphere
Re: [WIP] SimpleWiki
« Reply #14 on: June 28, 2010, 01:00:03 PM »
Maybe add a tab with all pages, and the option to create a new one?
Like http://simplewiki.co.uk/index.php?action=wiki;sa=v_all for the all pages?
The create one could be managed through search ie you search 'Frog' it say 'Page does not exist, woulld you like to ' (or if it exists says '[url]This page exists]create this page[/ul]' (or if it exists says '[url]This page exists')
Create tab'll will be added shortly :)

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: [WIP] SimpleWiki
« Reply #15 on: June 28, 2010, 01:30:11 PM »
Great!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: [WIP] SimpleWiki
« Reply #16 on: June 30, 2010, 02:08:24 PM »
since I'm interested in competitors and looked how this mod does things. I have warning for potential users, there is due to improper input validation it's possible to insert unwanted things like javascript into pages. not going into specifics to prevent abuse.

Offline Sorck

  • Jr. Member
  • **
  • Posts: 268
  • Gender: Male
  • Is it a bird? Is it a plane? Of course it's not.
    • Sorck on GitHub
    • Second Sphere
Re: [WIP] SimpleWiki
« Reply #17 on: June 30, 2010, 04:34:32 PM »
since I'm interested in competitors and looked how this mod does things. I have warning for potential users, there is due to improper input validation it's possible to insert unwanted things like javascript into pages. not going into specifics to prevent abuse.
Thanks for the info Niko - I'll test to see where I've missed some validation (I could sware I'd covered pages with htmlspecialchars but I'll check over)
I've looked through every input and all html characters are removed before being displayed to the end user AFAIK, If you would care to ellaborate upon an example of where it would be greatly appreciated (by PM to prevent abuse) :)
« Last Edit: June 30, 2010, 04:41:34 PM by Colonel Sorck »

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: [WIP] SimpleWiki
« Reply #18 on: July 01, 2010, 08:49:29 AM »
since I'm interested in competitors and looked how this mod does things. I have warning for potential users, there is due to improper input validation it's possible to insert unwanted things like javascript into pages. not going into specifics to prevent abuse.
Thanks for the info Niko - I'll test to see where I've missed some validation (I could sware I'd covered pages with htmlspecialchars but I'll check over)
I've looked through every input and all html characters are removed before being displayed to the end user AFAIK, If you would care to ellaborate upon an example of where it would be greatly appreciated (by PM to prevent abuse) :)

I had plan to send pm but didn't have time to send.

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: [WIP] SimpleWiki
« Reply #19 on: July 02, 2010, 03:46:51 PM »
Niko, you have competition!

yes, and the OP is fixing when you add a category it shows the bbcode style markup, hope fixed soon!