Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Bradypus

    (@clementgalliot)

    Hello,

    Sorry I misspoke (I’m french ^^), I want to be able to insert media from the library directly without a code, in the simplest and default way of wordpress.
    With the wordpress “Add media” button, wordpress adds the [audio] and [video] tags in the code on the admin side, but on the front side mediaelement.js modifies and adds code to guarantee a similar presentation on the different browsers I suppose . It is this injected code that is overloaded by the WPCA css.

    Regards.

    Thread Starter Bradypus

    (@clementgalliot)

    In addition, the “random” option is not translated in the sorting drop-down box, is it possible to translate it manually? or in a future update?

    Bradypus

    (@clementgalliot)

    Hello, I found a solution to make the plugin accessible to roles other than the administrator, via the Members plugin but this requires modifying a AcuGIS Leaflet Maps plugin function (mapfig_premium_mf_menu() in “lib/controller.php” precisely)

    http://justintadlock.com/archives/2009/09/18/custom-capabilities-in-plugins-and-themes

    I put this on mine :

    function mapfig_premium_mf_menu() {
    	
    	/* Add capability */
    	if ( function_exists( 'members_plugin_init' ) )
    	add_filter( 'map_capability', 'edit_maps' );
    
    	function unique_maps_capability( $cap ) {
    		return 'edit_maps';
    	}
    	/* -------------- */
    	
    	add_menu_page(MF_PLUGIN_NAME_FORMATED, '<i class="fa fa-leaf fa-2"></i> Maps', unique_maps_capability( $cap ), MF_PLUGIN_NAME, 'mf','dashicons-admin-mediaa');
    	
    	add_submenu_page( MF_PLUGIN_NAME, 'My Maps', '<i class="fa fa-globe"></i> My Maps', unique_maps_capability( $cap ), 'my-maps', 'mf_main_map' );
    	add_submenu_page( MF_PLUGIN_NAME, 'Manage Map', '<i class="fa fa-location-arrow"></i> Add New Map<hr>', unique_maps_capability( $cap ), 'add-new-map', 'add_main_map' );
    	add_submenu_page( MF_PLUGIN_NAME, 'My Base Maps', '<i class="fa fa-align-justify"></i> My Base Maps', 'administrator', 'layers', 'layers' );
    	add_submenu_page( MF_PLUGIN_NAME, 'Add New Base Map', '<i class="fa fa-plus-square"></i> Add New Base Map', 'administrator', 'layers-add', 'layers_add' );
    	add_submenu_page( MF_PLUGIN_NAME, 'Base Map Groups', '<i class="fa fa-group"></i> Base Map Groups', 'administrator', 'groups', 'groups' );
    	add_submenu_page( MF_PLUGIN_NAME, 'Add New Group', '<i class="fa fa-plus-square"></i> Add New Group<hr>', 'administrator', 'groups-add', 'groups_add' );
    
    	add_submenu_page( MF_PLUGIN_NAME, 'Social Share', '<i class="fa fa-share"></i> Social Share', 'administrator', 'social-share', 'social_share' );
    	add_submenu_page( MF_PLUGIN_NAME, 'Social Share', '<i class="fa fa-cog"></i> Social Settings<hr>', 'administrator', 'social-share-settings', 'social_share_settings' );
    	add_submenu_page( MF_PLUGIN_NAME, 'Widget', '<i class="fa fa-user-plus"></i> Widget<hr>', 'administrator', 'get_started_widget', 'get_started_widget' );
    
    	add_submenu_page( MF_PLUGIN_NAME, 'Documentation', '<i class="fa fa-book"></i> Documentation', 'administrator', 'get-started', 'get_started' );
    }

    and I create a role capability named edit_maps in Members role settings

    I hope it can help !

Viewing 3 replies - 1 through 3 (of 3 total)