Search Results for 'buddypress'
-
AuthorSearch Results
-
October 14, 2018 at 12:05 am #278626
Topic: BP-Nouveau Body Class Override Fix
in forum How-to & TroubleshootingDream Catcher
ParticipantHi,
When activating the new buddypress version 3.2.0 it overrides my website bodyclass with it’s own
class=”bp-nouveau js”
Which causes a lot of conflicts for me.When buddypress plugin is disabled the problem is solved and I get back my default bodyclass
class=”post-template-default single single-post postid-1 single-format-standard”How can I solve this?
October 13, 2018 at 8:58 pm #278609In reply to: Login / Registration through social media
Prashant Singh
ParticipantHi,
Please check this plugin: https://wordpress.org/plugins/wordpress-social-login/
It is now integrated with BuddyPress that you can see in the documentation as well:
http://miled.github.io/wordpress-social-login/buddypress.html
Thanks
October 13, 2018 at 8:46 pm #278606Prashant Singh
ParticipantHi,
Please check this link: https://www.paidmembershipspro.com/update-buddypress-profile-additional-user-information-registration/
Thanks
October 13, 2018 at 2:18 pm #278562In reply to: Personalised Welcome and Activation Messages
Prashant Singh
ParticipantFor the activation and welcome messages you can find them in Email menu in dashboard. Find the one that you want to edit and add your text there and then test.
If wants to do it with code then please check this https://websistent.com/custom-buddypress-activation-email/
Same for the translation. You can change the content there in the Email menu.
Please see: https://prnt.sc/l5n76g
Thanks
October 12, 2018 at 6:31 pm #278544In reply to: upload a picture in the Activity stream
Prashant Singh
ParticipantOctober 12, 2018 at 6:23 pm #278539In reply to: Login / Registration through social media
Prashant Singh
ParticipantHi,
Please check these plugins:
Thanks
October 12, 2018 at 7:19 am #278516In reply to: update button in the Activity stream disappears
yuravw
ParticipantNo when I activite the rtMedia for WordPress, BuddyPress and bbPress plugin
October 12, 2018 at 5:33 am #278511In reply to: Classified Ads & Musician directory.
Prashant Singh
ParticipantHi,
This is not BuddyPress plugin but please see: https://wordpress.org/plugins/advanced-classifieds-and-directory-pro/
You can use this plugin https://wordpress.org/plugins/wc4bp/ to manage accounts and all through profile. But for this you have to use woocommerce to sell things.
Thanks
October 12, 2018 at 5:29 am #278510In reply to: Add link to BP Navigation
Prashant Singh
ParticipantHi,
Please try this snippet:
function ps_setup_nav() { global $bp; bp_core_new_nav_item( array( 'name' => __( 'My Account', 'buddypress' ), 'slug' => 'my-account', 'position' => 30, 'screen_function' => 'ps_account_page', ) ); } add_action( 'bp_setup_nav', 'ps_setup_nav' ); function ps_account_page() { add_action( 'bp_template_content', 'ps_account_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function ps_account_content(){ echo do_shortcode('[woocommerce_my_account]'); // If you are using WooCommerce otherwise can write your content instead of thus }Hopefully, it will help you.
Thanks
October 12, 2018 at 5:15 am #278509In reply to: Profile field groups tabs while editing profile
Prashant Singh
ParticipantWhich template pack of BuddyPress you are using? You can override edit.php and then after submit/save button add your HTML.
Thanks
October 11, 2018 at 9:53 pm #278498Topic: remove ‘last active’ status
in forum How-to & Troubleshootingdennymar
ParticipantHello, I searched existing posts but didn’t find this exact question.
On the members’ page, and on individual profile pages, it shows the time the member was last active. (example ‘active 3 minutes ago’)
I’d like to hide/turn this off but can’t figure out where or how to do this. I have turned off the activity stream but that didn’t do it.
Is there a snippet of code I need to change or add to accomplish this?I changed the theme to twenty-seventeen and it still shows up.
Wordpress version 4.9.8
BuddyPress version 3.2.0This will (temporarily) take you directly to the member ( ‘Connect’ ) page.
Thank you!
DeniseOctober 11, 2018 at 8:53 pm #278496btccvagmailcom
ParticipantI checked the script in xdebug in phpstorm, all the necessary scripts are registered, the variables have values, the only problem on the wp_footer hook is not the add_action function (‘wp_footer’, ‘gglcptch_add_scripts’); which connects scripts to the buddypress comment form page.
Thanks.Template pack nouveau displays a comment form using ajax. The function in which the necessary scripts are registered in the new template pack is called using ajax. In the old template pack legacy, the output of the comment form on the page was done without ajax. It seems to me that (js)scripts are not connected to the page for this reason. Please share your opinion on this. thank
October 11, 2018 at 7:06 pm #278494In reply to: Can’t Post in Activity Stream
elawrenc01
ParticipantI am having the same problem but I received this error in the console:
Uncaught TypeError: Cannot read property ‘strings’ of undefined
bp.Views.WhatsNew = bp.View.extend({
tagName: “textarea”,
className: “bp-suggestions”,
id: “whats-new”,
attributes: {
name: “whats-new”,
cols: “50”,
rows: “4”,
placeholder: BP_Nouveau.activity.strings.whatsnewPlaceholder, <<———
“aria-label”: BP_Nouveau.activity.strings.whatsnewLabel
},this is in the buddypress-activity-post-form.js file
Hope that helps.
October 11, 2018 at 4:26 pm #278493In reply to: Getting rid of ‘Member primary navigation’
shanebp
ModeratorDid you try just removing the calls to the nav from the template ?
Since you mention ‘Member primary navigation’, I’ll assume you are working the bp-legacy templates.
Open
buddypress\bp-templates\bp-legacy\buddypress\members\single\home.php
Remove:bp_get_displayed_user_nav();
And perhaps:do_action( 'bp_member_options_nav' );October 11, 2018 at 4:02 pm #278492Topic: Getting rid of ‘Member primary navigation’
in forum How-to & TroubleshootingJohn
ParticipantI’m trying to create an entirely custom buddypress member profile page.
Have worked out the template overrides for the header and main body (front.php, member-header.php) but can’t work out how to override the member primary navigation menu.
I know I can get rid of individual items with
bp_core_remove_nav_item( 'forums' );but what I want to do is get rid of the entire menu as it’s not required.
Anyone know how to do this?
Thanks!
October 11, 2018 at 11:12 am #278488In reply to: “Edit your bio” links to wp-admin
Bit Boy
ParticipantHi Janaa,
The best option here will be to disable the bioedit section.
You can do it by visiting Dashboard->Appearance->Customize and clicking on “BuddyPress Nouveau” panel.
Under this panel, you will see a lot of section. You will need to choose “Member Front Page” as shown hereOnce you are there, you will see 2 options to disable front page or the bio section like this
Depending on your need, please feel free to disable them.
PS:- To be honest, you don’t need bio field, you can manage user’s details from xprofiles.
Regards
BOctober 11, 2018 at 6:14 am #278469Anonymous User 16484011
InactiveHi !
Prashant,
Thanks for your valuable time but above code didn’t work me. Please see below what I do or what mistakes I do while using your code OR anything else I forgot to add in above code file.
I do below with your code ….
I just logged in to my cpenl -> go to File Manager -> open index.php file
I just copy your above code to index.php file in folder of /harihealthcare.ml/htdocs/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/common/js-templates/messages.
After saving file. I logged in as Admin role, refresh page of compose message and send demo message and after sent the delete button show and when I click it’s delete
After I logged in as a Patient role, refresh page of compose message and send demo message and after sent the delete button show and when I click it’s delete
After logged in as Doctor role, refresh page of compose message and send demo message and after sent the delete button show and when I click it’s delete
Kindly look into and tell me what I do mistake or you need any further or more details to solve this.
Regards
October 11, 2018 at 5:45 am #278463Prashant Singh
Participant<?php /** * BP Nouveau Messages main template. * * This template is used to inject the BuddyPress Backbone views * dealing with user's private messages. * * @since 3.0.0 * @version 3.1.0 */ ?> <div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div> <div class="bp-messages-feedback"></div> <div class="bp-messages-content"></div> <script type="text/html" id="tmpl-bp-messages-feedback"> <div class="bp-feedback {{data.type}}"> <span class="bp-icon" aria-hidden="true"></span> <p>{{{data.message}}}</p> </div> </script> <?php /** * This view is used to inject hooks buffer */ ?> <script type="text/html" id="tmpl-bp-messages-hook"> {{{data.extraContent}}} </script> <script type="text/html" id="tmpl-bp-messages-form"> <?php bp_nouveau_messages_hook( 'before', 'compose_content' ); ?> <label for="send-to-input"><?php esc_html_e( 'Send @Username', 'buddypress' ); ?></label> <input type="text" name="send_to" class="send-to-input" id="send-to-input" /> <label for="subject"><?php _e( 'Subject', 'buddypress' ); ?></label> <input type="text" name="subject" id="subject"/> <div id="bp-message-content"></div> <?php bp_nouveau_messages_hook( 'after', 'compose_content' ); ?> <div class="submit"> <input type="button" id="bp-messages-send" class="button bp-primary-action" value="<?php echo esc_attr_x( 'Send', 'button', 'buddypress' ); ?>"/> <input type="button" id="bp-messages-reset" class="text-button small bp-secondary-action" value="<?php echo esc_attr_x( 'Reset', 'form reset button', 'buddypress' ); ?>"/> </div> </script> <script type="text/html" id="tmpl-bp-messages-editor"> <?php // Add a temporary filter on editor buttons add_filter( 'mce_buttons', 'bp_nouveau_messages_mce_buttons', 10, 1 ); wp_editor( '', 'message_content', array( 'textarea_name' => 'message_content', 'teeny' => false, 'media_buttons' => false, 'dfw' => false, 'tinymce' => true, 'quicktags' => false, 'tabindex' => '3', 'textarea_rows' => 5, ) ); // Remove the temporary filter on editor buttons remove_filter( 'mce_buttons', 'bp_nouveau_messages_mce_buttons', 10, 1 ); ?> </script> <script type="text/html" id="tmpl-bp-messages-paginate"> <# if ( 1 !== data.page ) { #> <button id="bp-messages-prev-page"class="button messages-button"> <span class="dashicons dashicons-arrow-left"></span> <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Previous page', 'link', 'buddypress' ); ?></span> </button> <# } #> <# if ( data.total_page !== data.page ) { #> <button id="bp-messages-next-page"class="button messages-button"> <span class="dashicons dashicons-arrow-right"></span> <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Next page', 'link', 'buddypress' ); ?></span> </button> <# } #> </script> <script type="text/html" id="tmpl-bp-messages-filters"> <li class="user-messages-search" role="search" data-bp-search="{{data.box}}"> <div class="bp-search messages-search"> <?php bp_nouveau_message_search_form(); ?> </div> </li> <li class="user-messages-bulk-actions"></li> </script> <script type="text/html" id="tmpl-bp-bulk-actions"> <input type="checkbox" id="user_messages_select_all" value="1"/> <label for="user_messages_select_all"><?php esc_html_e( 'All Messages', 'buddypress' ); ?></label> <div class="bulk-actions-wrap bp-hide"> <div class="bulk-actions select-wrap"> <label for="user-messages-bulk-actions" class="bp-screen-reader-text"> <?php esc_html_e( 'Select bulk action', 'buddypress' ); ?> </label> <select id="user-messages-bulk-actions"> <# for ( i in data ) { #> <option value="{{data[i].value}}">{{data[i].label}}</option> <# } #> </select> <span class="select-arrow" aria-hidden="true"></span> </div> <button class="messages-button bulk-apply bp-tooltip" type="submit" data-bp-tooltip="<?php echo esc_attr_x( 'Apply', 'button', 'buddypress' ); ?>"> <span class="dashicons dashicons-yes" aria-hidden="true"></span> <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Apply', 'button', 'buddypress' ); ?></span> </button> </div> </script> <script type="text/html" id="tmpl-bp-messages-thread"> <div class="thread-cb"> <input class="message-check" type="checkbox" name="message_ids[]" id="bp-message-thread-{{data.id}}" value="{{data.id}}"> <label for="bp-message-thread-{{data.id}}" class="bp-screen-reader-text"><?php esc_html_e( 'Select message:', 'buddypress' ); ?> {{data.subject}}</label> </div> <# if ( ! data.recipientsCount ) { #> <div class="thread-from"> <a class="user-link" href="{{data.sender_link}}"> <img class="avatar" src="{{data.sender_avatar}}" alt="" /> <span class="bp-screen-reader-text"><?php esc_html_e( 'From:', 'buddypress' ); ?></span> <span class="user-name">{{data.sender_name}}</span> </a> </div> <# } else { var recipient = _.first( data.recipients ); #> <div class="thread-to"> <a class="user-link" href="{{recipient.user_link}}"> <img class="avatar" src="{{recipient.avatar}}" alt="" /> <span class="bp-screen-reader-text"><?php esc_html_e( 'To:', 'buddypress' ); ?></span> <span class="user-name">{{recipient.user_name}}</span> </a> <# if ( data.toOthers ) { #> <span class="num-recipients">{{data.toOthers}}</span> <# } #> </div> <# } #> <div class="thread-content" data-thread-id="{{data.id}}"> <div class="thread-subject"> <span class="thread-count">({{data.count}})</span> <a class="subject" href="../view/{{data.id}}/">{{data.subject}}</a> </div> <p class="excerpt">{{data.excerpt}}</p> </div> <div class="thread-date"> <time datetime="{{data.date.toISOString()}}">{{data.display_date}}</time> </div> </script> <script type="text/html" id="tmpl-bp-messages-preview"> <# if ( undefined !== data.content ) { #> <h2 class="message-title preview-thread-title"><?php esc_html_e( 'Active conversation:', 'buddypress' ); ?><span class="messages-title">{{{data.subject}}}</span></h2> <div class="preview-content"> <header class="preview-pane-header"> <# if ( undefined !== data.recipients ) { #> <dl class="thread-participants"> <dt><?php esc_html_e( 'Participants:', 'buddypress' ); ?></dt> <dd> <ul class="participants-list"> <# for ( i in data.recipients ) { #> <li><a href="{{data.recipients[i].user_link}}" class="bp-tooltip" data-bp-tooltip="{{data.recipients[i].user_name}}"><img class="avatar mini" src="{{data.recipients[i].avatar}}" alt="{{data.recipients[i].user_name}}" /></a></li> <# } #> </ul> </dd> </dl> <# } #> <div class="actions"> <?php if(current_user_can('manage_options')){ ?> <button type="button" class="message-action-delete bp-tooltip bp-icons" data-bp-action="delete" data-bp-tooltip="<?php esc_attr_e( 'Delete conversation.', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Delete conversation.', 'buddypress' ); ?></span> </button> <?php }?> <# if ( undefined !== data.star_link ) { #> <# if ( false !== data.is_starred ) { #> <a role="button" class="message-action-unstar bp-tooltip bp-icons" href="{{data.star_link}}" data-bp-action="unstar" aria-pressed="true" data-bp-tooltip="<?php esc_attr_e( 'Unstar Conversation', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Unstar Conversation', 'buddypress' ); ?></span> </a> <# } else { #> <a role="button" class="message-action-star bp-tooltip bp-icons" href="{{data.star_link}}" data-bp-action="star" aria-pressed="false" data-bp-tooltip="<?php esc_attr_e( 'Star Conversation', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Star Conversation', 'buddypress' ); ?></span> </a> <# } #> <# } #> <a href="../view/{{data.id}}/" class="message-action-view bp-tooltip bp-icons" data-bp-action="view" data-bp-tooltip="<?php esc_attr_e( 'View full conversation and reply.', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'View full conversation and reply.', 'buddypress' ); ?></span> </a> <# if ( data.threadOptions ) { #> <span class="bp-messages-hook thread-options"> {{{data.threadOptions}}} </span> <# } #> </div> </header> <div class='preview-message'> {{{data.content}}} </div> <# if ( data.inboxListItem ) { #> <table class="bp-messages-hook inbox-list-item"> <tbody> <tr>{{{data.inboxListItem}}}</tr> </tbody> </table> <# } #> </div> <# } #> </script> <script type="text/html" id="tmpl-bp-messages-single-header"> <h2 id="message-subject" class="message-title single-thread-title">{{{data.subject}}}</h2> <header class="single-message-thread-header"> <# if ( undefined !== data.recipients ) { #> <dl class="thread-participants"> <dt><?php esc_html_e( 'Participants:', 'buddypress' ); ?></dt> <dd> <ul class="participants-list"> <# for ( i in data.recipients ) { #> <li><a href="{{data.recipients[i].user_link}}" class="bp-tooltip" data-bp-tooltip="{{data.recipients[i].user_name}}"><img class="avatar mini" src="{{data.recipients[i].avatar}}" alt="{{data.recipients[i].user_name}}" /></a></li> <# } #> </ul> </dd> </dl> <# } #> <div class="actions"> <?php if(current_user_can('manage_options')){ ?> <button type="button" class="message-action-delete bp-tooltip bp-icons" data-bp-action="delete" data-bp-tooltip="<?php esc_attr_e( 'Delete conversation.', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Delete conversation.', 'buddypress' ); ?></span> </button> <?php }?> </div> </header> </script> <script type="text/html" id="tmpl-bp-messages-single-list"> <div class="message-metadata"> <# if ( data.beforeMeta ) { #> <div class="bp-messages-hook before-message-meta">{{{data.beforeMeta}}}</div> <# } #> <a href="{{data.sender_link}}" class="user-link"> <img class="avatar" src="{{data.sender_avatar}}" alt="" /> <strong>{{data.sender_name}}</strong> </a> <time datetime="{{data.date.toISOString()}}" class="activity">{{data.display_date}}</time> <div class="actions"> <# if ( undefined !== data.star_link ) { #> <button type="button" class="message-action-unstar bp-tooltip bp-icons <# if ( false === data.is_starred ) { #>bp-hide<# } #>" data-bp-star-link="{{data.star_link}}" data-bp-action="unstar" data-bp-tooltip="<?php esc_attr_e( 'Unstar Message', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Unstar Message', 'buddypress' ); ?></span> </button> <button type="button" class="message-action-star bp-tooltip bp-icons <# if ( false !== data.is_starred ) { #>bp-hide<# } #>" data-bp-star-link="{{data.star_link}}" data-bp-action="star" data-bp-tooltip="<?php esc_attr_e( 'Star Message', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Star Message', 'buddypress' ); ?></span> </button> <# } #> </div> <# if ( data.afterMeta ) { #> <div class="bp-messages-hook after-message-meta">{{{data.afterMeta}}}</div> <# } #> </div> <# if ( data.beforeContent ) { #> <div class="bp-messages-hook before-message-content">{{{data.beforeContent}}}</div> <# } #> <div class="message-content">{{{data.content}}}</div> <# if ( data.afterContent ) { #> <div class="bp-messages-hook after-message-content">{{{data.afterContent}}}</div> <# } #> </script> <script type="text/html" id="tmpl-bp-messages-single"> <?php bp_nouveau_messages_hook( 'before', 'thread_content' ); ?> <div id="bp-message-thread-header" class="message-thread-header"></div> <?php bp_nouveau_messages_hook( 'before', 'thread_list' ); ?> <ul id="bp-message-thread-list"></ul> <?php bp_nouveau_messages_hook( 'after', 'thread_list' ); ?> <?php bp_nouveau_messages_hook( 'before', 'thread_reply' ); ?> <form id="send-reply" class="standard-form send-reply"> <div class="message-box"> <div class="message-metadata"> <?php bp_nouveau_messages_hook( 'before', 'reply_meta' ); ?> <div class="avatar-box"> <?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?> <strong><?php esc_html_e( 'Send a Reply', 'buddypress' ); ?></strong> </div> <?php bp_nouveau_messages_hook( 'after', 'reply_meta' ); ?> </div><!-- .message-metadata --> <div class="message-content"> <?php bp_nouveau_messages_hook( 'before', 'reply_box' ); ?> <label for="message_content" class="bp-screen-reader-text"><?php _e( 'Reply to Message', 'buddypress' ); ?></label> <div id="bp-message-content"></div> <?php bp_nouveau_messages_hook( 'after', 'reply_box' ); ?> <div class="submit"> <input type="submit" name="send" value="<?php echo esc_attr_x( 'Send Reply', 'button', 'buddypress' ); ?>" id="send_reply_button"/> </div> </div><!-- .message-content --> </div><!-- .message-box --> </form> <?php bp_nouveau_messages_hook( 'after', 'thread_reply' ); ?> <?php bp_nouveau_messages_hook( 'after', 'thread_content' ); ?> </script>Please use this file.
Thanks
October 11, 2018 at 5:32 am #278462In reply to: Registration notice, manual activation
Prashant Singh
ParticipantHi,
Please create a file bp-custom.php in wp-content/plugins folder and then put it there. If you want an easy solution then install this https://wordpress.org/plugins/code-snippets/ plugin and then add a snippet and paste this code there and save it.
For loco if you have already installed it then go to the menu loco in dashboard and then plugins->buddypress-> there you have to create a new language file and select language there. Once it is created search for the word in this file. You will find it.
You can see the process in loco plugin’s documentation itself https://localise.biz/wordpress/plugin/beginners
October 11, 2018 at 4:35 am #278460Anonymous User 16484011
InactiveHey !
It’s not working or I can’t do properly. Can you please see my file and make a changes to delete only administrator users only show delete private message button ?
<?php /** * BP Nouveau Messages main template. * * This template is used to inject the BuddyPress Backbone views * dealing with user's private messages. * * @since 3.0.0 * @version 3.1.0 */ ?> <div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div> <div class="bp-messages-feedback"></div> <div class="bp-messages-content"></div> <script type="text/html" id="tmpl-bp-messages-feedback"> <div class="bp-feedback {{data.type}}"> <span class="bp-icon" aria-hidden="true"></span> <p>{{{data.message}}}</p> </div> </script> <?php /** * This view is used to inject hooks buffer */ ?> <script type="text/html" id="tmpl-bp-messages-hook"> {{{data.extraContent}}} </script> <script type="text/html" id="tmpl-bp-messages-form"> <?php bp_nouveau_messages_hook( 'before', 'compose_content' ); ?> <label for="send-to-input"><?php esc_html_e( 'Send @Username', 'buddypress' ); ?></label> <input type="text" name="send_to" class="send-to-input" id="send-to-input" /> <label for="subject"><?php _e( 'Subject', 'buddypress' ); ?></label> <input type="text" name="subject" id="subject"/> <div id="bp-message-content"></div> <?php bp_nouveau_messages_hook( 'after', 'compose_content' ); ?> <div class="submit"> <input type="button" id="bp-messages-send" class="button bp-primary-action" value="<?php echo esc_attr_x( 'Send', 'button', 'buddypress' ); ?>"/> <input type="button" id="bp-messages-reset" class="text-button small bp-secondary-action" value="<?php echo esc_attr_x( 'Reset', 'form reset button', 'buddypress' ); ?>"/> </div> </script> <script type="text/html" id="tmpl-bp-messages-editor"> <?php // Add a temporary filter on editor buttons add_filter( 'mce_buttons', 'bp_nouveau_messages_mce_buttons', 10, 1 ); wp_editor( '', 'message_content', array( 'textarea_name' => 'message_content', 'teeny' => false, 'media_buttons' => false, 'dfw' => false, 'tinymce' => true, 'quicktags' => false, 'tabindex' => '3', 'textarea_rows' => 5, ) ); // Remove the temporary filter on editor buttons remove_filter( 'mce_buttons', 'bp_nouveau_messages_mce_buttons', 10, 1 ); ?> </script> <script type="text/html" id="tmpl-bp-messages-paginate"> <# if ( 1 !== data.page ) { #> <button id="bp-messages-prev-page"class="button messages-button"> <span class="dashicons dashicons-arrow-left"></span> <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Previous page', 'link', 'buddypress' ); ?></span> </button> <# } #> <# if ( data.total_page !== data.page ) { #> <button id="bp-messages-next-page"class="button messages-button"> <span class="dashicons dashicons-arrow-right"></span> <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Next page', 'link', 'buddypress' ); ?></span> </button> <# } #> </script> <script type="text/html" id="tmpl-bp-messages-filters"> <li class="user-messages-search" role="search" data-bp-search="{{data.box}}"> <div class="bp-search messages-search"> <?php bp_nouveau_message_search_form(); ?> </div> </li> <li class="user-messages-bulk-actions"></li> </script> <script type="text/html" id="tmpl-bp-bulk-actions"> <input type="checkbox" id="user_messages_select_all" value="1"/> <label for="user_messages_select_all"><?php esc_html_e( 'All Messages', 'buddypress' ); ?></label> <div class="bulk-actions-wrap bp-hide"> <div class="bulk-actions select-wrap"> <label for="user-messages-bulk-actions" class="bp-screen-reader-text"> <?php esc_html_e( 'Select bulk action', 'buddypress' ); ?> </label> <select id="user-messages-bulk-actions"> <# for ( i in data ) { #> <option value="{{data[i].value}}">{{data[i].label}}</option> <# } #> </select> <span class="select-arrow" aria-hidden="true"></span> </div> <button class="messages-button bulk-apply bp-tooltip" type="submit" data-bp-tooltip="<?php echo esc_attr_x( 'Apply', 'button', 'buddypress' ); ?>"> <span class="dashicons dashicons-yes" aria-hidden="true"></span> <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Apply', 'button', 'buddypress' ); ?></span> </button> </div> </script> <script type="text/html" id="tmpl-bp-messages-thread"> <div class="thread-cb"> <input class="message-check" type="checkbox" name="message_ids[]" id="bp-message-thread-{{data.id}}" value="{{data.id}}"> <label for="bp-message-thread-{{data.id}}" class="bp-screen-reader-text"><?php esc_html_e( 'Select message:', 'buddypress' ); ?> {{data.subject}}</label> </div> <# if ( ! data.recipientsCount ) { #> <div class="thread-from"> <a class="user-link" href="{{data.sender_link}}"> <img class="avatar" src="{{data.sender_avatar}}" alt="" /> <span class="bp-screen-reader-text"><?php esc_html_e( 'From:', 'buddypress' ); ?></span> <span class="user-name">{{data.sender_name}}</span> </a> </div> <# } else { var recipient = _.first( data.recipients ); #> <div class="thread-to"> <a class="user-link" href="{{recipient.user_link}}"> <img class="avatar" src="{{recipient.avatar}}" alt="" /> <span class="bp-screen-reader-text"><?php esc_html_e( 'To:', 'buddypress' ); ?></span> <span class="user-name">{{recipient.user_name}}</span> </a> <# if ( data.toOthers ) { #> <span class="num-recipients">{{data.toOthers}}</span> <# } #> </div> <# } #> <div class="thread-content" data-thread-id="{{data.id}}"> <div class="thread-subject"> <span class="thread-count">({{data.count}})</span> <a class="subject" href="../view/{{data.id}}/">{{data.subject}}</a> </div> <p class="excerpt">{{data.excerpt}}</p> </div> <div class="thread-date"> <time datetime="{{data.date.toISOString()}}">{{data.display_date}}</time> </div> </script> <script type="text/html" id="tmpl-bp-messages-preview"> <# if ( undefined !== data.content ) { #> <h2 class="message-title preview-thread-title"><?php esc_html_e( 'Active conversation:', 'buddypress' ); ?><span class="messages-title">{{{data.subject}}}</span></h2> <div class="preview-content"> <header class="preview-pane-header"> <# if ( undefined !== data.recipients ) { #> <dl class="thread-participants"> <dt><?php esc_html_e( 'Participants:', 'buddypress' ); ?></dt> <dd> <ul class="participants-list"> <# for ( i in data.recipients ) { #> <li><a href="{{data.recipients[i].user_link}}" class="bp-tooltip" data-bp-tooltip="{{data.recipients[i].user_name}}"><img class="avatar mini" src="{{data.recipients[i].avatar}}" alt="{{data.recipients[i].user_name}}" /></a></li> <# } #> </ul> </dd> </dl> <# } #> <div class="actions"> <button type="button" class="message-action-delete bp-tooltip bp-icons" data-bp-action="delete" data-bp-tooltip="<?php esc_attr_e( 'Delete conversation.', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Delete conversation.', 'buddypress' ); ?></span> </button> <# if ( undefined !== data.star_link ) { #> <# if ( false !== data.is_starred ) { #> <a role="button" class="message-action-unstar bp-tooltip bp-icons" href="{{data.star_link}}" data-bp-action="unstar" aria-pressed="true" data-bp-tooltip="<?php esc_attr_e( 'Unstar Conversation', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Unstar Conversation', 'buddypress' ); ?></span> </a> <# } else { #> <a role="button" class="message-action-star bp-tooltip bp-icons" href="{{data.star_link}}" data-bp-action="star" aria-pressed="false" data-bp-tooltip="<?php esc_attr_e( 'Star Conversation', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Star Conversation', 'buddypress' ); ?></span> </a> <# } #> <# } #> <a href="../view/{{data.id}}/" class="message-action-view bp-tooltip bp-icons" data-bp-action="view" data-bp-tooltip="<?php esc_attr_e( 'View full conversation and reply.', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'View full conversation and reply.', 'buddypress' ); ?></span> </a> <# if ( data.threadOptions ) { #> <span class="bp-messages-hook thread-options"> {{{data.threadOptions}}} </span> <# } #> </div> </header> <div class='preview-message'> {{{data.content}}} </div> <# if ( data.inboxListItem ) { #> <table class="bp-messages-hook inbox-list-item"> <tbody> <tr>{{{data.inboxListItem}}}</tr> </tbody> </table> <# } #> </div> <# } #> </script> <script type="text/html" id="tmpl-bp-messages-single-header"> <h2 id="message-subject" class="message-title single-thread-title">{{{data.subject}}}</h2> <header class="single-message-thread-header"> <# if ( undefined !== data.recipients ) { #> <dl class="thread-participants"> <dt><?php esc_html_e( 'Participants:', 'buddypress' ); ?></dt> <dd> <ul class="participants-list"> <# for ( i in data.recipients ) { #> <li><a href="{{data.recipients[i].user_link}}" class="bp-tooltip" data-bp-tooltip="{{data.recipients[i].user_name}}"><img class="avatar mini" src="{{data.recipients[i].avatar}}" alt="{{data.recipients[i].user_name}}" /></a></li> <# } #> </ul> </dd> </dl> <# } #> <?php if(current_user_can('manage_options')){ ?> <button type="button" class="message-action-delete bp-tooltip bp-icons" data-bp-action="delete" data-bp-tooltip="<?php esc_attr_e( 'Delete conversation.', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Delete conversation.', 'buddypress' ); ?></span> </button> <?php }?> </div> </header> </script> <script type="text/html" id="tmpl-bp-messages-single-list"> <div class="message-metadata"> <# if ( data.beforeMeta ) { #> <div class="bp-messages-hook before-message-meta">{{{data.beforeMeta}}}</div> <# } #> <a href="{{data.sender_link}}" class="user-link"> <img class="avatar" src="{{data.sender_avatar}}" alt="" /> <strong>{{data.sender_name}}</strong> </a> <time datetime="{{data.date.toISOString()}}" class="activity">{{data.display_date}}</time> <div class="actions"> <# if ( undefined !== data.star_link ) { #> <button type="button" class="message-action-unstar bp-tooltip bp-icons <# if ( false === data.is_starred ) { #>bp-hide<# } #>" data-bp-star-link="{{data.star_link}}" data-bp-action="unstar" data-bp-tooltip="<?php esc_attr_e( 'Unstar Message', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Unstar Message', 'buddypress' ); ?></span> </button> <button type="button" class="message-action-star bp-tooltip bp-icons <# if ( false !== data.is_starred ) { #>bp-hide<# } #>" data-bp-star-link="{{data.star_link}}" data-bp-action="star" data-bp-tooltip="<?php esc_attr_e( 'Star Message', 'buddypress' ); ?>"> <span class="bp-screen-reader-text"><?php esc_html_e( 'Star Message', 'buddypress' ); ?></span> </button> <# } #> </div> <# if ( data.afterMeta ) { #> <div class="bp-messages-hook after-message-meta">{{{data.afterMeta}}}</div> <# } #> </div> <# if ( data.beforeContent ) { #> <div class="bp-messages-hook before-message-content">{{{data.beforeContent}}}</div> <# } #> <div class="message-content">{{{data.content}}}</div> <# if ( data.afterContent ) { #> <div class="bp-messages-hook after-message-content">{{{data.afterContent}}}</div> <# } #> </script> <script type="text/html" id="tmpl-bp-messages-single"> <?php bp_nouveau_messages_hook( 'before', 'thread_content' ); ?> <div id="bp-message-thread-header" class="message-thread-header"></div> <?php bp_nouveau_messages_hook( 'before', 'thread_list' ); ?> <ul id="bp-message-thread-list"></ul> <?php bp_nouveau_messages_hook( 'after', 'thread_list' ); ?> <?php bp_nouveau_messages_hook( 'before', 'thread_reply' ); ?> <form id="send-reply" class="standard-form send-reply"> <div class="message-box"> <div class="message-metadata"> <?php bp_nouveau_messages_hook( 'before', 'reply_meta' ); ?> <div class="avatar-box"> <?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?> <strong><?php esc_html_e( 'Send a Reply', 'buddypress' ); ?></strong> </div> <?php bp_nouveau_messages_hook( 'after', 'reply_meta' ); ?> </div><!-- .message-metadata --> <div class="message-content"> <?php bp_nouveau_messages_hook( 'before', 'reply_box' ); ?> <label for="message_content" class="bp-screen-reader-text"><?php _e( 'Reply to Message', 'buddypress' ); ?></label> <div id="bp-message-content"></div> <?php bp_nouveau_messages_hook( 'after', 'reply_box' ); ?> <div class="submit"> <input type="submit" name="send" value="<?php echo esc_attr_x( 'Send Reply', 'button', 'buddypress' ); ?>" id="send_reply_button"/> </div> </div><!-- .message-content --> </div><!-- .message-box --> </form> <?php bp_nouveau_messages_hook( 'after', 'thread_reply' ); ?> <?php bp_nouveau_messages_hook( 'after', 'thread_content' ); ?> </script>Thanks
October 11, 2018 at 1:37 am #278457In reply to: Registration notice, manual activation
micheleestes
Participant@prashantvatsh Thanks very much. I am not a programmer so have a simple question – in which file does this code go, and where in there? Am I correct in thinking this will require all registration requests to be activated manually by me? Since my post I have learned that someone was able to bypass activation and join the site by using an existing WP account at login. Is there a way to remove that option or will this code be best?
Can you provide more context about how to find the text that uses the Loco Translate plugin, and how this plugin relates to the dynamic BuddyPress registration text? I appreciate your help. Thanks.
October 10, 2018 at 8:14 pm #278456Prashant Singh
ParticipantHi,
Please check this plugin https://wordpress.org/plugins/loco-translate/
Using this plugin just go to it’s plugins menu and open BuddyPress there and then in your prefered language file find the word and replace it with your text.
Hopefully, it will help you.
Thanks
October 10, 2018 at 8:09 pm #278455In reply to: Profile field groups tabs while editing profile
Prashant Singh
ParticipantHi,
No need to edit any template. I have created a snippet for you. Please paste the following snippet in your child theme’s functions.php file:
function ps_redirect_next_group() { if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) { return; } $group_id = bp_get_current_profile_group_id()+1; if ( bp_get_current_profile_group_id()==4 ) { bp_core_redirect(bp_displayed_user_domain()."profile/"); }else{ bp_core_redirect(bp_displayed_user_domain()."profile/edit/group/$group_id/"); } } add_action( 'xprofile_data_after_save', 'ps_redirect_next_group' ); add_filter( 'gettext', 'ps_change_save_button_text', 20, 3 ); function ps_change_save_button_text( $translated_text, $text, $domain ) { if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) { return $translated_text; } switch ( $translated_text ) { case 'Save Changes' : $translated_text = __( 'Save and Continue', $domain ); break; } return $translated_text; }If there is no child theme then create a file bp-custom.php in wp-content/plugins/ folder and paste this there. https://codex.buddypress.org/themes/bp-custom-php/
If not possible to create bp-custom.php file then third and easy solution is to install the plugin code snippets https://wordpress.org/plugins/code-snippets/ and there add a snippet and paste the code and save.
Hopefully, it will help you.
Thanks
October 10, 2018 at 7:12 pm #278453In reply to: Is integration with MailPoet possible?
Prashant Singh
ParticipantHi,
This is the plugin https://wordpress.org/plugins/wysija-newsletters/ that you can use but will need customization to restrict as per check box value.
https://www.mailpoet.com/buddypress-case-study/ Also try to consult with mailpoet once.
Thanks
October 10, 2018 at 6:47 pm #278452In reply to: Can Buddypress build a community like this one?
Prashant Singh
ParticipantIn particular,I’d like to distinguish between organizations and individuals.
The organizations apply to build communities, and organizations can post blogs in established communities to answer questions, free and paid features.
The data discussed by members can be saved and can be provided to scientific institutions for analysis.
Hi,
BuddyPress have member type features that you can use to distinguish between members. Please check this plugin https://buddydev.com/plugins/buddypress-member-types-pro/ and then can restrict group creation and blogs by member type organization.
Also use this plugin https://wordpress.org/plugins/bbpress/ for forum creation where members can come and reply on topics.
The topics and replies and activity post in buddypress are stored in the database.
Please check all of them and then can choose a BuddyPress based theme https://colorlib.com/wp/best-buddypress-wordpress-themes/ and it will have most of things inbuilt.
Thanks
-
AuthorSearch Results