Search Results for 'wordpress'
-
AuthorSearch Results
-
June 12, 2013 at 10:37 pm #165884
In reply to: [Resolved] 404 message when trying to edit profile
@mercime
Participant@tribblehunter use XAMPP
– updated steps using xampp https://make.wordpress.org/core/handbook/installing-a-local-server/installing-xampp/
– adding WP to XAMPP http://wpmu.org/install-wordpress-locally-on-windows-with-xampp/June 12, 2013 at 12:20 pm #165842In reply to: How do I send an email to all members?
Kim Gjerstad
ParticipantThis newsletter plugin allows you to email all your WordPress users:
https://wordpress.org/extend/plugins/wysija-newsletters/
Note: I’m one of the authors. đ
June 12, 2013 at 11:28 am #165835In reply to: [Resolved] Activity stream accessible to everyone
bp-help
Participant@ghera74
That is default behavior if you do not have an private community type plugins activated. You can make activity your landing page in dashboard/settings/reading or create a custom menu and add the activity page as a menu item if you don’t want it as a landing page:
https://codex.buddypress.org/user/setting-up-a-new-installation/how-to-set-up-your-main-site-navigation-using-the-built-in-wordpress-menus/
Either way the activity stream is visible to logged-out-users, they just can’t post or comment.June 12, 2013 at 10:55 am #165829In reply to: Disable user without erasing profile data
Prince Abiola Ogundipe
Participant@mistercyril, after a quick search, I found – https://wordpress.org/plugins/user-control/ you can have a look if you can use is for buddypress.
Note: I have not tested this plugin
June 12, 2013 at 8:03 am #165819Henry
MemberI think I’ve come across this myself. I themed my activity pages so assumed the issue was caused by something I had introduced. I suggest you raise the issue at BuddyPress Trac where the developers can pick it up and confirm if it is a bug.
June 12, 2013 at 4:30 am #165812In reply to: How to create a theme specific translation?
poorgeek
ParticipantJune 12, 2013 at 4:22 am #165811chriswinch
ParticipantThanks for your help.
Managed to get it working by using the wordpress user id as you mentioned.June 12, 2013 at 4:17 am #165810In reply to: redirect to profile page?
bp-help
Participant@famous
That is a little strange. Are using mutisite? On a single site BP install the login/logout shows in the sidebar with the Meta Widget. Are you using a full width template? If so you can use this plugin to provide a login in the toolbar which I use with a full page template with WP 3.5.1 and BP 1.7.2 and it works, get it here:
https://wordpress.org/plugins/admin-bar-login/
Please provide as much info as you can on your install. If I can’t help, it will help others to help you. Thanks!June 12, 2013 at 3:39 am #165806In reply to: Buddypress tabs on custom post type template
bp-help
Participant@jhinzo @hgstephengreenberg
You can try this plugin which also has a premium version with more features. Not sure if it will meet your requirements but you can give it a try. Get it here:
https://wordpress.org/plugins/buddypress-custom-profile-menu/Or try this method if your adventurous which I haven’t tested:
http://wordpress.stackexchange.com/questions/16223/add-buddypress-profile-menu-itemJune 12, 2013 at 2:28 am #165803In reply to: Problem transferring (does BP have a new db system?)
@mercime
Participant@number_6 If you activated all of the components in Settings > BuddyPress > Components, 16 BP tables should be created in your site’s database as seen here.
BP interacts with most WP tables in database so you have to port it sitewide. Backup DB manually i.e., phpMyAdmin to computer hard drive, then use this plugin https://wordpress.org/plugins/duplicator/ to help you move your DB. Btw, do not use webhost’s one-click WP installation, upload WP manually and install. You need to be in total control of your site if you want to activate BuddyPress.
June 12, 2013 at 2:17 am #165802In reply to: Registration Breaks Site
@mercime
Participant@jkuzma
– Updated from what WP/BP version to what version?
– How does new registration “break” the site? White screen or 500 error? What shows up in your error logs?
– What random pages show up 404? Pages created in Pages > Add New or BuddyPress pages?
– How did you install WordPress – via webhost one-click install or did you upload WordPress manually? one-click WP install is buggy for BP sites as you need to have full control of your site when you use BuddyPress.June 11, 2013 at 8:39 pm #165789In reply to: [Resolved] Admin Bar
martinm92
ParticipantI am currently working on it locally, I just thought it might be a known issue and quick and easy fix. I think it re-directs by default to the default wordpress login page.
June 11, 2013 at 7:54 pm #165785In reply to: [Resolved] Admin Bar
martinm92
ParticipantI have one other problem, how do I echo an error when people get a wrong username or password? At the moment it re-directs to the default wordpress login, which doesn’t look great..
June 11, 2013 at 4:08 pm #165767In reply to: How to deal with registration
ldjautobody
Participant@bphelp, Wow and thank you for the awesome tutorial. This is perfect! I was actually using the original site I put up as a tempsite until I had the whole Buddy Press and bbpress thing figured out. I am in the process now of building our new site which will up be and running shortly.
The information you sent me is great. The register and log-in pages are wonderful. I am probably going to have to make some changes to our WP theme as I found out just recently that they have published a bbpress child theme which works great with the original WP theme. In fact, I’ll even give them a little plug here…Mysitemyway.com has some awesome premium wordpress themes that are definitely work a “look see” by anyone that is light on WP coding and wants a truly beautiful theme! So there guys…there’s your “plug’o the day!” from LDJ! LOL
Since learning a bunch of new things playing with the old temp site, the new site is going to be formatted completely different. I owe it to everyone here for their help during this learning curve and thank you everybody for all your great advice.
I’ll put up the new url as soon as I get the stuff up and running and I know I’ll be back here to get more help as we move forward with our forum site.
Thanks again for all your help!
Denise (@ldjautobody) đ
June 11, 2013 at 4:33 am #165748In reply to: Post Link appears thrice
@mercime
ParticipantNo I didnt try deactivating plugins since I was not sure which plugin is actually causing this error.
Having links showing up twice in Posts when you only posted it once is not normal for any BuddyPress or regular WordPress installation. It’s basic troubleshooting to deactivate plugins either one by one or by batch or all together (except BuddyPress) to find out which plugin is causing the error. Btw, you didn’t mention what theme you are using.
If I click on âadd linksâ , it shows me add link here and then a preview button.
Is that “add links” coming from a plugin? What exactly do you preview after you click “add link”?
June 11, 2013 at 2:18 am #165740In reply to: Arranging members in the member page
@mercime
Participant@ihpalash You might want to look at https://wordpress.org/plugins/buddypress-user-account-type-lite/
June 11, 2013 at 2:17 am #165739@mercime
Participant@thebuded something you should report in Trac https://buddypress.trac.wordpress.org/newticket
Log in using WP/BP username and password. Please include more info about your installation including from what version you upgraded, plugins used, etc.June 11, 2013 at 1:37 am #165737Asynaptic
ParticipantThanks @derdzi – can someone please confirm this? also, can you share it with the Yoast SEO wordpress forum so they can respond?
June 10, 2013 at 5:48 pm #165716In reply to: bbPress and BuddyPress (the fun continues)
danbp
ParticipantThe author answer means that the plugin works only with group forums ?!!!
So you have to search another rating widget who works with bbPress or create it yourself or to configure your buddypress to use group forums instead of a standalone forum.
But as bbP is fully post typed, have you tried to use the plugin’s shortcode ?
https://wordpress.org/support/topic/ratings-in-custom-post-typesJune 10, 2013 at 5:01 pm #165706In reply to: bbPress and BuddyPress (the fun continues)
Nate
ParticipantHere’s the plugin: https://wordpress.org/plugins/rating-widget/
The developer said: “seems like you are using the standalone version of bbPress … we only support BuddyPress’es bbPress forums.”
I don’t have any group forums, as they’re not necessary. Using most recent version of WP & BP under Woo’s Canvas theme. Thanks!
June 10, 2013 at 4:21 pm #165701Emily Barney
ParticipantI have been having the same issue and it looks like I might have a solution – I’ll at least post what steps I’ve taken and what documentation I based them on. I am running WordPress 3.5.1 as a multisite subdirectory installation on a WIMP server.
I read over this page of documentation that seems to apply to the situation, and I added the
define ( âBP_ROOT_BLOGâ, # ) line to the wp-config.php file in the root directory.
https://codex.buddypress.org/user/install-buddypress-on-a-secondary-blog/That didn’t solve it, so I went back to read over this page:
https://codex.buddypress.org/developer/customizing/changing-internal-configuration-settings/
I find the references to WPMU kind of confusing, since that hasn’t been used since before 3.0, I thought. And when I looked for the “bp-custom.php” file, I don’t see it anywhere in the recent installation. I found some of the same lines in the bp-loader.php file, but changes to that file didn’t change anything, since it seemed to be looking for a multiblog setting fist.So I went to this page and read through it:
https://codex.buddypress.org/bp_enable_multiblog/
That lead me to add this line to my wp-config.php file:
define ( ‘BP_ENABLE_MULTIBLOG’, true );I removed the changes I’d made to the bp-loader.php file to be sure there wouldn’t be problems later.
With both lines added to the wp-config.php file, I was finally able to go to this page and see the pages that belonged to the subsite rather than the root blog: {websiteurl}wp-admin/admin.php?page=bp-page-settings. I will need to check to see what changes this makes to the rest of my blogs, but at least we have a test site running Buddypress now.
Also, is there any chance these codex pages could get updated? There are all kinds of references to multisite or network or WMPU that are not entirely clear and, as I mention above, there are instructions to open files in the buddypress install that don’t exist by those names anymore.
June 10, 2013 at 6:51 am #165682In reply to: How to deal with registration
bp-help
Participant@ldjautobody
You can use the procedures from this tutorial:
http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/
You could have a different logged out menu in which you could include the register link.June 10, 2013 at 3:47 am #165678In 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 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 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/ -
AuthorSearch Results