• This is a great plugin.
    I see that it is many people that are great programmers here and i just starting out so i will be happy for any replays. I want to use the plugin on a intranet and need to change it a little bit. I have tried a bunch of things, but can not figure it out.

    1) When compose a new message or replay on a message I want to delete the tool bar that say bold,

    links, code and so on. Just want the users to write text. Also want to remove text (put the code between backsticks). I have tried this code in function.php to remove the toolbar without luck:

    if (!is_admin())
    remove_action(‘gt_message_content_toolbar’, array(quicktags-toolbar_class::init(),

    ‘settings’));

    2) I also want to disable all active links i messages. I don’t want the users to add a URL that gets active to the recipient.

    Best regards
    Frode

    https://www.ads-software.com/plugins/front-end-pm/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    There is an option in backend settings page of this plugin to remove toolbar. Remember you will not find any difference if you logged in as admin.

    Thread Starter frodemortensen

    (@frodemortensen)

    Thanks. I found it ??

    When a user compose a new mail and write an URL the receiver get a mail where the URL is active and clickable. I don’t want that.

    Is it the browser, windows that do this or is it possible to change code of the front end pm to deactivate all links in body?

    Is it possible to add a code that say fep_message_body onclick=”return false” and where? I dont want to disable links anywhere else except in the mail system.

    I appropriate all help I can get ??

    Best Regards
    Frode

    Plugin Author Shamim Hasan

    (@shamim51)

    add following code in your theme’s functions.php

    remove_filter( 'fep_filter_display_message', 'make_clickable',      9 );

    Thread Starter frodemortensen

    (@frodemortensen)

    Thanks for replay ??
    I believe I explained my problem wrong. My problem is when a user GETS a mail with an url in the body, I do not want url to be active/clickable. (When I now open a mail from a user I can click the URL)

    My function.php in child theme looks like below.
    ———————————————————————-
    <?php

    function fep291_remove_announcement_settings()
    {
    if (!is_admin())
    {
    remove_action(‘fep_menu_button’, array(fep_menu_class::init(), ‘settings’));
    remove_action(‘fep_menu_button’, array(fep_announcement_class::init(), ‘menu’));
    }
    }
    add_action(‘wp_loaded’, ‘fep291_remove_announcement_settings’, 12);

    remove_filter( ‘fep_filter_display_message’, ‘make_clickable’, 9 );

    ?>
    ———————————————————————-

    Thread Starter frodemortensen

    (@frodemortensen)

    Hi

    I have tried the filter in function.php in child theme and it do not work. I’m using Internet explorer 11 and also tried it on Firefox 4.0 without success.
    My function.php is like above.

    Any suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove toolbar and all active links’ is closed to new replies.