BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 10
    Han on #27544

    Hi Brajesh,

    is it possible to adjust this code for it to work with the BuddyBoss theme?
    when i hover over the url of the button when not logged in it shows http://messages/compose/?r=olafandringa&_wpnonce=d562b5fc57

    so it seems the siteurl is not caught when using the BuddyBoss theme.

    Regards,
    Han

    • This reply was modified 4 years, 2 months ago by Han.
  • Participant
    Level: Initiated
    Posts: 10
    Han on #27323

    Thank you Brajesh, opens up legio possibilities 🙂

  • Participant
    Level: Initiated
    Posts: 10
    Han on #26820

    Hi Brajesh, sorry! It is not one of your plugins.

  • Participant
    Level: Initiated
    Posts: 10
    Han on #26097

    hi, i am trying to achieve what Carsten tried. Could anybody help me?

    i tried implementing the script but nothing happens. when a user forgets to enter a subject the return url is without the recipient. very confusing. see video https://youtu.be/BTyOn6bMgQA

    Regards, Han

  • Participant
    Level: Initiated
    Posts: 10
    Han on #25971

    you could style the css of the error message a bit

    #buddypress div#message.error p {
        color: #32a0ff!important;
        border-radius: 0;
        background: white!important;
        border-width: 1px!important;
        border-color: #32a0ff;
        font-size: 15px;
        font-weight: bold!important;
        text-align: center;
        border: 1px solid #32a0ff!important;
    }
  • Participant
    Level: Initiated
    Posts: 10
    Han on #25955

    Hi Gilles, i used the plugin ‘XYZ PHP Code” https://wordpress.org/plugins/insert-php-code-snippet/
    This plugin will make shortcode of the snippets. Those shortcodes you can enter in the fields on the settings page of the ‘BuddyPress Profile Completion’ plugin.

    snippet made in the XYZ PHP Code’ plugin, in my case English and Dutch:

    *** profile-completion-required-fields-message

    <?php
    if ( ICL_LANGUAGE_CODE=='en' )
    	{
    echo '<a href="https://yourwebsite.com/members/' . bp_core_get_username( get_current_user_id() ) . '/profile/edit/" style="color:#32a0ff">Your text EN</a>';
    }
    elseif ( ICL_LANGUAGE_CODE=='nl' )
    {
    echo '<a href="https://yourwebsite.com/nl/members/' . bp_core_get_username( get_current_user_id() ) . '/profile/edit/" style="color:#32a0ff">Your text NL</a>';
    	}

    *** profile-completion-profile-photo-message

    <?php
    if ( ICL_LANGUAGE_CODE=='en' )
    	{			
    echo "Your text EN";
    	}
    elseif ( ICL_LANGUAGE_CODE=='nl' )
    {
    echo "Your text NL";
    
    	}

    ***profile-completion-cover-photo-message

    <?php
    if ( ICL_LANGUAGE_CODE=='en' )
    	{			
    echo "Your text EN";
    	}
    elseif ( ICL_LANGUAGE_CODE=='nl' )
    {
    echo "Your text NL";
    
    	}
  • Participant
    Level: Initiated
    Posts: 10
    Han on #21781

    hi Brajesh, just perfect!
    thank you.

    regards, Han

  • Participant
    Level: Initiated
    Posts: 10
    Han on #21572

    Hi Brajesh, if you mean by feedback message the messages that are shown when profile is not completed. Then yes. Those messages are not translated. One of them is “Please upload your profile photo”.

    I now fixed it by using php shortcode snippets.

    Best, Han