WordPress.org

Ready to get started?Download WordPress

Forums

TinyMCE Advanced
different button layouts for different users? (3 posts)

  1. joo-joo
    Member
    Posted 3 years ago #

    Hello,
    for me the plugin works perfectly in WP3.0.1

    But I would like to configure different button layouts for different users (different roles):
    ADMIN: "enabled everything"
    EDITOR: "no visualchars, no abbr, acronym, styleprops, forecolor,backcolor..."

    Is there any possibility to tackle it?
    Thanks a lot,
    with regards, joo

    http://wordpress.org/extend/plugins/tinymce-advanced/

  2. roberto.c
    Member
    Posted 3 years ago #

    Hi,
    don't know if you resolved, but... i give you an hint:

    use a ONEOFYOURUSERDETECTIONSCRPTS for check the current user and then apply a function like this with the filter 'mce_buttons':

    NOTE FOR FILTERS:

    mce_buttons --> row n.1
    mce_buttons_2 --> row n.2
    mce_buttons_3 --> row n.3
    mce_buttons_4 --> row n.4

    function yourfunc($buttons){
    	unset($buttons['0']);  // delete the firt button of the row
    	return $buttons;
    }
    add_filter( 'mce_buttons', 'yourfunc', 1000 ); //use 1000 because the same filter used inside the PLUGIN use 999...

    That's all folks :)

    Let me know if all is ok ;)

  3. joo-joo
    Member
    Posted 3 years ago #

    Hello,
    yes, I have done it exactly in this way.
    :-]

    Nevertheless, thanks for your reply.
    Cheers, Joo

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic