• Resolved egabillat

    (@egabillat)


    Hello.
    I just bought “BuddyPress Integration” and everything is perfect.
    However, I only want to use private messages to contact the author of the ad.
    Is it possible to delete “Send Message” to have only “Send Private Message”.
    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    the contact information button you can disable by adding the code below to your theme functions.php

    
    add_action( "init", "my_init", 1000 );
    function my_init() {
        remove_action('adverts_tpl_single_bottom', 'adverts_single_contact_information');
    }
    
    Thread Starter egabillat

    (@egabillat)

    Hello.
    Thank you, but sorry, it does not work.
    The button is always visible and functional …
    I used your code in the functions.php of the child theme.

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    your code is in a correct place, disable the Contact Form module it should hide the button.

    Thread Starter egabillat

    (@egabillat)

    Hello.
    Your code is in “function.php” and the form is disabled. OK.
    I think I did not explain myself, sorry.
    But there is always a button “Show contact information” with the email and the phone.
    I want it to disappear so that it only displays the button “Send Private Message” to contact the author of the classified ad that is registered as a member, there are no visitors on my site, my Site requires visitors to register.
    Thank you for your help

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    actually, the code i pasted in the reply 2 days ago should do exactly that, that is it should hide the “Show contact information” button.

    I am testing it on my dev site right now it seems to be working properly.

    If it does not work for you maybe you have the pages cached using some caching plugin?

    Thread Starter egabillat

    (@egabillat)

    HI.
    It’s OK !!!!
    I am testing on local with MAMP.
    I quit MAMP and relaunch and the “Show contact information” button is hidden.
    Thank you, merci beaucoup.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘BuddyPress Integration’ is closed to new replies.