Hello,
I'am using the 2.2 version of Hana FLV Player for a school project, and my students are contributors on the blog site.
I would like to not allow them to get the Hana setting link in the left dasboard sidebar ?
I would like to only allow Admin to get acces to the setting menu..
How can I do that ? Thanks in advance for your reply..
Thierry
PS : please excuse my English
Setting menu and contributors
(2 posts) (2 voices)-
Posted 3 months ago #
-
Hello tpouzaud
You are right. I believe that allowing only ADMIN to access the option page is proper.
I will update the plugin soon, but meanwhile, you can update the plugin file yourself to allow only admin the access of option page.
Edit the plugin file (
$WPHOME/wp-content/plugins/hana-flv-player/hana-flv-player.php) at line 99 (version 2.4.2). Change theadd_options_pagefunction 's third argument to8from1.Before
add_options_page($this->admin_setting_title,$this->admin_setting_menu, 1, __FILE__,array(&$this,'hana_flv_options_page'));
After
add_options_page($this->admin_setting_title,$this->admin_setting_menu, 8, __FILE__,array(&$this,'hana_flv_options_page'));
After the quick fix, only Admin will be allowed to access the option page.
Thank you !
Posted 3 months ago #
Reply
You must log in to post.
resolved