PDA

View Full Version : Automated wiki discussion insertations



Arjan
04-23-2012, 07:22 PM
One of the features we had with the previous wiki was the discussion tab creating a discussion thread for articles.

I looked into that a while ago but couldnt find a good solution on how to implement it to the new one without rewriting the vaultwiki files.

Last night i woke up in the middle of the night with a solution!! i can write a hook that will create a discussion thread when a wiki article is created.
but since our wiki already has a few pages this is kinda late.
So i duplicated the hook and hooked it to whenever a wiki page is loaded. It cheacks if there might be already a thread with the same name, if not it creates one.

so there will be some spamming to the wiki discussion forum, but this will solve in some time.

thanks google for your spider friends helping us out to creat discussion threads! :)

Sorontar
04-24-2012, 02:57 AM
so there will be some spamming to the wiki discussion forum, but this will solve in some time.

[cough cough] only some spamming? :) I guess it makes me look at the forum menu instead of just looking for recent forum changes ion the index page.

Thanks Arjan.

Sorontar

Sorontar
04-24-2012, 03:17 AM
so you don't miss my comments ....

http://www.birthright.net/forums/showthread.php?27733-Chapter-four-Gods-and-religion-Faiths-of-worship

Arjan
04-24-2012, 05:08 AM
so you don't miss my comments ....

http://www.birthright.net/forums/showthread.php?27733-Chapter-four-Gods-and-religion-Faiths-of-worship

yes i noticed that strange parsing space as well yesterday right before i went to bed.. the code seems good no spaces... must be a little glitch in vaultwiki.
i will post it on the VW forums

BRadmin
04-24-2012, 08:47 AM
I have actually deleted all newly created threads in the forum.. and disabled the plugin for the moment.

I think before we do this we need to consider some things.

stripping the wiki discussion pages will give some problems later on, when we will upgrade to VW4.
since the upgrade script will not recognize the threads in the wiki discussion forum.

i have added the wiki namespace forums so discussions of pages show up there as well.

so the question is:
do we want or even better .. do we NEED the discussion page to be in 1 specific forum.
or can we live with them being in the namespace forums?