Have a suggestion?

Click here to suggest a blog item.

Newsletters Archive

Catch up with DonationCoder by browsing our past newsletters, which collect the most interesting discussions on our site: here.

Editorial Integrity

DonationCoder does not accept paid promotions. We have a strict policy of not accepting gifts of any kind in exchange for placing content in our blogs or newsletters, or on our forum. The content and recommendations you see on our site reflect our genuine personal interests and nothing more.


Latest News

July 2, 2024
Server Migrations Coming

  • Donationcoder server migration is slowly proceeding, expect some hiccups as we get all our ducks in a row..

July 19, 2022
Software Update

Jan 3, 2022
Event Results

May 13, 2020
Software Updates

Mar 24, 2020
Mini Newsletter

Dec 30, 2019
Software Updates

Jan 22, 2020
Software Updates

Jan 12, 2020
Newsletter

Jan 3, 2020
Event Results

Jan 2, 2020
Software Updates

Dec 30, 2019
Software Updates

April 27, 2019
Software Updates

Feb 26, 2019
Software Updates

Feb 23, 2019
Software Updates

Feb 14, 2019
Software Updates

Jan 6, 2019
Event Results

Dec 2, 2018
Software Updates

Nov 13, 2018
Software Releases

July 30, 2018
Software Updates

June 24, 2018
Software Updates

June 6, 2018
Software Updates

Apr 2, 2018
Fundraiser Celebration

Apr 2, 2018
Software Updates

Feb 24, 2018
Software Updates

Jan 14, 2018
Major Site News

Jan 10, 2018
Event Results

Latest Forum Posts

Compelled to Donate
HI really like what you guys are doing. I know it is tough to be open, fair, and NOT get taken advantage of. As a user I fell more compelled to give when I am allowed to donate what it is worth to me.
A.N.
A.N. image

Our daily Blog

This page spotlights the most interesting posts collected from our forum every day.

You are viewing a specific blog item. Click here to return to the main blog page.

MwImporter php script - Batch import html site into MediaWiki - v2.0

blog clipart
JavaJones and I have been working on an Open Source php script thats aid in batch converting and importing an entire directory of html files and images into a MediaWiki site.

Useful if you want to convert your static page site into MediaWiki.

Official Web Page and Download: https://www.donation...wimporter/index.html



This builds on a number of existing tools, including HTML WikiConverter perl scripts, and the php importing tools that come with MediaWiki.

What it adds is a bunch of nice helper functions that facilitate massaging the html prior to conversion, and wiki text post conversion, handling filename clashes, relative links between pages, and the handling of recursive directories of both static pages and images, using php classes that are easy to extend.

We will be posting a release for anyone who might find this useful soon, though i have my doubts as to whether this isn't the empty set (let me know if not!).



NOTE: I should add that really this is a generic set of php classes for "converting/importing" a recursive directory of files from one format into another, which includes derived classes specifically for converting and importing from html files into a MediaWiki site; but the base classes could serve as a useful starting point for anyone who wants php code to recursively discover and batch process/convert a directory of files from any format to any other format, with helper functions for handling commandline options, temp files, file matching patterns, etc.



LICENSE: Open Source

AUDIENCE: This code is intended for experienced users who aren't afraid of getting their hands dirty; if you are expecting a super friendly idiot-proof tool you need to look elsewhere (bearing in mind there is nothing else at the current time that will do this stuff).



Share on Facebook