morestar
05-20-2010, 02:10 PM
Painfully I am finding that either the authors submitting to my directory don't know how to read English. The Article Directory plugin allows the admin to post a message to your users at the Post Page section in their account.
Currently I have 3 brightly colored boxes asking them specific guidelines to go by one being "Please Click on Save Draft if you aren't done editing and Submit For Review when you're done writing it." But very few realize this.
While taking a look around the admin side of things I found in the admin dashboard a QuickPress block.
I thought to myself that the QuickPress block in the dashboard is where the copy and pasters most likely go to submit their articles.
Well it's time to remove it.
Unfortunately if there is an upgrade to Wordpress's core files the following code my be over-written but for now it's useful. Maybe wordpress will be able to address this in the future OR someone will write a nice plugin that does the trick - how hard can it be?
Here is the code to paste in wp-admin/includes/dashboard.php which will remove the QuickPress option from your users and force them to submit an article by the regular means of doing so:
// Create the function to use in the action hook
function example_remove_dashboard_widgets() {
// Globalize the metaboxes array, this holds all the widgets for wp-admin
global $wp_meta_boxes;
// Remove the quickpress widget
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
// Remove the incomming links widget
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
}
// Hoook into the 'wp_dashboard_setup' action to register our function
add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' );
I found the above code on the Dashboard Widgets API (http://codex.wordpress.org/Dashboard_Widgets_API#Advanced:_Removing_Dashboard _Widgets) page for Wordpress. I hope this helps some of you article directory owners or wordpress admins that have multiple users on your site.
Currently I have 3 brightly colored boxes asking them specific guidelines to go by one being "Please Click on Save Draft if you aren't done editing and Submit For Review when you're done writing it." But very few realize this.
While taking a look around the admin side of things I found in the admin dashboard a QuickPress block.
I thought to myself that the QuickPress block in the dashboard is where the copy and pasters most likely go to submit their articles.
Well it's time to remove it.
Unfortunately if there is an upgrade to Wordpress's core files the following code my be over-written but for now it's useful. Maybe wordpress will be able to address this in the future OR someone will write a nice plugin that does the trick - how hard can it be?
Here is the code to paste in wp-admin/includes/dashboard.php which will remove the QuickPress option from your users and force them to submit an article by the regular means of doing so:
// Create the function to use in the action hook
function example_remove_dashboard_widgets() {
// Globalize the metaboxes array, this holds all the widgets for wp-admin
global $wp_meta_boxes;
// Remove the quickpress widget
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
// Remove the incomming links widget
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
}
// Hoook into the 'wp_dashboard_setup' action to register our function
add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' );
I found the above code on the Dashboard Widgets API (http://codex.wordpress.org/Dashboard_Widgets_API#Advanced:_Removing_Dashboard _Widgets) page for Wordpress. I hope this helps some of you article directory owners or wordpress admins that have multiple users on your site.