• Resolved makmerghen

    (@makmerghen)


    hello
    want to know if that possible
    I want to disable all plugin design and functions from specific page not only design parts
    is that possible thanks

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Jose

    (@giuse)

    Hi @makmerghen

    With design parts do you mean assets like stylesheets and scripts?

    Freesoul Deactivate Plugins disables the entire plugin. The disabled plugins don’t exist anymore on the page where you disable it, so, no assets, no PHP code. It’s like you disable plugins on the usual page of plugins, but it’s applied only on the pages that you chose in the settings of Freesoul Deactivate Plugins.

    I’m not sure I’ve understood your question. If not so, let me know.

    Thread Starter makmerghen

    (@makmerghen)

    let me clear in this example
    some page has shortcode of point transfer form to send points from user to other
    there are addon make the sent points are pending
    I want to use the same shortcode on 2 pages
    one normal send pending points
    the second need to disable addon of pending points on it

    I tried to disable the addons using your plugin but I found that the addon still working
    when send the points it became pending and that mean the addons function didn’t stopped

    so please advise

    • This reply was modified 3 years, 7 months ago by makmerghen.
    Plugin Author Jose

    (@giuse)

    Hi @makmerghen

    Is it possible to share the URLs of the pages where you have the shortcodes?

    Thread Starter makmerghen

    (@makmerghen)

    I used mycred points plugin + addons give pending system
    please check https://shopo.elazbagrill.com/wp/
    you will find in menu 2 pages trans and trans 2
    both contains same mycred shortcode for transfer point form to send points
    and same the addons shorcodes to show the pending points table

    I used you plugin to stop the addon only in trans 2 and the result is:-
    1- addons shortcodes of showing points table is stopped
    but
    2- the function still working when I tried to send points it gave me message tell that points is pending and the function didn’t stopped

    regards

    Plugin Author Jose

    (@giuse)

    Hi @makmerghen

    Freesoul Deactivate Plugins is doing its work. On page Trans 2 it is disabling two plugins. I suppose the plugins that you asked to disable.
    If you say I want to disable plugin A on page trans 2, and plugin A is disabled on page trans 2, for me, all work right with Freesoul Deactivate Plugins.

    It looks that the real problem is finding out what you need to disable.

    The functionality that you are trying to disable may be triggered via Ajax without reloading the page, maybe from page Trans.

    Probably the add-on that you are disabling is not responsible for the function that you are trying to disable.

    I’ve never used those plugins, so I don’t know how they work, and unfortunately, I can’t help with that.

    I suggest you open a thread on the support forum of mycred and tell them you have the possibility to selectively disabling their plugin and add-on, but you need help to know where and what you have to disable to reach your goal.

    Then, after you are sure about what you need to do, if you need help to disable some functionalities and you don’t know how to do it with Freesoul Deactivate Plugins, you can come back here and I will try to help you.

    If you want, you can also send me the link to the thread, and if they need some information about Freesoul Deactivate Plugins, I can help.

    Thread Starter makmerghen

    (@makmerghen)

    okay dear thank you I will contact them and update you when any new news
    best regards

    Thread Starter makmerghen

    (@makmerghen)

    until they answer me
    you told
    The functionality that you are trying to disable may be triggered via Ajax without reloading the page, maybe from page Trans.

    if that right at this case is there any solution or no ?
    best regards

    Plugin Author Jose

    (@giuse)

    Hi @makmerghen

    In Freesoul Deactivate Plugins => Actions you can disable plugins during Ajax activities if other plugins integrate some code as explained at https://freesoul-deactivate-plugins.com/how-deactivate-plugiins-on-specific-pages/for-developers/ in the paragraph “ADDING A CUSTOM AJAX ACTION TO THE FDP SETTINGS.”.

    For some popular plugins, the integration is already done. For the plugin Mycred Points we need to know the name of their function that manages the Ajax process, nothing else. Then by adding the code shown in ADDING A CUSTOM AJAX ACTION TO THE FDP SETTINGS, including the name of their function, you will find that action in Freesoul Deactivate Plugins => Actions.

    All this will work if the functionality you want to disable is managed via Ajax.

    First, I would wait for their answer to know how they manage this functionality.

    Plugin Author Jose

    (@giuse)

    I had a look at the code of mycred. Try to add this code to the functions.php of your child theme if any or in a functional plugin:

    add_filter( 'eos_dp_integration_action_plugins','mycred_add_fdp_integration' );
    //It adds custom ajax actions to the FDP Actions Settings Pages
    function mycred_add_fdp_integration( $args ){
        $args['mycred-actions'] = array(
            'is_active' => class_exists( 'myCRED_Core' ),
            'ajax_actions' => array(
                'mycred-send-points' => array( 'description' => __( 'Send points','my-textdomain' ) ),
                'mycred-assign-badge' => array( 'description' => __( 'Assign badge','my-textdomain' ) )
              )
        );
        return $args;
    }

    Then you will find “MYCRED ACTIONS” in Freesoul Deactivate Plugins => Actions.

    In the row “Send points” disable the add-on that should manage the pending points.

    I don’t ensure it works, because I haven’t tested it. But it may work. If it doesn’t work, I suggest waiting for their answer.

    If you can’t add the code you can directly download this little add-on: https://plugins.svn.www.ads-software.com/freesoul-deactivate-plugins/branches/fdp-mycred-integration.zip. It includes the same code.

    Let me know if it works.

    @makmerghen

    Thread Starter makmerghen

    (@makmerghen)

    thanks a lot for your serious trying to help me
    I added the code to code snippets plugin and it show mycred action in you plugin and then I disable action of mycred transfer plus addon
    but unfortunately the addon still working

    I will let you know when get response from mycred team
    thanks a lot

    Plugin Author Jose

    (@giuse)

    Hi @makmerghen

    you are welcome! So, let’s wait for their response.

    Thread Starter makmerghen

    (@makmerghen)

    hello dear I got the response from mycred team and this is it

    This filter is used to control pending transfer by stopping callback of this filter from “MyCred transfer plus” on the specific page, which might be helpful
    Filter:
    mycred_load_module
    hope it will help
    thanks

    Plugin Author Jose

    (@giuse)

    Hi @makmerghen

    without knowing your question is difficult for me to understand their answer.

    If you share the URL of your thread I can have a look and try to understand better if I can help you.

    But it looks this doesn’t help to disable an entire plugin in some situations, but to disable a hook of their plugin, that may help you to reach your final goal, but in this case without the need of Freesoul Deactivate Plugins.
    You will need to write some custom code to disable a hook of them. At least, this is what I guess from their answer.

    If my supposition is true, you should ask them how to use that filter. It’s not any more territory of Freesoul Deactivate Plugins in that case.

    Thread Starter makmerghen

    (@makmerghen)

    I asked you as you told me above
    (I suggest you open a thread on the support forum of mycred and tell them you have the possibility to selectively disabling their plugin and add-on, but you need help to know where and what you have to disable to reach your goal.)

    and this the answer they gave

    Plugin Author Jose

    (@giuse)

    I suggest you ask them to elaborate on their answer. I don’t know you, but I don’t understand anything. I can only guess what I wrote in my previous comment.

    If you want I can imagine the code you need, but this is based on fantasy and imagination and has nothing to do with Freesoul Deactivate PLugins:

    add_action( 'template_redirect',function(){
      global $post;
      if( $post && is_object( $post ) && in_array( $post->ID,array( 234,324 ) ) ){
        remove_all_filters( 'mycred_load_module' );
      }
    } );

    put it in the functions.php of your child theme if any or in a functional plugin. Replace 234, 324… with the IDs of the pages

    If it doesn’t work as it’s probable, I suggest you ask for their help.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘full deactivation’ is closed to new replies.