This topic has 7 replies, 2 voices, and was last updated 9 years, 11 months ago by Anonymous.
Tagged: NextGen Gallery
Viewing 8 posts - 1 through 8 (of 8 total)
There appears to be an issue (JS?) with NextGen Gallery. I’m running the free version. I ‘m running the latest rev of your plugin, WP and NextGen. The Manage functions for NextGen do not work and just constantly refresh with your plugin enabled. Once disabled, all works normally.
We are taking a closer look in to it and we’ll let you know as soon as possible.
Open iva-business-hours-pro.php file and find for this line add_action( 'admin_enqueue_scripts', 'iva_bh_admin_scripts' );. Do comment this line on line no around 34. After that find for this function iva_bh_menu and do replace this function with the below code.
/**
* function iva_bh_menu()
* adding business hours pro menu to wp admin dashboard
*/
add_action( 'admin_menu', 'iva_bh_menu' );
function iva_bh_menu() {
add_menu_page( 'Business Hours Pro', 'Biz Hours Pro', 'manage_options', 'iva-business-hours-pro', 'iva_bh_page', IVA_BH_URL . 'assets/images/aivah-icon.png',59 );
add_submenu_page( 'iva-business-hours-pro', 'Add/Edit Business Hours', 'Add New', 'manage_options', 'bhrs-operations', 'iva_bh_operations' );
add_submenu_page( 'iva-business-hours-pro', 'Settings', 'Settings', 'manage_options', 'bhrs-settings', 'iva_bh_settings' );
add_submenu_page( 'iva-business-hours-pro', 'Holidays', 'Holidays', 'manage_options', 'bhrs-holidays', 'iva_bh_holidays' );
if ( (isset( $_REQUEST['page'] ) && 'iva-business-hours-pro' === $_REQUEST['page'] ) || (isset( $_REQUEST['page'] ) && 'bhrs-settings' === $_REQUEST['page']) || (isset( $_REQUEST['page'] ) && 'bhrs-operations' === $_REQUEST['page']) || (isset( $_REQUEST['page'] ) && 'bhrs-holidays' === $_REQUEST['page'] )) {
add_action( 'admin_enqueue_scripts', 'iva_bh_admin_scripts' );
}
}
This did not help.
This is on line 134 not 34
add_action( ‘admin_enqueue_scripts’, ‘iva_bh_admin_scripts’ );
I’m assuming that the function right below this line stays active?
function iva_bh_admin_scripts() {
wp_enqueue_script( ‘jquery’ );
wp_enqueue_script( ‘iva-business’,IVA_BH_URL . ‘assets/js/iva-business-hours-pro.js’, array( ‘jquery’ ), ”, true );
wp_register_script( ‘jquery-timepicker’ , IVA_BH_URL . ‘assets/js/jquery-ui-timepicker-addon.js’ , array( ‘jquery’, ‘jquery-ui-datepicker’, ‘jquery-ui-slider’ ) , ‘1.4.5’ );
wp_enqueue_script( ‘jquery-timepicker’ );
wp_localize_script( ‘jquery-timepicker’, ‘iva_bh_timepicker_options’, iva_bh_timepicker_options() );
wp_enqueue_script( ‘jquery-ui-datepicker’ );
wp_enqueue_style( ‘iva-bhrs-admin’ , IVA_BH_URL . ‘assets/css/iva-bh-admin.css’, false,false,’all’ );
wp_enqueue_style( ‘iva-bhrs-fontello’ , IVA_BH_URL . ‘assets/fontello/css/fontello.css’, false,false,’all’ );
wp_enqueue_style( ‘iva-bhrs-jquery-ui’ , IVA_BH_URL . ‘assets/css/jquery-ui.css’, false,false,’all’ );
wp_enqueue_style( ‘iva-bhrs-datepicker’, IVA_BH_URL . ‘assets/css/datepicker.css’, false, false, ‘all’ );
Thanks
Yes, the function right below this line stays active. Just comment only this line add_action( 'admin_enqueue_scripts', 'iva_bh_admin_scripts' ); on line no 134. After that find for this function iva_bh_menu and do replace this function with the below code.
/**
* function iva_bh_menu()
* adding business hours pro menu to wp admin dashboard
*/
add_action( 'admin_menu', 'iva_bh_menu' );
function iva_bh_menu() {
add_menu_page( 'Business Hours Pro', 'Biz Hours Pro', 'manage_options', 'iva-business-hours-pro', 'iva_bh_page', IVA_BH_URL . 'assets/images/aivah-icon.png',59 );
add_submenu_page( 'iva-business-hours-pro', 'Add/Edit Business Hours', 'Add New', 'manage_options', 'bhrs-operations', 'iva_bh_operations' );
add_submenu_page( 'iva-business-hours-pro', 'Settings', 'Settings', 'manage_options', 'bhrs-settings', 'iva_bh_settings' );
add_submenu_page( 'iva-business-hours-pro', 'Holidays', 'Holidays', 'manage_options', 'bhrs-holidays', 'iva_bh_holidays' );
if ( (isset( $_REQUEST['page'] ) && 'iva-business-hours-pro' === $_REQUEST['page'] ) || (isset( $_REQUEST['page'] ) && 'bhrs-settings' === $_REQUEST['page']) || (isset( $_REQUEST['page'] ) && 'bhrs-operations' === $_REQUEST['page']) || (isset( $_REQUEST['page'] ) && 'bhrs-holidays' === $_REQUEST['page'] )) {
add_action( 'admin_enqueue_scripts', 'iva_bh_admin_scripts' );
}
}
If you don’t get after doing this, then if you can provide us WP Logins to your website with URL then we can take a closer look at it. Make sure you set the post as private reply so that only admin can see your wp-logins.
Hi,
Thanks for response. When I added your changes it didn’t work. When I just commented out – add_action( ‘admin_enqueue_scripts’, ‘iva_bh_admin_scripts’ );
then it did work.
I’m leaving as is for now. I’m not sure how that will affect the backend once I have to edit something.
Thanks
If you don’t get after doing this then if you can provide us WP Logins to your website with URL then we can take a closer look at it and we’ll fix it. Make sure you set the post as private reply so that only admin can see your wp-logins.
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.