MyBB Community Forums

Full Version: NoCopy
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have found a big bug on the NoCopy plugin from mybb
http://mods.mybb.com/view/nocopy

Quote:Please make sure IN_MYBB is defined."); } // Plugins $plugins->add_hook("parse_message", "NoCopy"); // Informacion de Plugins function NoCopy_info() { return array( "name" => "No Copy", "description" => "Deshabilita la opcion de dar click con el segundo boton", "website" => "mailto:[email protected]", "author" => "Edson Ordaz", "authorsite" => "[email protected]", "version" => "1.0", "guid" => "188cfa829ba8776f195699a803210a44", "compatibility" => "*" ); } // Activate plugin function NoCopy_activate(){ global $db; include MYBB_ROOT . '/inc/adminfunctions_templates.php'; $NoCopy_config = array( "gid" => "NULL", "name" => "NoCopy_config", "title" => "No Copy", "description" => "Desactiva el segundo boton del mouse", "disporder" => "0", "isdefault" => "no", ); $db->insert_query("settinggroups", $NoCopy_config); $gid = $db->insert_id(); $NoCopy_config_1 = array( "sid" => "NULL", "name" => "NoCopy_mensaje", "title" => "Mensaje", "description" => "Inserte el mensaje a mostrar al dar click con el segundo boton", "optionscode" => "textarea", "value" => "No Habilitado", "disporder" => "5", "gid" => intval($gid), ); $db->insert_query("settings", $NoCopy_config_1); $find = '#' . preg_quote('{$newpmmsg}') . '#'; $replace = ' {$newpmmsg}'; find_replace_templatesets('headerinclude', $find, $replace, 1); // Optimiza base $db->query("OPTIMIZE TABLE ".TABLE_PREFIX."settinggroups"); $db->query("OPTIMIZE TABLE ".TABLE_PREFIX."settings"); $db->query("OPTIMIZE TABLE ".TABLE_PREFIX."sessions"); // Recarga configuracion rebuildsettings(); } // Desactiva plugin function NoCopy_deactivate(){ global $db; include MYBB_ROOT . '/inc/adminfunctions_templates.php'; $find = '#' . preg_quote(' ') . '#'; $replace = ''; find_replace_templatesets('headerinclude', $find, $replace, 0); $db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='NoCopy_config'"); $db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='NoCopy_mensaje'"); // Optmiza base $db->query("OPTIMIZE TABLE ".TABLE_PREFIX."settinggroups"); $db->query("OPTIMIZE TABLE ".TABLE_PREFIX."settings"); $db->query("OPTIMIZE TABLE ".TABLE_PREFIX."sessions"); // Recarga configuracion rebuildsettings(); } // Run plugin function NoCopy(&$message) { } ?>

Can someone help me with this bug/issue?
what exactly is the issue / bug ? are you getting the above code when activating the plugin ?
Change <? to <?php in the first line of the plugin's file.
Alternatively, you can set allow_short_tags in php.ini to On (contact your hosting support for detailed information).
look its on a website steunonshuis.nl it worked fine after the update from mybb version it doesnt work well.
the only problem is if i click plugins i cant find the plugin in the list....
^ you can delete the plugin file through ftp or file manager of web host panel (./inc/plugins folder)

if you need that plugin working then follow suggestion given in post #3 (by Devilshakerz)
thanks Devils its fixed Smile