When i activate this plugin I get this error?
http://uros-roleplay.net/index.php
Fatal error: Uncaught Error: Call to undefined function create_function() in /homepages/0/d941998675/htdocs/clickandbuilds/MyBB/UrosForums/inc/plugins/styleUsernames.php:83 Stack trace: #0 /homepages/0/d941998675/htdocs/clickandbuilds/MyBB/UrosForums/inc/plugins/styleUsernames.php(31): styleUsernames->__construct() #1 /homepages/0/d941998675/htdocs/clickandbuilds/MyBB/UrosForums/admin/modules/config/plugins.php(522): require_once('/homepages/0/d9...') #2 /homepages/0/d941998675/htdocs/clickandbuilds/MyBB/UrosForums/admin/index.php(830): require('/homepages/0/d9...') #3 {main} thrown in /homepages/0/d941998675/htdocs/clickandbuilds/MyBB/UrosForums/inc/plugins/styleUsernames.php on line 83
This post can be deleted - No longer using this plugin
(2022-11-24, 08:26 PM)SvePu Wrote: [ -> ]=> https://www.php.net/manual/en/function.c...nction.php
Warning
This function has been DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0. Relying on this function is highly discouraged.
Thank you for the speedy reply, But I'm afraid I do not understand what that is, I'm new to all this
(2022-11-24, 08:33 PM)Reegz Wrote: [ -> ] (2022-11-24, 08:26 PM)SvePu Wrote: [ -> ]=> https://www.php.net/manual/en/function.c...nction.php
Warning
This function has been DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0. Relying on this function is highly discouraged.
Thank you for the speedy reply, But I'm afraid I do not understand what that is, I'm new to all this
Well, it pretty much means that the plugin is outdated and not compatible to run on your server or your mybb website.
You can try this:
in the styleUsernames.php replace (line 83 to 92):
$plugins->hooks["pre_output_page"][10]["styleUsernames_parseUsernames"] = array("function" => create_function('&$arg', 'global $plugins; $plugins->objects[\'styleUsernames\']->parseUsernames($arg);'));
$plugins->hooks["global_end"][10]["styleUsernames_getModerators"] = array("function" => create_function('', 'global $plugins; $plugins->objects[\'styleUsernames\']->getModerators();'));
$plugins->hooks["build_forumbits_forum"][10]["styleUsernames_buildForumbits"] = array("function" => create_function('&$arg', 'global $plugins; $plugins->objects[\'styleUsernames\']->buildForumbits($arg);'));
$plugins->hooks["forumdisplay_announcement"][10]["styleUsernames_forumdisplayAnnouncement"] = array("function" => create_function('', 'global $plugins; $plugins->objects[\'styleUsernames\']->forumdisplayAnnouncement();'));
$plugins->hooks["forumdisplay_thread"][10]["styleUsernames_forumdisplayThread"] = array("function" => create_function('', 'global $plugins; $plugins->objects[\'styleUsernames\']->forumdisplayThread();'));
$plugins->hooks["search_results_thread"][10]["styleUsernames_searchThread"] = array("function" => create_function('', 'global $plugins; $plugins->objects[\'styleUsernames\']->searchThread();'));
$plugins->hooks["search_results_post"][10]["styleUsernames_searchPost"] = array("function" => create_function('', 'global $plugins; $plugins->objects[\'styleUsernames\']->searchPost();'));
$plugins->hooks["private_message"][10]["styleUsernames_privateMessage"] = array("function" => create_function('', 'global $plugins; $plugins->objects[\'styleUsernames\']->privateMessage();'));
$plugins->hooks["portal_announcement"][10]["styleUsernames_portalAnnouncement"] = array("function" => create_function('', 'global $plugins; $plugins->objects[\'styleUsernames\']->portalAnnouncement();'));
$plugins->hooks["pre_output_page"][10]["styleUsernames_pluginThanks"] = array("function" => create_function('&$arg', 'global $plugins; $plugins->objects[\'styleUsernames\']->pluginThanks($arg);'));
with:
$plugins->hooks["pre_output_page"][10]["styleUsernames_parseUsernames"] = array("function" => function(&$arg){global $plugins; $plugins->objects['styleUsernames']->parseUsernames($arg);});
$plugins->hooks["global_end"][10]["styleUsernames_getModerators"] = array("function" => function(){global $plugins; $plugins->objects['styleUsernames']->getModerators();});
$plugins->hooks["build_forumbits_forum"][10]["styleUsernames_buildForumbits"] = array("function" => function(&$arg){global $plugins; $plugins->objects['styleUsernames']->buildForumbits($arg);});
$plugins->hooks["forumdisplay_announcement"][10]["styleUsernames_forumdisplayAnnouncement"] = array("function" => function(){global $plugins; $plugins->objects['styleUsernames']->forumdisplayAnnouncement();});
$plugins->hooks["forumdisplay_thread"][10]["styleUsernames_forumdisplayThread"] = array("function" => function(){global $plugins; $plugins->objects['styleUsernames']->forumdisplayThread();});
$plugins->hooks["search_results_thread"][10]["styleUsernames_searchThread"] = array("function" => function(){global $plugins; $plugins->objects['styleUsernames']->searchThread();});
$plugins->hooks["search_results_post"][10]["styleUsernames_searchPost"] = array("function" => function(){global $plugins; $plugins->objects['styleUsernames']->searchPost();});
$plugins->hooks["private_message"][10]["styleUsernames_privateMessage"] = array("function" => function(){global $plugins; $plugins->objects['styleUsernames']->privateMessage();});
$plugins->hooks["portal_announcement"][10]["styleUsernames_portalAnnouncement"] = array("function" => function(){global $plugins; $plugins->objects['styleUsernames']->portalAnnouncement();});
$plugins->hooks["pre_output_page"][10]["styleUsernames_pluginThanks"] = array("function" => function(&$arg){global $plugins; $plugins->objects['styleUsernames']->pluginThanks($arg);});
I tried quickly and I'm not a coder but it seems to work