Search Results for 'buddypress'
-
AuthorSearch Results
-
January 2, 2016 at 4:33 pm #248290
In reply to: how to change the post Permalinks?
wenlujon
Participantthanks, but it seems it’s outdated and doesn’t support current buddypress, for example: it reports failure:
Fatal error: Class 'BP_Group_Extension' not found in /var/www/html/wp-content/plugins/bp-edit-group-slug/bp-edit-group-slug.php on line 27
January 2, 2016 at 3:30 pm #248285In reply to: How to create a Like notification?
ibuddybook
ParticipantThank you for your reply Mr.Henry Wright…
How to insert the code????? how to change the Parameters???. i am not understand. please tell me step by step…
here is my code…
/buddypress/bp-activity/bp-activity-notifications.php<?php /** * BuddyPress Activity Notifications. * * @package BuddyPress * @subpackage ActivityNotifications */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; /* Emails *********************************************************************/ /** * Send email and BP notifications when a user is mentioned in an update. * * @since 1.2.0 * * @uses bp_notifications_add_notification() * @uses bp_get_user_meta() * @uses bp_core_get_user_displayname() * @uses bp_activity_get_permalink() * @uses bp_core_get_user_domain() * @uses bp_get_settings_slug() * @uses bp_activity_filter_kses() * @uses bp_core_get_core_userdata() * @uses wp_specialchars_decode() * @uses get_blog_option() * @uses bp_is_active() * @uses bp_is_group() * @uses bp_get_current_group_name() * @uses apply_filters() To call the 'bp_activity_at_message_notification_to' hook. * @uses apply_filters() To call the 'bp_activity_at_message_notification_subject' hook. * @uses apply_filters() To call the 'bp_activity_at_message_notification_message' hook. * @uses wp_mail() * @uses do_action() To call the 'bp_activity_sent_mention_email' hook. * * @param int $activity_id The ID of the activity update. * @param int $receiver_user_id The ID of the user who is receiving the update. */ function bp_activity_at_message_notification( $activity_id, $receiver_user_id ) { // Don't leave multiple notifications for the same activity item. $notifications = BP_Core_Notification::get_all_for_user( $receiver_user_id, 'all' ); foreach( $notifications as $notification ) { if ( $activity_id == $notification->item_id ) { return; } } $activity = new BP_Activity_Activity( $activity_id ); $subject = ''; $message = ''; $content = ''; // Now email the user with the contents of the message (if they have enabled email notifications). if ( 'no' != bp_get_user_meta( $receiver_user_id, 'notification_activity_new_mention', true ) ) { $poster_name = bp_core_get_user_displayname( $activity->user_id ); $message_link = bp_activity_get_permalink( $activity_id ); $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; $settings_link = bp_core_get_user_domain( $receiver_user_id ) . $settings_slug . '/notifications/'; $poster_name = stripslashes( $poster_name ); $content = bp_activity_filter_kses( strip_tags( stripslashes( $activity->content ) ) ); // Set up and send the message. $ud = bp_core_get_core_userdata( $receiver_user_id ); $to = $ud->user_email; $subject = bp_get_email_subject( array( 'text' => sprintf( __( '%s mentioned you in an update', 'buddypress' ), $poster_name ) ) ); if ( bp_is_active( 'groups' ) && bp_is_group() ) { $message = sprintf( __( '%1$s mentioned you in the group "%2$s": "%3$s" To view and respond to the message, log in and visit: %4$s --------------------- ', 'buddypress' ), $poster_name, bp_get_current_group_name(), $content, $message_link ); } else { $message = sprintf( __( '%1$s mentioned you in an update: "%2$s" To view and respond to the message, log in and visit: %3$s --------------------- ', 'buddypress' ), $poster_name, $content, $message_link ); } // Only show the disable notifications line if the settings component is enabled. if ( bp_is_active( 'settings' ) ) { $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); } /** * Filters the user email that the @mention notification will be sent to. * * @since 1.2.0 * * @param string $to User email the notification is being sent to. */ $to = apply_filters( 'bp_activity_at_message_notification_to', $to ); /** * Filters the @mention notification subject that will be sent to user. * * @since 1.2.0 * * @param string $subject Email notification subject text. * @param string $poster_name Name of the person who made the @mention. */ $subject = apply_filters( 'bp_activity_at_message_notification_subject', $subject, $poster_name ); /** * Filters the @mention notification message that will be sent to user. * * @since 1.2.0 * * @param string $message Email notification message text. * @param string $poster_name Name of the person who made the @mention. * @param string $content Content of the @mention. * @param string $message_link URL permalink for the activity message. * @param string $settings_link URL permalink for the user's notification settings area. */ $message = apply_filters( 'bp_activity_at_message_notification_message', $message, $poster_name, $content, $message_link, $settings_link ); wp_mail( $to, $subject, $message ); } /** * Fires after the sending of an @mention email notification. * * @since 1.5.0 * * @param BP_Activity_Activity $activity Activity Item object. * @param string $subject Email notification subject text. * @param string $message Email notification message text. * @param string $content Content of the @mention. * @param int $receiver_user_id The ID of the user who is receiving the update. */ do_action( 'bp_activity_sent_mention_email', $activity, $subject, $message, $content, $receiver_user_id ); } /** * Send email and BP notifications when an activity item receives a comment. * * @since 1.2.0 * * @uses bp_get_user_meta() * @uses bp_core_get_user_displayname() * @uses bp_activity_get_permalink() * @uses bp_core_get_user_domain() * @uses bp_get_settings_slug() * @uses bp_activity_filter_kses() * @uses bp_core_get_core_userdata() * @uses wp_specialchars_decode() * @uses get_blog_option() * @uses bp_get_root_blog_id() * @uses apply_filters() To call the 'bp_activity_new_comment_notification_to' hook. * @uses apply_filters() To call the 'bp_activity_new_comment_notification_subject' hook. * @uses apply_filters() To call the 'bp_activity_new_comment_notification_message' hook. * @uses wp_mail() * @uses do_action() To call the 'bp_activity_sent_reply_to_update_email' hook. * @uses apply_filters() To call the 'bp_activity_new_comment_notification_comment_author_to' hook. * @uses apply_filters() To call the 'bp_activity_new_comment_notification_comment_author_subject' hook. * @uses apply_filters() To call the 'bp_activity_new_comment_notification_comment_author_message' hook. * @uses do_action() To call the 'bp_activity_sent_reply_to_reply_email' hook. * * @param int $comment_id The comment id. * @param int $commenter_id The ID of the user who posted the comment. * @param array $params {@link bp_activity_new_comment()}. * @return bool */ function bp_activity_new_comment_notification( $comment_id = 0, $commenter_id = 0, $params = array() ) { // Set some default parameters. $activity_id = 0; $parent_id = 0; extract( $params ); $original_activity = new BP_Activity_Activity( $activity_id ); if ( $original_activity->user_id != $commenter_id && 'no' != bp_get_user_meta( $original_activity->user_id, 'notification_activity_new_reply', true ) ) { $poster_name = bp_core_get_user_displayname( $commenter_id ); $thread_link = bp_activity_get_permalink( $activity_id ); $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; $settings_link = bp_core_get_user_domain( $original_activity->user_id ) . $settings_slug . '/notifications/'; $poster_name = stripslashes( $poster_name ); $content = bp_activity_filter_kses( stripslashes($content) ); // Set up and send the message. $ud = bp_core_get_core_userdata( $original_activity->user_id ); $to = $ud->user_email; $subject = bp_get_email_subject( array( 'text' => sprintf( __( '%s replied to one of your updates', 'buddypress' ), $poster_name ) ) ); $message = sprintf( __( '%1$s replied to one of your updates: "%2$s" To view your original update and all comments, log in and visit: %3$s --------------------- ', 'buddypress' ), $poster_name, $content, $thread_link ); // Only show the disable notifications line if the settings component is enabled. if ( bp_is_active( 'settings' ) ) { $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); } /** * Filters the user email that the new comment notification will be sent to. * * @since 1.2.0 * * @param string $to User email the notification is being sent to. */ $to = apply_filters( 'bp_activity_new_comment_notification_to', $to ); /** * Filters the new comment notification subject that will be sent to user. * * @since 1.2.0 * * @param string $subject Email notification subject text. * @param string $poster_name Name of the person who made the comment. */ $subject = apply_filters( 'bp_activity_new_comment_notification_subject', $subject, $poster_name ); /** * Filters the new comment notification message that will be sent to user. * * @since 1.2.0 * * @param string $message Email notification message text. * @param string $poster_name Name of the person who made the comment. * @param string $content Content of the comment. * @param string $thread_link URL permalink for the activity thread. * @param string $settings_link URL permalink for the user's notification settings area. */ $message = apply_filters( 'bp_activity_new_comment_notification_message', $message, $poster_name, $content, $thread_link, $settings_link ); wp_mail( $to, $subject, $message ); /** * Fires after the sending of a reply to an update email notification. * * @since 1.5.0 * * @param int $user_id ID of the original activity item author. * @param string $subject Email notification subject text. * @param string $message Email notification message text. * @param int $comment_id ID for the newly received comment. * @param int $commenter_id ID of the user who made the comment. * @param array $params Arguments used with the original activity comment. */ do_action( 'bp_activity_sent_reply_to_update_email', $original_activity->user_id, $subject, $message, $comment_id, $commenter_id, $params ); } /* * If this is a reply to another comment, send an email notification to the * author of the immediate parent comment. */ if ( empty( $parent_id ) || ( $activity_id == $parent_id ) ) { return false; } $parent_comment = new BP_Activity_Activity( $parent_id ); if ( $parent_comment->user_id != $commenter_id && $original_activity->user_id != $parent_comment->user_id && 'no' != bp_get_user_meta( $parent_comment->user_id, 'notification_activity_new_reply', true ) ) { $poster_name = bp_core_get_user_displayname( $commenter_id ); $thread_link = bp_activity_get_permalink( $activity_id ); $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; $settings_link = bp_core_get_user_domain( $parent_comment->user_id ) . $settings_slug . '/notifications/'; // Set up and send the message. $ud = bp_core_get_core_userdata( $parent_comment->user_id ); $to = $ud->user_email; $subject = bp_get_email_subject( array( 'text' => sprintf( __( '%s replied to one of your comments', 'buddypress' ), $poster_name ) ) ); $poster_name = stripslashes( $poster_name ); $content = bp_activity_filter_kses( stripslashes( $content ) ); $message = sprintf( __( '%1$s replied to one of your comments: "%2$s" To view the original activity, your comment and all replies, log in and visit: %3$s --------------------- ', 'buddypress' ), $poster_name, $content, $thread_link ); // Only show the disable notifications line if the settings component is enabled. if ( bp_is_active( 'settings' ) ) { $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); } /** * Filters the user email that the new comment reply notification will be sent to. * * @since 1.2.0 * * @param string $to User email the notification is being sent to. */ $to = apply_filters( 'bp_activity_new_comment_notification_comment_author_to', $to ); /** * Filters the new comment reply notification subject that will be sent to user. * * @since 1.2.0 * * @param string $subject Email notification subject text. * @param string $poster_name Name of the person who made the comment reply. */ $subject = apply_filters( 'bp_activity_new_comment_notification_comment_author_subject', $subject, $poster_name ); /** * Filters the new comment reply notification message that will be sent to user. * * @since 1.2.0 * * @param string $message Email notification message text. * @param string $poster_name Name of the person who made the comment reply. * @param string $content Content of the comment reply. * @param string $settings_link URL permalink for the user's notification settings area. * @param string $thread_link URL permalink for the activity thread. */ $message = apply_filters( 'bp_activity_new_comment_notification_comment_author_message', $message, $poster_name, $content, $settings_link, $thread_link ); wp_mail( $to, $subject, $message ); /** * Fires after the sending of a reply to a reply email notification. * * @since 1.5.0 * * @param int $user_id ID of the parent activity item author. * @param string $subject Email notification subject text. * @param string $message Email notification message text. * @param int $comment_id ID for the newly received comment. * @param int $commenter_id ID of the user who made the comment. * @param array $params Arguments used with the original activity comment. */ do_action( 'bp_activity_sent_reply_to_reply_email', $parent_comment->user_id, $subject, $message, $comment_id, $commenter_id, $params ); } } /** * Helper method to map action arguments to function parameters. * * @since 1.9.0 * * @param int $comment_id ID of the comment being notified about. * @param array $params Parameters to use with notification. */ function bp_activity_new_comment_notification_helper( $comment_id, $params ) { bp_activity_new_comment_notification( $comment_id, $params['user_id'], $params ); } add_action( 'bp_activity_comment_posted', 'bp_activity_new_comment_notification_helper', 10, 2 ); /** Notifications *************************************************************/ /** * Format notifications related to activity. * * @since 1.5.0 * * @uses bp_loggedin_user_domain() * @uses bp_get_activity_slug() * @uses bp_core_get_user_displayname() * @uses apply_filters() To call the 'bp_activity_multiple_at_mentions_notification' hook. * @uses apply_filters() To call the 'bp_activity_single_at_mentions_notification' hook. * @uses do_action() To call 'activity_format_notifications' hook. * * @param string $action The type of activity item. Just 'new_at_mention' for now. * @param int $item_id The activity ID. * @param int $secondary_item_id In the case of at-mentions, this is the mentioner's ID. * @param int $total_items The total number of notifications to format. * @param string $format 'string' to get a BuddyBar-compatible notification, 'array' otherwise. * @return string $return Formatted @mention notification. */ function bp_activity_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { switch ( $action ) { case 'new_at_mention': $activity_id = $item_id; $poster_user_id = $secondary_item_id; $at_mention_link = bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; $at_mention_title = sprintf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() ); $amount = 'single'; if ( (int) $total_items > 1 ) { $text = sprintf( __( 'You have %1$d new mentions', 'buddypress' ), (int) $total_items ); $amount = 'multiple'; } else { $user_fullname = bp_core_get_user_displayname( $poster_user_id ); $text = sprintf( __( '%1$s mentioned you', 'buddypress' ), $user_fullname ); } break; } if ( 'string' == $format ) { /** * Filters the @mention notification for the string format. * * This is a variable filter that is dependent on how many items * need notified about. The two possible hooks are bp_activity_single_at_mentions_notification * or bp_activity_multiple_at_mentions_notification. * * @since 1.5.0 * * @param string $string HTML anchor tag for the mention. * @param string $at_mention_link The permalink for the mention. * @param int $total_items How many items being notified about. * @param int $activity_id ID of the activity item being formatted. * @param int $poster_user_id ID of the user posting the mention. */ $return = apply_filters( 'bp_activity_' . $amount . '_at_mentions_notification', '<a href="' . esc_url( $at_mention_link ) . '" title="' . esc_attr( $at_mention_title ) . '">' . esc_html( $text ) . '</a>', $at_mention_link, (int) $total_items, $activity_id, $poster_user_id ); } else { /** * Filters the @mention notification for any non-string format. * * This is a variable filter that is dependent on how many items need notified about. * The two possible hooks are bp_activity_single_at_mentions_notification * or bp_activity_multiple_at_mentions_notification. * * @since 1.5.0 * * @param array $array Array holding the content and permalink for the mention notification. * @param string $at_mention_link The permalink for the mention. * @param int $total_items How many items being notified about. * @param int $activity_id ID of the activity item being formatted. * @param int $poster_user_id ID of the user posting the mention. */ $return = apply_filters( 'bp_activity_' . $amount . '_at_mentions_notification', array( 'text' => $text, 'link' => $at_mention_link ), $at_mention_link, (int) $total_items, $activity_id, $poster_user_id ); } /** * Fires right before returning the formatted activity notifications. * * @since 1.2.0 * * @param string $action The type of activity item. * @param int $item_id The activity ID. * @param int $secondary_item_id @mention mentioner ID. * @param int $total_items Total amount of items to format. */ do_action( 'activity_format_notifications', $action, $item_id, $secondary_item_id, $total_items ); return $return; } /** * Notify a member when their nicename is mentioned in an activity stream item. * * Hooked to the 'bp_activity_sent_mention_email' action, we piggy back off the * existing email code for now, since it does the heavy lifting for us. In the * future when we separate emails from Notifications, this will need its own * 'bp_activity_at_name_send_emails' equivalent helper function. * * @since 1.9.0 * * @param object $activity Activity object. * @param string $subject (not used) Notification subject. * @param string $message (not used) Notification message. * @param string $content (not used) Notification content. * @param int $receiver_user_id ID of user receiving notification. */ function bp_activity_at_mention_add_notification( $activity, $subject, $message, $content, $receiver_user_id ) { if ( bp_is_active( 'notifications' ) ) { bp_notifications_add_notification( array( 'user_id' => $receiver_user_id, 'item_id' => $activity->id, 'secondary_item_id' => $activity->user_id, 'component_name' => buddypress()->activity->id, 'component_action' => 'new_at_mention', 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) ); } } add_action( 'bp_activity_sent_mention_email', 'bp_activity_at_mention_add_notification', 10, 5 ); /** * Mark at-mention notifications as read when users visit their Mentions page. * * @since 1.5.0 * * @uses bp_notifications_mark_all_notifications_by_type() */ function bp_activity_remove_screen_notifications() { if ( ! bp_is_active( 'notifications' ) ) { return; } // Only mark read if you're looking at your own mentions. if ( ! bp_is_my_profile() ) { return; } bp_notifications_mark_notifications_by_type( bp_loggedin_user_id(), buddypress()->activity->id, 'new_at_mention' ); } add_action( 'bp_activity_screen_mentions', 'bp_activity_remove_screen_notifications' ); /** * Mark at-mention notification as read when user visits the activity with the mention. * * @since 2.0.0 * * @param BP_Activity_Activity $activity Activity object. */ function bp_activity_remove_screen_notifications_single_activity_permalink( $activity ) { if ( ! bp_is_active( 'notifications' ) ) { return; } if ( ! is_user_logged_in() ) { return; } // Mark as read any notifications for the current user related to this activity item. bp_notifications_mark_notifications_by_item_id( bp_loggedin_user_id(), $activity->id, buddypress()->activity->id, 'new_at_mention' ); } add_action( 'bp_activity_screen_single_activity_permalink', 'bp_activity_remove_screen_notifications_single_activity_permalink' ); /** * Delete at-mention notifications when the corresponding activity item is deleted. * * @since 2.0.0 * * @param array $activity_ids_deleted IDs of deleted activity items. */ function bp_activity_at_mention_delete_notification( $activity_ids_deleted = array() ) { // Let's delete all without checking if content contains any mentions // to avoid a query to get the activity. if ( bp_is_active( 'notifications' ) && ! empty( $activity_ids_deleted ) ) { foreach ( $activity_ids_deleted as $activity_id ) { bp_notifications_delete_all_notifications_by_type( $activity_id, buddypress()->activity->id ); } } } add_action( 'bp_activity_deleted_activities', 'bp_activity_at_mention_delete_notification', 10 );
January 2, 2016 at 2:24 pm #248280In reply to: Problems with “subscription page” on my website
Henry Wright
ModeratorYou can modify your theme to add “directions”. Check out the Template Hierarchy article for more info.
January 2, 2016 at 2:22 pm #248279In reply to: How to create a Like notification?
Henry Wright
ModeratorCheck out
bp_notifications_add_notification()
.Ref: https://codex.buddypress.org/developer/function-examples/bp_notifications_add_notification/
January 2, 2016 at 12:33 pm #248272In reply to: About BuddyPress Templates
peter-hamilton
Participantlol…. you need to copy the folder “buddypress” to your root folder.
Find “buddypress” folder here.
plugins/buddypress/bp-templates/bp-legacy/buddypress
Now you need to read up on how to change these template files for your need, only these files inside this folder should be changed.
There is no buddypress theme, all wordpress themes are buddypress themes, and the only way to make something unique is through making a child theme of a wordpress site first, then adding buddypress css code and templates etc.
Good luck mate, here is a sample of what I am doing with buddypress…
My Buddypress site | Onlijn.comJanuary 2, 2016 at 12:25 pm #248271In reply to: Happy New Year To The BuddyPress Community
peter-hamilton
ParticipantBest Wishes Buddycrew.
#LongLiveBuddyPress
January 1, 2016 at 9:45 pm #248256Hendrik Lersch
ParticipantHave found the solution by myself. If anyone interested, here’s the code i have added to my bp-custom.php. i think it works as well in the themes functions.php.
function remove_wpautop_from_buddypress() { if( bp_current_component() ) { remove_filter( 'the_content', 'wpautop', 99 ); } } add_action('bp_init', 'remove_wpautop_from_buddypress');
bp_current_component() is true, if you be on a buddypress page, so wpautop is only disabled there.
But i still wonder, why it’s necessary to do something like that. 😉January 1, 2016 at 5:23 am #248238In reply to: About BuddyPress Templates
Joshua Blevins
ParticipantDo you have a fully custom BuddyPress theme that is not a child theme? I’d really like to look at the code and figure it out under the hood.
December 31, 2015 at 2:15 pm #248227In reply to: Display profile fields on members page
shanebp
ModeratorYou don’t need to touch the members-loop template file.
Try putting this in your theme/functions.php or in plugins/bp-custom.phpfunction add_age_to_members_loop() { $field_content = bp_get_member_profile_data( 'field=Age' ); if( $field_content != false ) echo "Age: " . $field_content; } add_action( 'bp_directory_members_item', 'add_age_to_members_loop' );
December 31, 2015 at 11:33 am #248221In reply to: About BuddyPress Templates
Hugo Ashmore
ParticipantFor why?
What’s the issue you’re having?You should have control of your templates now and can modify as you need; the master WP template that would be used is generally page.php copy that to /buddypress/ and rename to buddypress.php to have control of this top level template.
December 30, 2015 at 8:35 pm #248211In reply to: Can no longer manually edit register.php
GreyWyvern
ParticipantThat’s where it is. A few lines of context code included:
... <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_password_confirm_errors' ); ?> <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" class="password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/> <?php do_action( 'bp_account_details_fields' ); ?> <!-- Test question --> <label for="signup_test">Challenge question? <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_test_errors' ); ?> <input type="text" name="signup_test" id="signup_test" value="" /> </div><!-- #basic-details-section --> <?php do_action( 'bp_after_account_details_fields' ); ?> ...
From your responses I’m getting the feeling that what I’m doing should be working, but it isn’t. I’m probably overlooking something simple. 😐
December 30, 2015 at 8:16 pm #248209In reply to: Can no longer manually edit register.php
GreyWyvern
ParticipantI activated the twentythirteen theme and uploaded the edited register.php file here:
/wp-content/themes/twentythirteen/buddypress/members/register.php
I double checked to make sure that the register.php file I uploaded was from:
\wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\register.php
… and also that my challenge question code was included. It’s inserted at line 51 of the file as follows:
<!-- Test question --> <label for="signup_test">Challenge question? <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_test_errors' ); ?> <input type="text" name="signup_test" id="signup_test" value="" />
After clearing any caching plugins, the challenge question DID NOT appear on the signup form while the twentythirteen theme was active. I have reverted back to the blackfyre template for now.
Any thoughts?
December 30, 2015 at 7:57 pm #248208In reply to: Can no longer manually edit register.php
shanebp
ModeratorI’m not sure where I would put the bp_signup_validate code you linked. Some specific file?
It can go in your theme/functions.php or in plugins/bp-custom.php
Re overload register:
Make sure you start with this file:
buddypress\bp-templates\bp-legacy\buddypress\members\register.phpI just did an overload via this path:
/wp-content/themes/twentythirteen/buddypress/members/register.php
And the changes appear, so the overloaded template is being loaded.You might try switching to a WP theme like 2013 – if the issue disappears, that’s a clue.
December 30, 2015 at 7:34 pm #248207In reply to: Can no longer manually edit register.php
GreyWyvern
ParticipantThank you for the reply. Just so you know, I am an experienced PHP coder, but I’m quite unfamiliar with the WP and Buddypress plugin API, which is why I was adding the challenge question manually right in the PHP files before. So I’m not sure where I would put the bp_signup_validate code you linked. Some specific file?
I copied my edited register.php (with the challenge question) to the following folder of the theme we’re using:
/wp-content/themes/blackfyre/buddypress/members/
There was no file named register.php in this directory previously.
After clearing any caching plugins, the signup form still only displays the default questions. You can see it here: http://realmsunchained.com/user-registration/
There should be an additional field under the “Confirm Password” field. Before Buddypress 2.4.x just editing the files I mentioned in the OP caused instant changes to this page. Now the registration form seems to be drawing its code from somewhere completely different.
Am I going wrong somewhere?
December 30, 2015 at 6:46 pm #248206In reply to: Can no longer manually edit register.php
shanebp
ModeratorUnless you are explicitly using the bp-default theme, you should only be using a template overload of this file:
\wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\register.phpThere is no need to touch this file:
\wp-content\plugins\buddypress\bp-members\bp-members-screens.phpYou can add your challenge to the overload template and then check it using the
bp_signup_validate
hook.
Example: https://code.hyperspatial.com/all-code/buddypress-code/buddypress-signup-form-hook/December 30, 2015 at 9:59 am #248197In reply to: Extra line breaks on buttons
Tuomas Karhunen
ParticipantPS. The theme in question (Gonzo) doesn’t officially support BuddyPress, so I just removed the line breaks from the buttons via CSS. Case closed, at least for now. 🙂
December 30, 2015 at 8:16 am #248195In reply to: Extra line breaks on buttons
Tuomas Karhunen
ParticipantThanks for the reply! I set up a test site and discovered that it’s my WP theme that’s causing the line breaks. (No clue how to solve it though, gonna ask WP support and the theme creator for help.)
So this is not a BuddyPress issue.
December 29, 2015 at 9:27 pm #248190Mark
Participant@jscmal Interesting, thank you for providing this info. rtMedia recently upon my request for a new feature implemented privacy control for all activity stream items, not just rtMedia images shown on on the activity stream. This essentially allows rtMedia to replace the functionality of the (BuddyPress Activity Privacy plugin). I’m assuming you’ve noticed the option/dropdown on all activity stream updates to change the privacy. This is the reason I am chiming in on this for I was asked by them to report any bugs I’ve noticed. Probably a big code change on their end so I can see how there may be some bugs to work out. I couldn’t replicate this on my site so your best bet if still having this issue is to open a ticket with them. Good luck!
December 29, 2015 at 9:04 pm #248189jscmal
Participant@Mark … I tested it with Twenty Fifteen WordPress Standard Theme and the problem happens. Then it is not properly a theme problem
I use the woothemes Canvas Theme release 5.9.3 and 5.9.15 (the latest).
To make work properly rtmedia was necessary add a fixing in the child theme functions.php and it worked properly:
// BuddyPress - Fixing for rtMedia function rtmedia_main_template_include($template, $new_rt_template) { global $wp_query; $wp_query->is_singular = true; return get_page_template(); } add_filter('rtmedia_main_template_include', 'rtmedia_main_template_include', 20, 2);
In any case, if with the standard wordpress theme the problem happens and then it could not be a theme problem, then rtmedia could have some conflict with another module.
Anyway, I will open an account on the rtmedia website and i will open a ticket, adding screenshots of the problem.
Kind regards
G. Aloe
December 29, 2015 at 6:18 pm #248185In reply to: Group Navigation
kmw1130
ParticipantIf I don’t use the BuddyPress Group Extra, how do I add an icon to my group navigation? where are these set (Activity, Events, Members)? Maybe if I can see where to set these, I could figure out how to add additional icons.
Thank you,
KimDecember 29, 2015 at 2:19 pm #248180In reply to: Group Navigation
shanebp
ModeratorI’m using the “BuddyPress Group Extras – Extend Your Groups plugin”.
Therefore you should submit your question to the creator of that plugin:
https://wordpress.org/support/plugin/buddypress-groups-extrasDecember 29, 2015 at 2:01 pm #248179In reply to: Group Navigation
kmw1130
ParticipantI’m using the “BuddyPress Group Extras – Extend Your Groups plugin”.
When I click manage in my group admin/edit-details. The submenu has Details, Settings, Photo, Members, Cover Photo, Forum, Extras, and Delete. If I click Extras it takes me to Group Extras > General Settings, this is also where I can add Pages. I just want to be able to add two new items (icons) for Blog/News, which I have on my site already and Group Info, so when I click either of these two, I would be like the others I have (Activity, Events, Members).
December 29, 2015 at 1:55 pm #248178In reply to: Group Navigation
shanebp
Moderatorafaik, BP does not provide a submenu called ‘Extras’ under ‘Manage’ in Groups.
So you are using custom code or another plugin to provide that submenu – therefore you should contact the creator of that code.Otherwise, to add a menu item to Groups, you will need to write code using the BP_Group_Extension API.
December 28, 2015 at 9:38 pm #248165In reply to: Admin screen goes white on BuddyPress activation
Paul-tCGs
Participantthanks @shanebp
re: your suggestions..
Turn on wp-debug and then check error logs. < I believe I did this by editing the Wpconfig.php file.. but the debug.log shows file size of zero .. so maybe I did that wrong.
— — // Enable WP_DEBUG mode
— — define(‘WP_DEBUG’, true);— — // Enable Debug logging to the /wp-content/debug.log file
— — define(‘WP_DEBUG_LOG’, true);— — // Disable display of errors and warnings
— — define(‘WP_DEBUG_DISPLAY’, false);
— — @ini_set(‘display_errors’,0);— — // Use dev versions of core JS and CSS files
— — // (only needed if you are modifying these core files)
— — define(‘SCRIPT_DEBUG’, true);— — /* That’s all, stop editing! Happy blogging. */
Deactivate bbPress and all related plugins. ~ as indicated in my post, did this in several different ways to totally and entirely isolate buddypress as the problem plugin.
Test with ONLY a WP theme like 2013 and BP ~ perhaps I wasn’t clear, but did this too.. same problem.
—- —- interesting new note —- —-
Since the folks at GoDaddy did their memory maximization steps, the error messages have stopped.. but I remembered that when the WP-Admin/Dashboard screen goes white, the site doesn’t. so I added buddypress back in, activated, got the WP-Admin white screen and see that the forums are back up and the user icons are too. so I can’t tweak the interface from the dashboard, but functionality is working slightly.
December 28, 2015 at 8:38 pm #248164In reply to: Admin screen goes white on BuddyPress activation
shanebp
Moderator… a limit to the number of groups & users that BuddyPress can manage; something like 20k users
There is no limit – provided you have the necessary server resources available.
There is a difference between total users and # of concurrent users – meaning the # of users that are performing operations at any one time.It’s impossible to diag your issue without access to your server.
Some suggestions:- Turn on wp-debug and then check error logs.
- Deactivate bbPress and all related plugins.
- Test with ONLY a WP theme like 2013 and BP
White screens can be tricky to diagnose – but a decent developer can at least narrow down the possible factors.
-
AuthorSearch Results