Search Results for 'buddypress'
-
AuthorSearch Results
-
October 10, 2018 at 5:59 pm #278446
Prashant Singh
ParticipantHi,
<?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 }?>You have to wrap the code like this. Just find the code that I put in condition and replace that with my code.
You can search for class=”actions” and there you will find the code.
Thanks
October 10, 2018 at 11:43 am #278437In reply to: Why ajax not working on profile tabs?
inderpreet2018
ParticipantI didn’t modified any template or file from Buddypress. I am using Divi theme and memberPress plugin for maintaining the members. Also used “MemberPress + BuddyPress Integration” plugin to integrates MemberPress with BuddyPress.
Is any one from above creating issue for tabs?
October 10, 2018 at 10:18 am #278434In reply to: Why ajax not working on profile tabs?
Henry Wright
ModeratorThe script may use certain IDs or classes in the DOM and if you have modified the template then the AJAX request may not work as expected. Try again using a fresh copy of BuddyPress to see if the problem continues to happen
October 10, 2018 at 10:00 am #278432Bit Boy
ParticipantHi,
How did you disable the option? Are you using css to do it?There are two ways to do it
1. Using css
2. editing template file(register.php and keeping a copy in your theme’s buddypress/members directory)I will prefer the first approach as it will not be much work on a site admin’s part.
.register-page .signup-form .editfield .field-visibility-settings, .buddypress-wrap .standard-form .field-visibility-settings-header { display:none; }Please visit Dashboard->Appearance->Customize menu then open “Additional Styles” and add those lines.
Does that work?
Best Regards
BOctober 10, 2018 at 6:59 am #278424Anonymous User 16484011
InactiveHi ! Prashant !
Thanks for your time. But I am zero in buddypress & coding. So, As per your path I find the index file but I can’t get where can I use your above code and where can I add role name administrator ? I put my file here ! Can you please edit it for me ?
<?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> <# } #> <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> </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 10, 2018 at 6:42 am #278423In reply to: Private Blogs
raghav2417
ParticipantHi Its a buddypress members dashboard, Where in one of the tabs I have added a page that allows members to write a post, Now these posts are saved as private and I want only the member writing that post to be able to view it, no other members of the website should be able to view it, However when we click on the view post button, It shows all the posts even though they are private but still it shows.
I want the member clicking on view your post should see only posts written by himself/herself.
Below is a link to the video describing the issue.
https://drive.google.com/file/d/1BUNazNHAC7b_3yvXs79GmLHSwSG3uXJU/view?usp=sharingThanks alot
October 9, 2018 at 8:44 pm #278414In reply to: Links in members-loop for Profile Field
Prashant Singh
ParticipantHi,
I found that those links are generated from the plugin Custom Profile Filters For BuddyPress and it only works on profile. So to get the same data with the link on members-loop.php we need to print fields like this:
$data = bp_get_member_profile_data( 'field=Expertise' ); echo '<a href="' . bp_get_members_directory_permalink() . '?s='.$data.'">'.$data.'</a>';Hopefully, this will help you.
Thanks
October 9, 2018 at 6:14 pm #278390Prashant Singh
ParticipantHi,
Please try to find the template named index.php in bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php and there you will find the HTML. You just need to put that button code in condition of yours. That is if user role is this then only show otherwise not.
You can try:
if(current_user_can('manage_options')){ ?> // Button HTML Code here <?php }?>
One last thing, if you have child theme then try to override the file there and then change otherwise on next update changes will be lost.Thanks
October 9, 2018 at 6:02 pm #278387In reply to: Translate the emails
Prashant Singh
ParticipantHi,
Please check this: https://buddypress.org/support/topic/translation-email/
Just need to go to Dashboard > Emails and customize any email.
Thanks
October 9, 2018 at 5:53 pm #278385In reply to: Can not react – icons
Prashant Singh
ParticipantIn these situations most probably plugins are getting conflicted and that’s why this issue is coming.
I have just tested with BuddyPress and twentyseventeen theme and it’s working fine: https://screencast-o-matic.com/watch/cF6Qb7YY6ZPlease try to disable plugins one by one and check if the issue remains same or gone.
Thanks
October 9, 2018 at 9:59 am #278369In reply to: Activity/updates
Prashant Singh
ParticipantCreate a file named bp-custom.php in the plugins folder and then put this code there. For reference: https://codex.buddypress.org/themes/bp-custom-php
If not able to do it then the easiest way is to install the plugin Code Snippets https://wordpress.org/plugins/code-snippets/ and add a new snippet there, then paste this code.
Thanks
October 9, 2018 at 8:33 am #278363In reply to: Default Landing group while editing Member profile
Prashant Singh
ParticipantHi,
Please check this thread: https://buddypress.org/support/topic/how-to-hide-base-group-in-the-edit-profile-panel/
Thanks
October 9, 2018 at 7:45 am #278358In reply to: Links in members-loop for Profile Field
israel4lincelot
ParticipantHi Prashant, I should have maybe started with listing following information:
1. Which version of WordPress are you running?
WordPress 4.9.82. Did you install WordPress as a directory or subdomain install?
Subdomain4. Did you upgrade from a previous version of WordPress? If so, from which version?
I installed the latest.5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
Yes6. Which version of BP are you running?
Latest Version 3.2.07. Did you upgraded from a previous version of BP? If so, from which version?
No8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
BuddyDrive, Custom Profile Filters for BuddyPress, Gravity Forms, K Elements, Really Simple SSL, rtMedia for WordPress, BuddyPress and bbPress, Slider Revolution, What The File,
WPBakery Page Builder9. Are you using the standard WordPress theme or customized theme?
Customized.10. Which theme do you use ?
Kleo Theme from seventhqueen11. Have you modified the core files in any way?
Yes I have, but always in the child-theme.12. Do you have any custom functions in bp-custom.php?
Yes
<?php
// hacks and mods will go here
define( 'BP_DEFAULT_COMPONENT', 'profile' );?>
15. Which company provides your hosting?
CompbellSo to answer your other questions, I added a new Profile Field with checkboxes. Indeed you have to select it and that’s why I can’t just wrap it in an anchor tag because I need the fields to be clickable separately.
In Profile fields the Expertises are individually links. In my Members page all the Expertises ar put in a Paragraph. But I’d like them to be individual links such as in Profile page.
See Screencast here: https://screencast-o-matic.com/watch/cF6QiCYqw6
Thx!
October 9, 2018 at 6:36 am #278355stuartbennett2012
ParticipantHi there
We want optimizepress to control look and feel of the site and buddypress to provide the online community aspect
But it’s unclear how to use buddypress
Lastly access to the community would be provided by Infusionsoft tags
So I need to know how to make everything work together
October 9, 2018 at 4:52 am #278353Bit Boy
ParticipantHello,
You can change that by defining a constant in your bp-custom.phpdefine( 'BP_FRIENDS_SLUG', 'colleagues');And yes, you can change slug for most of the component without affecting the functionality.
You may find the details at the bottom of this page for changing other slug.
Best Regards
BOctober 9, 2018 at 3:30 am #278347Anonymous User 16484011
InactiveHi ! Prashant,
Heads off you man for forwarding me or suggesting me below article for my above mentioned problem.
Article : Link
By reading of above articles one of answer “Hi It is all resolved now. Turns out the Jetpack lazy loading option was on and causing a mad headache.”
In above answer has the word “lazy loading” strike in my mind that in my Flatsome theme’s advanced options has lazy loading sub menu.
I already checked “LAZY LOAD IMAGES Enable lazy loading for images. Use with caution! Disable if you have plugin comp ability problems.” and for that my above problem came.
So, I just unchecked it and my problem solved.
Thanks ! for your time.
October 9, 2018 at 1:32 am #278346In reply to: Activity Feed showing items twice
josh.grisdale
ParticipantBuddyBoss claimed it was normal behavior for BuddyPress and I gave up…
October 8, 2018 at 11:33 pm #278343In reply to: Activation Email
Prashant Singh
ParticipantI think now we have to just debug using these resources: https://premium.wpmudev.org/forums/topic/buddypress-does-not-send-activation-email
October 8, 2018 at 7:23 pm #278333Prashant Singh
ParticipantHi,
I am not sure what kind of compatibility you want but I can see this https://memberium.com/tag/buddypress/ and I guess people are already using BP with Infusionsoft.
Thanks
October 8, 2018 at 6:52 pm #278330In reply to: Issues with uploading profile pictures
Prashant Singh
ParticipantOk, please do the same with plugins now. Disable them one by one, except BuddyPress, to check if the issue remains same or not. Just go like – disable one plugin and check if the issue is there or not. If yes then re-activate the plugin and if not then this is the culprit and please report to plugin developers then.
Thanks
October 8, 2018 at 5:38 pm #278322In reply to: Links in members-loop for Profile Field
Prashant Singh
ParticipantHi,
May I know which theme you are using and is it a BuddyPress theme?
How you are entering expertise there? Is it any CPT or anything that you just have to select?
Also if can send a screencast will be better to explain.
I did a test but I put my value in anchor tag so it is coming a s a link everywhere. Please see: https://screencast-o-matic.com/watch/cF6jbAYFaL
But I think in your case situation is different. Please answer all and let’s debug it.
Thanks
October 8, 2018 at 11:54 am #278318Anonymous User 16484011
InactiveYes I have the userid, email-id and anything you want to put in your code which is use to send buddypress member to send a message. You use anything in your code you are comfortable with it.
Thanks
October 8, 2018 at 7:58 am #278305Anonymous User 16484011
InactiveHi ! Sorry for late reply.
But I already do the same before posting a question or help here. I disabled my all plugins one by one and checked. I also disable my all plugins and only active buddypress and than try but there is also not slove.
October 7, 2018 at 7:38 pm #278293In reply to: Put pages behind BuddyPress login
Prashant Singh
ParticipantDoes the Restrict Content plugin integrate with BuddyPress registration or require a separate registration?
It works with BuddyPress Registration. It restricts content for non-logged in users so mechanism is simple if not a user and is a guest only then restrict the content.
You can go with shane’s solution because that allows to restrict BuddyPress content and WordPress post type contents as well.
Thanks
October 7, 2018 at 6:59 pm #278289In reply to: Put pages behind BuddyPress login
micheleestes
Participant@shanebp Thanks for your tip. Will BP Simple Private plugin allow me to make non-BuddyPress pages private, for example, an existing content page that is not part of BuddyPress?
-
AuthorSearch Results