-
Custom Forms Integration
Hi,
We intend to use some vaultwiki templates (animals catalog) that require a lot of information (number of parameters), several of them are technical or abbreviations.
To help in a "more easy way" of creation the pages, we are trying to use Easy Forms AddOn (http://www.vbulletin.org/forum/showthread.php?t=234385) to create some customs forms that can create threads.
We test easy forms addon and had success on create a thread in a traditional forum. But in a Vaultwiki forum, easy forms add on creates the page, the title, but empty content.
Do you have some addon (custom forms) to suggest to use with vaultwiki? or do you know a way to integrate this products?
thanks
-
The environment variable must be set if you are creating a new article using a different script than VaultWiki:
Code:
$vault->misc['creating_article'] = true;
If you are editing an existing article, this must be set instead:
Code:
$vault->misc['editing_wiki'] = true;
If you are editing then you must also manually start the Revision DM, or you can call:
Code:
require_once(DIR . '/vault/functions/rollback.php');
revision_quick_update($revision, $foruminfo, $threadinfo, $post);
// $revision should contain the changes to the article
Both options assume you already checked wiki permissions and that you already confirmed the article title doesn't exist or isn't banned.