Great but if you have problems…
-
I really like this plugin. Kudos to Ronak.
I have had a big issue setting it up today on a new site though. I couldn’t see the links in menu to add galleries and got the infamous “You do not have permission…”. Finally I looked at the code and changed the authorisation level required to use these links from manage_links to activate_plugins.
At the beginning of admin settings I now have
add_menu_page(‘Awesome Flickr Gallery’, ‘Awesome Flickr Gallery’, ‘activate_plugins’, ‘afg_plugin_page’, ‘afg_admin_html_page’, BASE_URL . “/images/afg_logo.png”, 898);
$afg_main_page = add_submenu_page(‘afg_plugin_page’, ‘Default Settings | Awesome Flickr Gallery’, ‘Default Settings’, ‘activate_plugins’, ‘afg_plugin_page’, ‘afg_admin_html_page’);
$afg_add_page = add_submenu_page(‘afg_plugin_page’, ‘Add Gallery | Awesome Flickr Gallery’, ‘Add Gallery’, ‘activate_plugins’, ‘afg_add_gallery_page’, ‘afg_add_gallery’);
$afg_saved_page = add_submenu_page(‘afg_plugin_page’, ‘Saved Galleries | Awesome Flickr Gallery’, ‘Saved Galleries’, ‘activate_plugins’, ‘afg_view_edit_galleries_page’, ‘afg_view_delete_galleries’);
$afg_edit_page = add_submenu_page(‘afg_plugin_page’, ‘Edit Galleries | Awesome Flickr Gallery’, ‘Edit Galleries’, ‘activate_plugins’, ‘afg_edit_galleries_page’, ‘afg_edit_galleries’);
$afg_advanced_page = add_submenu_page(‘afg_plugin_page’, ‘Advanced Settings | Awesome Flickr Gallery’, ‘Advanced Settings’, ‘activate_plugins’, ‘afg_advanced_page’, ‘afg_advanced_settings_page’);Hope this helps.
Roger
- The topic ‘Great but if you have problems…’ is closed to new replies.