Search Results for 'buddypress'
-
AuthorSearch Results
-
September 8, 2014 at 10:59 pm #190995
r-a-y
Keymaster@namrons – If you are using the older bp-default theme or a deriviative of the bp-default theme on your other sites, you’ll need to patch bp-default as well.
I’ve added the fix for the bp-default theme here:
https://github.com/buddypress/BP-Default/commit/4a06b494195c681252d27ded0c23ba8296322ec0September 8, 2014 at 9:55 pm #190992danbp
ParticipantAre you already in a reflection stage or already confronted to “a problem” ?
If you have a template you can display content, with conditionnals.
Read here to see what it is on hand for template files:September 8, 2014 at 9:37 pm #190990danbp
ParticipantThe patch has not much to do with wp.
Depending of the BP version you use on the old sites, you can use the fix !
Compare the buddypress-functions.php and if you find a line similar to the one alreadyfixed, you can try to use the patch.Aside it could not work, there is nothing to loose to try!
September 8, 2014 at 9:22 pm #190986namrons
ParticipantThanks @shanebp and thanks @r-a-y Your fix definitely works with latest version of WordPress and Buddypress (tested) but I have a couple of sites with an older WordPress (because some plugins I’m using are not yet compatible with recent WordPress) and this fix does not work there. Any suggestions for a fix with older WordPress?
September 8, 2014 at 8:30 pm #190979In reply to: Ning Importer and BuddyPress Navigation
danbp
ParticipantHi @lunaya,
activate debug mode in wp-config to get some internal information
And read here:
https://buddypress.org/support/topic/ning-2-buddypress/
https://buddypress.org/support/topic/ning-import/September 8, 2014 at 8:24 pm #190977durkk
Participant@danbp: Ok thanks, the snippet gave me the impression it was relative, not absolute. I am not a complete code n00b, but thanks for your concern.
Let me see if I get this right; because I am still not sure how this enables me to feed unique content per user.
Right now with your snippets I have a page template, a page with the template loaded and a link to that page in the buddypress user profile menu’s. How do I load content relevant to the logged in user on that page?
That is kind off the whole objective of using the dynamic links
There’s a plugin that can make profile tab links and even pages, so I guess I am not understanding what exactly is the idea behind you reasoning for being a simpler solution to my problem.
September 8, 2014 at 6:55 pm #190961In reply to: Managing group creation
xprt007
ParticipantHi
The index.php file is clean, …
I used the plugin “Change DB Prefix” which enables a db prefix table change & in wp-config.php with a click. Good since the db has 175 tables đ … ;), thi sbeing a community site with a number of functions.
I added BuddyPress-Honeypot, … but does it not matter it seems to have had no changes since 2012?
I temporarily disabled Wanguard to see if the 2 steps above + existing antispam plugins can handle this. Will then see about the .htaccess issue tomorrow etc.
Many thanks & kind regards
September 8, 2014 at 6:50 pm #190960In reply to: Groups in BuddyPress cause Redirect Loop Error
danbp
ParticipantHave you setup a page for groups ?
Have you changed the permalinks ?September 8, 2014 at 6:47 pm #190959danbp
ParticipantA 404 error ? If you copy/paste a wrong url this can happen !
When you create a new page in wordpress, a permalink is automatically created under the title box.
You copy that whole permalink, including http, into the snippet
'link' => 'your permlink',do not remove the coma ! And be carefull when editing code. Use a text editor, not Word !The snippet give you the possibility to add a page to a profile, and this page use his own template file, as also described.
Don’t copy/paste when you don’t know how to use it and how things are working.
For that you have the codex, where you can learn a bit on how BP is working.
Here about theming.September 8, 2014 at 3:25 pm #190946Cartographer
ParticipantThank you for your response.
Like @jetlej here I find horrible the idea that in a community the private messages can be read by the admin of the community.
I don’t believe that a community would have a lot of registrations if the users knew that the admin has the option to read their private messages, even if he is not forced to do it.
Anyway I see that there is no option to avoid this.
P.S. Please, allow me to ask something: You said that it is also possible by reading the message table in the db. Does this mean that event the users passwords can be read from a table in the db?
Thank you again for the conversation.
September 8, 2014 at 3:06 pm #190943In reply to: Activity Favorite Notification
danbp
Participanthi @aghajoon,
don’t jump into old post please !Much more convenient, would be to use the buddypress notification manager plugin !
Works with 4.0 and bp 2.02
September 8, 2014 at 3:03 pm #190942In reply to: [Resolved] bbPress and BuddyPress translation
giggio
ParticipantAll this is correct. The files is bbpress-bg_BG.mo and bbpress-bg_BG.po for bbpress and buddypress-bg_BG.mo and buddypress-bg_BG.po for buddyprerss. In wp-config – (‘WPLANG’, ‘bg_BG’) … site is in bulgarian.
And like I said, all is worked correctly (almost a year till now) before wordpress update.
September 8, 2014 at 2:51 pm #190941In reply to: Activity Favorite Notification
aghajoon
Participantthis code work for me but java script not work and when user favorite comment user can’t remove notification help me
define("BP_FAVORITE_NOTIFIER_SLUG","fa_notification"); function bp_favorite_setup_globals() { global $bp, $current_blog; $bp->bp_favorite=new stdClass(); $bp->bp_favorite->id = 'bp_favorite'; $bp->bp_favorite->slug = BP_FAVORITE_NOTIFIER_SLUG; $bp->bp_favorite->notification_callback = 'bp_favorite_format_notifications';//show the notification $bp->active_components[$bp->bp_favorite->id] = $bp->bp_favorite->id; do_action( 'bp_favorite_setup_globals' ); } add_action( 'bp_setup_globals', 'bp_favorite_setup_globals' ); function bp_favorite_format_notifications( $action, $activity_id, $secondary_item_id, $total_items,$format='string' ) { $action_checker = explode('_', $action); $activities = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'display_comments' => true) ); $glue = ''; $user_names = array(); $users = find_favorite_involved_persons($activity_id, $action); $total_user = $count = count($users); if($count > 2) { $users = array_slice($users, $count - 2); $count = $count - 2; $glue = ", "; } else if($total_user == 2) { $glue = " and "; } foreach((array)$users as $user_id) { $user_names[] = bp_core_get_user_displayname($user_id); } if(!empty($user_names)) { $favoriting_users = join($glue, $user_names); } switch ( $action ) { case 'new_bp_favorite_'.$activity_id: if($total_user > 2) { $text = $favoriting_users.' and '.$count.' liked: '.substr($activities["activities"][0]->content,0,32).'...'; } else { $text = $favoriting_users." like: ".substr($activities["activities"][0]->content,0,32)."..."; } break; } $url = '<div id="'.$action.'"class="notification"><a href="#" class="social-delete" onclick="deleteAjaxNotification(\''.$action.'\',\''.$activity_id.'\', \''.admin_url( 'admin-ajax.php' ).'\'); return false;">x</a><span class="social-loader"></span></div>'; $link = favorite_activity_get_permalink( $activity_id ); if($format=='string') { return apply_filters( 'bp_activity_multiple_favorite_notifications', '<a href="' . $link. '">' . $text . '</a>'. $url .'' ,$users, $total_user, $count, $glue, $link ); } else { return array( 'link' => $link, 'text' => $text ); } return false; } function find_favorite_involved_persons($activity_id, $action) { global $bp,$wpdb; $table = $wpdb->prefix . 'bp_notifications'; return $wpdb->get_col($wpdb->prepare("select DISTINCT(secondary_item_id) from {$table} where item_id=%d and secondary_item_id!=%d and component_action = %s",$activity_id,$bp->loggedin_user->id, $action)); } function favorite_activity_get_permalink( $activity_id, $activity_obj = false ) { global $bp; if ( !$activity_obj ) $activity_obj = new BP_Activity_Activity( $activity_id ); if ( 'activity_comment' == $activity_obj->type ) $link = bp_get_activity_directory_permalink(). 'p/' . $activity_obj->item_id . '/'; else $link = bp_get_activity_directory_permalink() . 'p/' . $activity_obj->id . '/'; return apply_filters( 'ac_notifier_activity_get_permalink', $link ); } function favorite_notifier_remove_notification($activity ,$has_access){ global $bp; if($has_access) bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->bp_favorite->id, 'new_bp_favorite_'.$activity->id ); } add_action("bp_activity_screen_single_activity_permalink","favorite_notifier_remove_notification", 10,2); function favorite_notification( $activity_id){ global $bp; $activities = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'display_comments' => true) ); $author_id = $activities['activities'][0]->user_id; $user_id = bp_loggedin_user_id(); // if favoriting own activity, dont send notification if( $user_id == $author_id ) { return false; } if ( bp_is_active( 'notifications' ) ) { bp_notifications_add_notification( array( 'user_id' => $author_id, 'item_id' => $activity_id, 'secondary_item_id' => $user_id, 'component_name' => $bp->bp_favorite->id, 'component_action' => 'new_bp_favorite_'.$activity_id, 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) ); } } add_action("bp_activity_add_user_favorite","favorite_notification", 10, 2); function deleteAjaxNotification(){ global $bp; bp_core_delete_notifications_by_item_id ($bp->loggedin_user->id, $bp->bp_favorite->id, 'new_bp_favorite_'.$activity->id); die(); } add_action('wp_ajax_deleteAjaxNotification', 'deleteAjaxNotification' ); function bp_like_add_like_action() { global $bp, $activities_template; if ( bp_activity_can_favorite() ) : $my_fav_count = bp_activity_get_meta( bp_get_activity_comment_id(), 'favorite_count' ); $my_fav_count = "<span>".$my_fav_count."</span>"; $is_favorite = apply_filters( 'bp_get_activity_is_favorite', in_array( bp_get_activity_comment_id(), $activities_template->my_favs ) ); if ( !$is_favorite ) : ?> <a href="<?php echo apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/favorite/' . bp_get_activity_comment_id() . '/' ), 'mark_favorite' ) ); ?>" class="tooltip-trigger fav bp-secondary-action bp-primary-action" title="<?php _e( 'Favorite', 'buddypress' ); ?>" style="position:relative;"><?php _e( 'Favorite', 'buddypress' ); ?><?php echo $my_fav_count; ?></a> <?php else : ?> <a href="<?php echo apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/favorite/' . bp_get_activity_comment_id() . '/' ), 'mark_favorite' ) ); ?>" class="tooltip-trigger unfav bp-secondary-action bp-primary-action" title="<?php _e( 'Remove Favorite', 'buddypress' ); ?>" style="position:relative;"><?php _e( 'Remove Favorite', 'buddypress' ); ?><?php echo $my_fav_count; ?></a> <?php endif; endif; } add_filter( 'bp_activity_comment_options' , 'bp_like_add_like_action', 1000 );and java code
function deleteAjaxNotification(action_id, activity_id, adminUrl){ jQuery('#'+action_id).children(".social-delete").html(""); jQuery('#'+action_id ).children(".social-loader").show(); jQuery.ajax({ type: 'post', url: adminUrl, data: { action: "deleteAjaxNotification", action_id:action_id, activity_id:activity_id }, success: function(data) { jQuery('#'+action_id).parent().hide(); } }); }September 8, 2014 at 2:49 pm #190940danbp
Participant@cartographer,
nobody forces the admin to read private messages, except, depending the country, some laws or other regulations. Any other reason to read is a personnal option.And it is anyway possible by reading the message table in the db.
To disambiguate any further question around this, read the answer of @johnjamesjacoby
September 8, 2014 at 1:39 pm #190935durkk
ParticipantGetting closer!
So I made a custom post type via the CPT UI plugin. I then proceeded to remove the slug from the URL as suggested here: http://colorlabsproject.com/tutorials/remove-slugs-custom-post-type-url/
I have buddypress installed and use a filter to have a profile link as follows: mydomain.com/username. This to be able users to use a dynamic link in a widget that leads them to a personal page.
mydoamian.com/username/personalpage where username is dynamic to logged in user.This works perfectly with pages but not with the custom post type I made. Anyone got an idea what I am doing wrong here?
September 8, 2014 at 1:36 pm #190934In reply to: BuddyPress overrides members Packages
danbp
Participanthow do you expect some help if you don’t give the theme name or a site url ?
This is not a buddypres issue, but a wordpress setting affair.Make the member package page as start page and set buddypress as private or members only.
More about “private” here:
https://buddypress.org/support/tag/private/September 8, 2014 at 1:28 pm #190933In reply to: Make an extra Site only with the post-form
danbp
Participantinstalling an extra site just for sharing posts is somehow a big task for… nothing and requires a multisite install. Made it simple ! Share your RSS feed…
http://www.wpbeginner.com/wp-tutorials/how-to-add-social-buttons-to-wordpress-rss-feed/Sorry If i misunderstand you. If the goal is to ADD an external link to your posts, you can create a custom post type for that or simply paste the link into a post.
If this is also not what you want, explain what kind of post, from where and how your members should use a sharing button. Even if BuddyPress doesn’t handle posts, he only shows them.
Also you can read some related forum topics here:
https://buddypress.org/support/tag/share/September 8, 2014 at 1:13 pm #190932In reply to: [Resolved] How can I disable the "last active" time?
danbp
ParticipantHere 2 snippets you can use (one or both depending your needs).
Add them to your child-theme functions.php or to bp-custom.php/* remove "not recently active" */ function bpfr_core_get_last_activity( $last_activity_date, $string ) { if ( empty( $last_activity_date ) ) // we do nothing $last_active = ''; else $last_active = sprintf( $string, bp_core_time_since( $last_activity_date ) ); } add_filter( 'bp_core_get_last_activity', 'bpfr_core_get_last_activity' ); /* remove whole recently active filter */ function bpfr_remove_last_activity_filter() { remove_filter( 'bp_core_get_last_activity', $last_active, $last_activity_date, $string ); } add_filter( 'bp_core_get_last_activity', 'bpfr_remove_last_activity_filter' );September 8, 2014 at 1:04 pm #190930In reply to: Managing group creation
danbp
Participantchange the tables prefix !
Check also some index.php firstly, for some encrypted datas, like base64_decode on the first line…If this matches, you have also to scan your computer.
You can use the wordfence plugin (and de-install if nothing is found)
This one is really efficient against fake registering.
But in any case, this is like carrying water in a sieve or perforated device !
September 8, 2014 at 11:02 am #190923In reply to: [Resolved] Re-install Buddypress Tables
christicehurst
ParticipantBelow is the errors that gave out after installing Buddypress
WordPress database error: [Table 'christic_database.wp_bp_xprofile_data' doesn't exist] SELECT id, user_id, field_id, value, last_updated FROM wp_bp_xprofile_data WHERE field_id = 1 AND user_id IN (1) WordPress database error: [Table 'christic_database.wp_bp_xprofile_fields' doesn't exist] SELECT * FROM wp_bp_xprofile_fields WHERE id = 1 WordPress database error: [Table 'christic_database.wp_bp_xprofile_fields' doesn't exist] SELECT type FROM wp_bp_xprofile_fields WHERE id = 1 WordPress database error: [Table 'christic_database.wp_bp_xprofile_fields' doesn't exist] SELECT id FROM wp_bp_xprofile_fields WHERE id = 1 Warning: Cannot modify header information - headers already sent by (output started at /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php:227) in /home/christic/public_html/wp-includes/pluggable.php on line 1173 WordPress database error: [Table 'christic_database.wp_bp_user_blogs' doesn't exist] SELECT COUNT(*) FROM wp_bp_user_blogs WordPress database error: [Table 'christic_database.wp_bp_user_blogs' doesn't exist] DELETE FROM wp_bp_user_blogs WHERE 1=1 Notice: Trying to get property of non-object in /home/christic/public_html/wp-content/plugins/buddypress/bp-members/bp-members-admin.php on line 829 Notice: Trying to get property of non-object in /home/christic/public_html/wp-content/plugins/buddypress/bp-members/bp-members-admin.php on line 829 WordPress database error: [Table 'christic_database.wp_bp_user_blogs' doesn't exist] SELECT COUNT(id) FROM wp_bp_user_blogs WHERE user_id = 1 AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs' doesn't exist] INSERT INTO wp_bp_user_blogs ( user_id, blog_id ) VALUES ( 1, 1 ) WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT blog_id, meta_key, meta_value FROM wp_bp_user_blogs_blogmeta WHERE blog_id IN (1) ORDER BY id ASC WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'url' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'url','http://www.christicehurst.me') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'name' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'name','Chris Ticehurst') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'description' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'description','Creative Writer cat') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'last_activity' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'last_activity','2014-09-08 10:59:55') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'close_comments_for_old_posts' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'close_comments_for_old_posts','') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'close_comments_days_old' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'close_comments_days_old','14') WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] SELECT id FROM wp_bp_user_blogs_blogmeta WHERE meta_key = 'thread_comments_depth' AND blog_id = 1 WordPress database error: [Table 'christic_database.wp_bp_user_blogs_blogmeta' doesn't exist] INSERT INTO <code>wp_bp_user_blogs_blogmeta</code> (<code>blog_id</code>,<code>meta_key</code>,<code>meta_value</code>) VALUES (1,'thread_comments_depth','5')Below is the errors from two other plugins
Strict Standards: Declaration of UberMenuWalkerCore::start_lvl() should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 227 Strict Standards: Declaration of UberMenuWalkerCore::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 227 Strict Standards: Declaration of UberMenuWalkerCore::end_el() should be compatible with Walker_Nav_Menu::end_el(&$output, $item, $depth = 0, $args = Array) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 227 Strict Standards: Declaration of UberMenuWalkerEdit::start_lvl() should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 401 Strict Standards: Declaration of UberMenuWalkerEdit::end_lvl() should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = Array) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 401 Strict Standards: Declaration of UberMenuWalkerEdit::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home/christic/public_html/wp-content/plugins/ubermenu/core/UberMenuWalkerCore.class.php on line 401 Notice: Undefined index: ctype in /home/christic/public_html/wp-content/plugins/mycred/addons/banking/services/mycred-bank-service-interest.php on line 575 Notice: Undefined index: user_id in /home/christic/public_html/wp-content/plugins/mycred/addons/banking/services/mycred-bank-service-interest.php on line 576September 8, 2014 at 9:08 am #190914danbp
Participantplease read here:
https://buddypress.org/support/topic/a-user-asked-for-an-activation-key-while-registering-to-my-site/#post-173067Other topics related to this subject:
https://buddypress.org/support/tag/activation-key/And please don’t jump in old topics, this one relates to gravity form. Open your’s and give details about the issue, used theme, bp version and login plugin if used.
September 8, 2014 at 9:02 am #190912In reply to: [Resolved] bbPress and BuddyPress translation
danbp
Participantverify that your translation files are in the correct directory.
For bbPress:
wp-content/languages/bbpress/bbp-xx_XX.mo (required)
wp-content/languages/bbpress/bbp-xx_XX.po (option)
where xx is your languageFor BuddyPress:
wp-content/languages/plugins/buddypress-xx_XX.mo (required)
wp-content/languages/plugins/buddypress-xx_XX.po (option)FYI: both plugins are shipped with a pot file containing the strings you can translate.
/plugin_name/languages/plugin_name.potDon’t put a translation in this folder, as it will be overwritten at each update.
September 8, 2014 at 1:50 am #190897hkcharlie
ParticipantI’m getting it too and have been for a long time now.
This is such an important part of the whole nature of Buddypress, I don’t understand why it appears to be ignored.September 7, 2014 at 9:02 pm #190893shanebp
Moderator>I can also report that the same bug is manifesting in the âMy Favoritesâ and âMentionsâ streams in the same way that it does in âMy Groupsâ â only the word ârepliedâ appears.
I cannot replicate those issues.
Re ‘My Groups’: Fixed. Thanks to @r-a-y
See: https://buddypress.trac.wordpress.org/attachment/ticket/5862/5862.01.patchHopefully it will make it into 2.1
September 7, 2014 at 8:11 pm #190891In reply to: How do I set the theme?
danbp
Participanthi @netsector,
read first the documentation of your theme and anything about theme on the codex, then search the forum.
Additionnally read also here and give at least your theme name.
You obfuscate your pages source code, so it’s difficult to help you anyway.
-
AuthorSearch Results