TDOMF plugin hack for WordPress MU

  • admin

guide by Vladimir Boitchentsov, translated by Taras Filatov,
Injoit web developers team

When installing TDO Mini Forms (which is a WordPress plugin allowing to make posts from post/page without having to log in to admin panel) on WordPress MU the following error may occur:

Fatal error after activating TDO Mini Forms

There is not much info in internet regarding installing tdomf on WordPress MU (multiuser)!

Here is a short manual on this for you
1. In wp-config.php, in the end, add this: include(getenv("DOCUMENT_ROOT")."/wp-content/plugins/tdo-mini-forms/tdomf.php");

2. In capabilities.php, in the end, add this: include(getenv("DOCUMENT_ROOT")."/wp-includes/pluggable.php");

3. In tdomf.php, after string 463, add:

if ( !function_exists('tdomf_add_menus') )
{

and close this ‘if’ after the function, i.e. before:

//////////////////////////////////
// Load the rest of the plugin! //
//////////////////////////////////

4. After

/////////////////////////
// Start/Init/Upgrade //
////////////////////////

you should write this:

if ( !function_exists('tdomf_init') )
{

this ‘if’ should be closed after the function, i.e. before the

tdomf_db_create_tables();

string.

5. In plugins/tdo-mini-forms/include/tdomf-form.php uncomment string 159 and in string 157 replace ‘draft’ with ‘publish’

Job done.

Add a comment