Replies
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=d562b5fc57so it seems the siteurl is not caught when using the BuddyBoss theme.
Regards,
Han- This reply was modified 4 years, 10 months ago by Han.
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
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; }
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"; }