Hello,We really like your plugin.How do we make this dashboard message quit appearing?\”PDF Light Viewer Plugin Pro: requirements are met, happy using!\”It needs a DISMISS link or something so it does not appear after the 1st time or after the user selects for it to NOT appear again.Thanks
4 Answers
Hello, We are only using it on about 6 selected subsites. Each site has a different theme and different active plugin combinations, but all display the admin message when the plugin is active.
I removed the indicated code and the admin message still displays. ???????
I removed line 65 in AdminController.php and the admin message is finally gone. Start your code here// after install notifications public static function showActivationMessages() { $requirements_met = PdfLightViewerPro_Plugin::requirements(true); $plugin_title = PdfLightViewerPro_Plugin::getData(‘Title’); if ($requirements_met) {I REMOVED THIS LINE: self::showMessage($plugin_title.’: ‘.__(‘requirements are met, happy using!’,PDF_LIGHT_VIEWER_PRO_PLUGIN)); } else { self::showMessage( $plugin_title.’: ‘ .sprintf(__(‘requirements not met, please check <a href=”%s”>plugin settings page</a> for more information.’,PDF_LIGHT_VIEWER_PRO_PLUGIN),PdfLightViewer_Plugin::getSettingsUrl()) , true); } } Start your code here
I hope you can fix this soon. After every update I must edit AdminController.php and delete line 65 to make the admin message go away.
Please login or Register to submit your answer
replied 9 years ago
This notice is really annoying. How can we eliminate it after initial setup?
replied 9 years ago
It should be automatically dismissed after first time. If it doesn’t then I believe there could be some PHP error. If you can, please share erro_log (send it to support@teamlead.pw) so we could investigate.
replied 9 years ago
There are no references in the error logs and Debug Bar reports no issues. However, the admin message remains displayed on all sites where the plugin is activated and it is annoying. Can you provide a code hack we can do to remove it until you update it to solve this issue?
replied 9 years ago
You could comment this line to make notification disappear for now https://github.com/antongorodezkiy/pdf-light-viewer/blob/master/controllers/Plugin.php#L495
replied 9 years ago
Do you use it in wordpress multisite mode or each site is separately installed?