Search Results for 'buddypress'
-
AuthorSearch Results
-
June 10, 2013 at 3:47 am #165678
In reply to: video plugin wp 3.5.1
bp-help
Participant@jimahrens
These two plugins handle video different so make sure to read the descriptions and choose the one that best fits your requirement.
https://wordpress.org/plugins/buddypress-media/
https://wordpress.org/plugins/buddypress-activity-plus/June 9, 2013 at 7:41 pm #165675In reply to: Activity Wall bug BP 1.7.2 comments/replies
BottleInfrontomy
ParticipantNope. Manual install. Like I said, I’ve been running this for a couple years as a side project, never had a problem until 1.7.2. I’m not sure if you read both of my comments…
Anyway, My current installation of BuddyPress did not create any database tables. Other than manually creating them, I have no idea how to fix it or even why it is happening suddenly.
I’ve even installed the bleeding edge BP, and it too didn’t create any tables. There is something odd going on and I’ll have to hunt it down and/or start over from nothing. Very frustrating. Thanks for trying.
June 9, 2013 at 7:18 pm #165673In reply to: Activity Wall bug BP 1.7.2 comments/replies
@mercime
Participant@bottleinfrontomy start at the beginning.
– Hopefully, you did not install WP with webhost’s one-click install as that is not kosher with BuddyPress installs where you need to have full control of your site
– Deactivate all plugins, change to Twenty Twelve theme and then activate BuddyPress.
– Go to Settings > BuddyPress and configure Components, Pages, and Settings
– If everything’s working as expected in front end – registration, group creation, etc., activate your plugins – make sure they’ve been upgraded to latest WP BP versions.
– Final step, activate your theme of choiceJune 9, 2013 at 7:09 pm #165672In reply to: wrong URL is generated on groups without forum
@mercime
Participant@hellen83 The problem is in your installation. BuddyPress does not append /forum to a newly created group’s home page. Basic troubleshooting: deactivate all plugins except BuddyPress and change to Twenty Twelve theme or BP Default theme. Then create a group.
June 9, 2013 at 6:47 pm #165670In reply to: Activity Wall bug BP 1.7.2 comments/replies
BottleInfrontomy
Participanthaha.. I just noticed that there aren’t any buddypress tables created in my database and my error log is nothing but errors calling various _bp_ tables. Wow. Not sure how to fix this one.
June 9, 2013 at 5:53 pm #165669In reply to: Activity Wall bug BP 1.7.2 comments/replies
BottleInfrontomy
Participantmu-plugins folder? Perhaps I’m not hip to the lingo. Where is that folder?
I’ll try again with the basic troubleshooting and see where that gets me since I don’t recall what the outcome was. I remember disabling everything and going to the twentytwelve theme with no change in the results.
So.. here are the results, I remembered correctly.
I disabled the theme, tried both TwentyTwelve and BuddyPress Default Theme. The results:
Activity Streams are blank.
Site Tracking shows no blogs, all were created via the admin console.
No User Groups, Creation isn’t possible.
Members page shows members.
Registration page is functional.
Activate page is functional.When I reactivate Pagelines Framework, I get certain content on the page that shouldn’t be seen since these aren’t regular pages, they are BuddyPress pages so the content of the page is empty, but Pagelines Framework is showing this oddball line [Viewing archives for “”] at the top of the page, as well as the by-line and the “read more” link at the bottom of the pages that were created.
Everything else remains the same. No groups, can’t create groups. No blog list, no stream.It’s very odd to me. I’ve spent a ton of time on getting this operational and would hate to start over since I don’t know of a last-known-good backup at this point. I’m not even sure when the glitch presented itself. It had been working fine until I upgraded to 1.7.2, there wasn’t a hiccup in the upgrade either.
Thanks.
June 9, 2013 at 3:23 pm #165666In reply to: Can't Get Forum Pages to Show Up In Menu
@mercime
ParticipantI have tried creating a menu item that points to the actual “forum” itself, but it returns with “page not found”
What is the title/slug of your main forum page. This main forum page should be created via Pages > Add New. At the very least, if you forgot to add the forums index or other available bbPress shortcodes to the main forum page before publishing that page, you’d only get a page with Page title and not a 404 error.
Set up bbPress forums with BuddyPress installs https://codex.buddypress.org/user/setting-up-a-new-installation/installing-group-and-sitewide-forums/
June 9, 2013 at 10:37 am #165654In reply to: Add Custom Setting to Buddypress Settings
P
ParticipantThe problem is I need to modify the core files and add a plugin at the same time so a user can change the Throttling settings in his WordPress backend.
I really tried to simple write a plugin and skip the core files modifications, but it’s just not working out. Maybe you can help out here, I will post the 3 core file functions which I modified as well as the plugin code which I wrote. If you can figure out a way for me to not modify the core files and still get Throttling to work, share your code.
Modified files:
1- bp-activity\bp-activity-functions.php
function bp_activity_post_update( $args = '' ) { global $bp; $defaults = array( 'content' => false, 'user_id' => bp_loggedin_user_id() ); $r = wp_parse_args( $args, $defaults ); extract( $r, EXTR_SKIP ); if ( empty( $content ) || !strlen( trim( $content ) ) ) return false; if ( bp_is_user_inactive( $user_id ) ) return false; <strong>$floodTest = bp_core_check_for_flood ($user_id); if (!$floodTest) return "flood";</strong> // Record this on the user's profile $from_user_link = bp_core_get_userlink( $user_id ); $activity_action = sprintf( __( '%s posted an update', 'buddypress' ), $from_user_link ); $activity_content = $content; $primary_link = bp_core_get_userlink( $user_id, false, true ); // Now write the values $activity_id = bp_activity_add( array( 'user_id' => $user_id, 'action' => apply_filters( 'bp_activity_new_update_action', $activity_action ), 'content' => apply_filters( 'bp_activity_new_update_content', $activity_content ), 'primary_link' => apply_filters( 'bp_activity_new_update_primary_link', $primary_link ), 'component' => $bp->activity->id, 'type' => 'activity_update' ) ); $activity_content = apply_filters( 'bp_activity_latest_update_content', $content ); // Add this update to the "latest update" usermeta so it can be fetched anywhere. bp_update_user_meta( bp_loggedin_user_id(), 'bp_latest_update', array( 'id' => $activity_id, 'content' => $content ) ); do_action( 'bp_activity_posted_update', $content, $user_id, $activity_id ); return $activity_id; }2- bp-core\bp-core-moderation.php
function bp_core_check_for_flood( $user_id = 0 ) { <strong>// Option disabled. No flood checks. if ( !$throttle_time = bp_get_option( 'bt_activity_time' ) ) return false; // Bail if no user ID passed if ( !$user_id ) return false; $last_posted = get_user_meta( $user_id, '_bp_last_posted', true ); if ( !$last_posted ) { $last_posted = time(); add_user_meta( $user_id, '_bp_last_posted', $last_posted); return true; } else { if ( ( time() < ( $last_posted + $throttle_time ) ) && !current_user_can( 'throttle' ) ) { update_user_meta($user_id,'_bp_last_posted',time()); return false; } else { update_user_meta($user_id,'_bp_last_posted',time()); return true; } }</strong> }3- bp-themes\bp-default\_inc\ajax.php
function bp_dtheme_post_update() { // Bail if not a POST action if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) return; // Check the nonce check_admin_referer( 'post_update', '_wpnonce_post_update' ); if ( ! is_user_logged_in() ) exit( '-1' ); if ( empty( $_POST['content'] ) ) exit( '-1<div id="message" class="error"><p>' . __( 'Please enter some content to post.', 'buddypress' ) . '</p></div>' ); $activity_id = 0; if ( empty( $_POST['object'] ) && bp_is_active( 'activity' ) ) { $activity_id = bp_activity_post_update( array( 'content' => $_POST['content'] ) ); } elseif ( $_POST['object'] == 'groups' ) { if ( ! empty( $_POST['item_id'] ) && bp_is_active( 'groups' ) ) $activity_id = groups_post_update( array( 'content' => $_POST['content'], 'group_id' => $_POST['item_id'] ) ); } else { $activity_id = apply_filters( 'bp_activity_custom_update', $_POST['object'], $_POST['item_id'], $_POST['content'] ); } if ($activity_id == "flood") { $bt_activity_throttle_time = bp_get_option ('bt_activity_time'); $bt_activity_message = bp_get_option( "bt_activity_message" ); $msg = ( $bt_activity_message ) ? $bt_activity_message : "You have to wait to post again"; exit( '-1<div id="message" class="error"><p>' . __( $msg, 'buddypress' ) . '</p></div>' ); } if ( empty( $activity_id ) ) exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' ); if ( bp_has_activities ( 'include=' . $activity_id ) ) { while ( bp_activities() ) { bp_the_activity(); locate_template( array( 'activity/entry.php' ), true ); } } exit; }4- The Buddypress Throttling Plugin Code
<?php add_action( 'admin_menu', 'plugin_menu' ); function plugin_menu() { // add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function); add_options_page( 'Buddypress Throttling | Settings', 'Buddypress Throttling', 'manage_options', 'buddypress_throttling', 'buddypress_throttling_options' ); } function buddypress_throttling_options() { //must check that the user has the required capability if (!current_user_can('manage_options')) { WP_die( __('You do not have sufficient permissions to access this page.') ); } // variables for the field and option names $hidden_field_name = 'submit_hidden'; // See if the user has posted us some information // If they did, this hidden field will be set to 'Y' if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) { // Activity $bp_activity_time_val = ( intval($_POST["bt_activity_time"]) <= 0 ) ? 0 : $_POST ["bt_activity_time"]; update_option( "bt_activity_time", $bp_activity_time_val ); $bp_activity_message_val = ( isset($_POST["bt_activity_message"]) && $_POST["bt_activity_message"] != "" ) ? $_POST["bt_activity_message"] : "Please wait before posting again"; update_option( "bt_activity_message", $bp_activity_message_val ); ?> <div class="updated"><p><strong><?php _e('Settings saved.', 'menu-test' ); ?></strong></p></div> <?php } // Activity read values $bt_activity_time = get_option( "bt_activity_time" ); $bt_activity_time = (intval($bt_activity_time) <= 0) ? 0 : $bt_activity_time; $bt_activity_message = get_option( "bt_activity_message" ); $bt_activity_message = ($bt_activity_message) ? $bt_activity_message : "Please wait before posting again"; echo '<div class="wrap">'; echo "<h2>" . __( 'Buddypress Throttling Settings', 'menu-test' ) . "</h2>"; ?> <form name="form1" method="post" action=""> <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y"> <div class="bt-plugin"> <style> .bt-plugin span { display: inline-block; width: 120px; margin-left: 20px } .bt-plugin textarea {width: 400px} </style> <h3><?php _e("On Activity Page: ", 'menu-test' ); ?></h3> <p><span>Throttling Time:</span><input type="text" name="bt_activity_time" value="<?php echo $bt_activity_time; ?>" size="20"> (in seconds)</p> <p><span>Message:</span><textarea name="bt_activity_message" rows="3"><?php echo $bt_activity_message; ?></textarea></p> </div> <p class="submit"> <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" /> </p> </form> </div> <?php }Test it out locally, just replace the specified functions in these files with the functions I wrote, add the plugin code in a php file and save it under your Plugins directory (and activate it in the backend). The Plugin code will allow you to set the number of seconds for throttling as well as the message the user will see when he’s flooding.
Put this puzzle pieces together and you got Flooding control (for the activity page for now), which can easily be done for friend requests @bphelp).
June 9, 2013 at 7:14 am #165648In reply to: [Resolved] Group Notifications – Whats New
@mercime
Participant@famous check out or download plugin in github which has been updated for BP 1.7 https://github.com/boonebgorges/buddypress-group-email-subscription
June 9, 2013 at 6:42 am #165647derdzi
ParticipantThere is very fine solution for the problem of seo with buddypress. You just have to use yoast seo plugin and modify one file.
There will be solution for the titles of groups, group forums and member pages.
More details when you follow the link.
June 9, 2013 at 6:35 am #165646In reply to: How do I get Yoast SEO to work with Buddypress
derdzi
ParticipantI had the same problem with yoast seo for buddypress and I’ve found this solution, maybe it isn’t the cleanest one but it works for groups, group forums and members. http://latinosparis.com/simplecode/buddypress-seo-problem-with-yoast-plugin-solved/
Hope it will help!
June 9, 2013 at 1:50 am #165637In reply to: Being added to Groups before being accepted
@mercime
Participant@dswd tested on install with WP 3.6 beta 3, with plugins – BuddyPress trunk and bbPress trunk – and Twenty Twelve theme. Steps #1 through #6 are the same for me. For step 7, when I go back to groups, I am not a member of that group yet. Done this with 7 other regular users and I get the same results – not a member of that group unless I click on the accept button.
My test installations at this point are all on trunk and I have not received any reports about this issue in live sites – probably because they click on “Accept” button right away instead of wandering from group to profile to group 🙂
June 9, 2013 at 1:22 am #165636In reply to: Invalid Activation Key For New Registration
@mercime
ParticipantBasic troubleshooting: deactivate all plugins except BuddyPress and change to Twenty Twelve theme. Was registration process working before you activated BuddyPress?
June 9, 2013 at 12:26 am #165632In reply to: Activity Wall bug BP 1.7.2 comments/replies
@mercime
Participant@bottleinfrontomy at least 3 users have posted in this forum re pagelines framework. Deactivate pagelines theme and the pagelines-buddypress plugin then change to Twenty Twelve theme. Check if issues are resolved. if not, deactivate plugins batch by batch to check which one is causing conflict – including those in mu-plugins folder.
June 9, 2013 at 12:01 am #165630In reply to: Recently Active Member Widget Help
June 8, 2013 at 11:55 pm #165629In reply to: How to Hide Members Page But Not Disable It?
@mercime
ParticipantMembers page is not visible in the top menu bar
@waterfiend check out http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/ or have a look at different solutions posted for a private BP site at https://buddypress.org/support/topic/protecting-buddypress-pages-from-non-logged-in-users/June 8, 2013 at 11:31 pm #165626In reply to: Adding a container to the profiles?
@mercime
Participant@tudmak This is the file you should be adding the HTML/CSS to https://buddypress.trac.wordpress.org/browser/tags/1.7.2/bp-templates/bp-legacy/buddypress/members/single/member-header.php
or you can use bp_before_member_header() or bp_after_member_header() to add the HTML and position the item where you want it in your stylesheetJune 8, 2013 at 11:08 pm #165625In reply to: [Resolved] BuddyPress 1.7.2 Groups 404 Issue
@mercime
Participant@brew62 thanks for posting the issue and resolution.
BP Gallery 1.0.16 is compatible with BP 1.7.2 There have been a lot of changes since BP Gallery 1.0.9June 8, 2013 at 10:58 pm #165624In reply to: Header and footer widget problems
@mercime
Participant@junithorn I placed the link to that page because I had modified member/single/index.php and other files in a Responsive child theme and had no issues with sidebar nor footer widgets.
– Did you create a /community or /buddypress folder within your child theme folder?
– Did you follow the directory structure where you copied the file you wanted to modify from
e.g. bp-legacy/buddypress/members/single/activity.php
to your theme folder in server
wp-content/themes/responsive-child-theme/buddypress/members/single/activity.php ?June 8, 2013 at 8:18 pm #165612In reply to: Remove profile links
bp-help
Participant@modemlooper
Has this changed since 1.5 because the codex:
https://codex.buddypress.org/developer/customizing/bp-custom-php/
Uses bp_init in the examples?June 8, 2013 at 8:04 pm #165610modemlooper
ModeratorDid you click link from email sent after signup?
June 8, 2013 at 7:57 pm #165608In reply to: Private message from non-members
caspergrimaldi
ParticipantThere is a “is_user_logged_in() ” but it isn’t checked :S
It’s in my sidebar. Here is the php.
<?php do_action( ‘bp_before_sidebar’ ); ?><div id=”sidebar” role=”complementary”>
<div class=”padder”><?php do_action( ‘bp_inside_before_sidebar’ ); ?>
<div class=”gravatar”><?php if ( is_user_logged_in() ) : ?>
<?php bp_displayed_user_avatar( ‘type=full’ ); ?></div>
<?php do_action( ‘bp_after_sidebar_login_form’ ); ?>
<?php endif; ?>
<?php /* Show forum tags on the forums directory */
if ( bp_is_active( ‘forums’ ) && bp_is_forums_component() && bp_is_directory() ) : ?>
<div id=”forum-directory-tags” class=”widget tags”>
<h3 class=”widgettitle”><?php _e( ‘Forum Topic Tags’, ‘buddypress’ ); ?></h3>
<div id=”tag-text”><?php bp_forums_tag_heat_map(); ?></div>
</div>
<?php endif; ?><?php dynamic_sidebar( ‘sidebar-1’ ); ?>
<?php do_action( ‘bp_inside_after_sidebar’ ); ?>
<?php wp_meta(); ?>
</div><!– .padder –>
</div><!– #sidebar –><?php do_action( ‘bp_after_sidebar’ ); ?>
June 8, 2013 at 7:06 pm #165604In reply to: Idea: Stopping Spammers with Sandbox
bp-help
Participant@synaptic
BuddyPress Registration Options is similar to this idea but it only allows a user to fill out their profile and upload an avatar until the admin approves their account. It doesn’t allow posting to the activity stream however. IMHO if a user doesn’t take the time to fill out their profile then it is a good indicator that they are a spammer but I can see the value in your idea and would I would like to see this functionality in a plugin.
https://wordpress.org/plugins/bp-registration-options/June 8, 2013 at 5:15 pm #165598In reply to: [Resolved] BuddyPress 1.7.2 Groups 404 Issue
brew62
ParticipantRESOLVED: Found out what was going on. I have BP Gallery 1.0.9 installed on this site, and it has not been updated for quite a while (due to the requisite subscription that my client would rather not pay). After updating several plugins, I was getting an error appearing on a few of the site’s pages, so I suppressed the errors in wp-includes/class-wp-error.php. This, of course, removed the php Warning message, but it also prevented me from seeing the Fatal Error that should’ve been appearing on the individual group pages.
So, summation: 1) BP Gallery 1.0.9 may not be fully compatible with BuddyPress 1.7.2, and 2) a 404 is not always a 404. If you have suppressed your errors and get the “This page can’t be found” business, allow errors once again and re-check.
Lesson learned for me. Hope this helps someone.
June 8, 2013 at 4:46 pm #165596Hugo Ashmore
ParticipantI would advise you disable buddypress for the moment as there’s something very wrong with it, it doesn’t appear to be working in that custom theme correctly. You probably need to ask the theme authors about what is happening.
-
AuthorSearch Results