Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #346198

    Hi there,
    how can i make it possible to access contributor’s to use the shortcode menu in tiny?

    Thanks for help

    • This topic was modified 10 years, 1 month ago by Robert. Reason: Fixed breadcrumb issue with wp-optimize
    #346915

    Hi Robert!

    Try opening up /enfold/config-templatebuilder/avia-template-builder/php/tiny-button.class.php and find lines 37 – 43.

    if ( current_user_can('edit_posts') &&  current_user_can('edit_pages') && self::$count == 0)  
    {  
    	add_filter( 'mce_external_plugins' 	, array( &$this, 'add_javascript' ) );  
    	add_filter( 'mce_buttons' 			, array( &$this, 'display_in_editor' ) );  
    	add_filter( 'admin_print_scripts' 	, array( &$this, 'create_js_globals' ) );  
    	self::$count ++;
    }  
    

    And change them to this.

    //if ( current_user_can('edit_posts') &&  current_user_can('edit_pages') && self::$count == 0)  
    //{  
    	add_filter( 'mce_external_plugins' 	, array( &$this, 'add_javascript' ) );  
    	add_filter( 'mce_buttons' 			, array( &$this, 'display_in_editor' ) );  
    	add_filter( 'admin_print_scripts' 	, array( &$this, 'create_js_globals' ) );  
    	self::$count ++;
    //}  
    

    Cheers!
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.