MyBB Community Forums

Full Version: Zaher's mouse over thread preview error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When activating this plugin in the ACP, I receive the following errors:

Warning: motp_activate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/at19029/public_html/forums/inc/plugins/motp.php on line 94

Warning: motp_activate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/at19029/public_html/forums/inc/plugins/motp.php on line 94

Warning: motp_activate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/at19029/public_html/forums/inc/plugins/motp.php on line 94

Fatal error: motp_activate(): Failed opening required './inc/adminfunctions_templates.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/at19029/public_html/forums/inc/plugins/motp.php on line 94

Any help would be greatly appreciated. From what the screenshot shows, I'm going to like this mod a lot!
Change
	require './inc/adminfunctions_templates.php';

into
	require MYBB_ROOT.'/inc/adminfunctions_templates.php';
Ok, that fixed the problem of activating it, but once I do and go look at a post, it returns this error:

Fatal error: Call to undefined function: dobadwords() in /home/at19029/public_html/forums/inc/plugins/motp.php on line 167
and! I can't deactivate it, I receive this error:


Warning: motp_deactivate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/at19029/public_html/forums/inc/plugins/motp.php on line 110

Warning: motp_deactivate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/at19029/public_html/forums/inc/plugins/motp.php on line 110

Warning: motp_deactivate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/at19029/public_html/forums/inc/plugins/motp.php on line 110

Fatal error: motp_deactivate(): Failed opening required './inc/adminfunctions_templates.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/at19029/public_html/forums/inc/plugins/motp.php on line 110
Shemo Wrote:and! I can't deactivate it, I receive this error:


Warning: motp_deactivate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/at19029/public_html/forums/inc/plugins/motp.php on line 110

Warning: motp_deactivate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/at19029/public_html/forums/inc/plugins/motp.php on line 110

...

Same as my first post, change the line in the deactivate section.
And dobadwords() is probably an old function, now you need to set up a parser and parse the badwords.
I changed line 110

as far as changing a parser..I don't even know what a parser is or how to configure 1...
php nub...don't know any php period. =(

I am using your badword mod and have it setup so you can filter/unfilter the body and subject of posts.
I get this error after the edits..
Fatal error: Call to undefined function postify() in forums/inc/plugins/motp.php on line 191

191-$message = postify($message, $forum['allowhtml'], $forum['allowmycode'], $allowsmilies, $forum['allowimgcode']);
192-$message = clean_bbcode($message);

board version is 1.2.12