Search Results for 'buddypress'
-
AuthorSearch Results
-
May 22, 2014 at 10:20 pm #183251
In reply to: Display xprofile data in Activity Stream
saxisme
Participant@danbp, thank you very much!
Surely this leads me to the right direction – I am now using this function in other parts of the site.
What I am struggling to to is something slightly different: put the xprofile field (Company) after the user name, in the same user profile link.
Ex:
<a original-link-to-member-profile-page>saxisme - company xyz</a> posted a content in the group ABC.I am starting to play with what @danpdfr is posting here
Thank you in advance!
May 22, 2014 at 6:36 pm #183243danbp
ParticipantThe add friend button contains an ajaxified url, a cookie, a nonce and some other stuff. By default, this button is intended to be on members directory and on the profile header.
Open /bp-friends/firends-widget.js to see how BP actually handle this.If you absolutely need to have this button elsewhere, a custom page for example, you need to extend the original class witch is in bp-xprofile-loader.php:38 (BP 2.0.1)
Otherwise, any action on this added button will always return to the member profile page after a click and not reload like it does when in the member directory.
I’m not a developper so i can’t help you more.
Perhaps read here for better understanding of this button.May 22, 2014 at 4:38 pm #183239sfikas
ParticipantI forgot to mention the version of buddypress and wordpress in my previous post.
Buddypress 2.0.1
Wordpress 3.9.1May 21, 2014 at 5:51 pm #183209In reply to: Checkboxes for deleting notifications
May 21, 2014 at 5:45 pm #183208In reply to: Set checbox value with xprofile_set_field_data
danbp
ParticipantMaybe read here, the post and all the comments:
Fetching and Showing only Specific fields from BuddyPress XProfile data
May 21, 2014 at 3:04 pm #183205In reply to: Custom field in admin groups backend
shanebp
ModeratorYou may find some hints here:
May 21, 2014 at 3:00 pm #183204In reply to: Translation fails only at "Sitewide Activity"
shanebp
ModeratorYou can always submit a ticket at
https://buddypress.trac.wordpress.org/May 21, 2014 at 2:33 pm #183202guoyunhebrave
ParticipantAfter disabled BuddyPress, robots didn’t stop. I am almost sure the robot can skip the register page (both WordPress signup.php and BuddyPress register page).
Maybe robots have a backdoor to register on WordPress. I don’t know how to further test.
May 21, 2014 at 2:14 pm #183201In reply to: WordPress Theme Incompatibility
erickojitoz
ParticipantYes I assigned each page. For example, activity for activity, members for members, etc. And it makes the change, because for example, when plugin activated the page activity shows “Sitewide Activity” as tittle, when BP is inactive only shows “Activity”.
I tried creating a buddypress.php page, I even changed the header and footers. I moved all the documents from bp_template/legacy and didn’t work. I tried copying the basic structure from the default themes and nothing.
When I activate other themes, they perfectly work, so thats why I think the problem is in my template.
I am doing something wrong?
May 21, 2014 at 1:59 pm #183198guoyunhebrave
ParticipantI installed this plugin today. I keep receiving robots registering until now.
I think the robots have passed by WangGuard and any other CAPTCHA plugins, because all of them have no effect.
Before I use BuddyPress on this site, I didn’t meet these problem. A simple CAPTCHA plugin works well. I will try to disable BuddyPress for hours, and see what will happen.
May 21, 2014 at 1:30 pm #183193In reply to: Translation fails only at "Sitewide Activity"
wpleo
ParticipantThank you @shanebp!
You’re right, I found this strange _x. But it didn’t make the translation work for me.
I got this bp-custom.php:
define( ‘BPLANG’, ‘pt-br’ );
if ( file_exists( WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ );
//echo “FOUND IT!!”;
}I’m pretty sure that this fil is being read and that the language file is being found because of the flag that I put: “FOUND IT!!”. In fact everything is being translated but the titles! No title got the proper translation, like:
http://astronomia.blog.br/forum-astronomia/atividades/ (Sitewide Activity)
http://astronomia.blog.br/forum-astronomia/pessoas/ (Members)
http://astronomia.blog.br/forum-astronomia/grupos/ (Groups)Each one of these expressions is translated in the .po and .mo, acording to Loco Translate.
Already deleted the pages and re-created it but nothing.
I’m still trying, if I find a solution I’ll post it here.
Thanks for the help!
May 21, 2014 at 11:57 am #183188danbp
ParticipantSince BP 2.0, you can use bp_parse_args to customise template loops and on a much easier way as never before.
The example function below will hide profile groups with ID 1 and profile fields IDs 6, 18 & 39 on the public profile screen of each member and stay visible on the edit screen. Tested & approved 2.0.1
If you get some php warning while using this function, be aware that there is a bug in 2.0.1 bp-xprofile-classes.php (fixed. See ticket). Simply apply the lattest patch to get rid of this error.
function flegmatiq_profiles( $retval ) { // conditionnals to set accordingly to your purpose if( !is_user_logged_in() && !bp_is_profile_edit() ) { $retval['exclude_groups'] = '2'; $retval['exclude_fields'] = '6,18,39'; } return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'flegmatiq_profiles' );In your particular case, you have to play with the conditionnals
The example below is to give you an idea how to handle this. Not tested !
function flegmatiq_profiles( $retval ) { $myfield = xprofile_get_field_data( 'Faculty', $user_id ); if( empty( $myfield ) ) return; // or echo if( $myfield == "Faculty" ) if( bp_is_profile_edit() ) { $retval['exclude_groups'] = '1,56'; $retval['exclude_fields'] = '6,18,39'; . } if $myfield == "field_name_2"; // do something other... return $myfield; add_filter( 'bp_after_has_profile_parse_args', 'flegmatiq_profiles' );May 21, 2014 at 11:17 am #183185In reply to: Language missing string
danbp
ParticipantYes, I did search before asking, but this 2 string are so hard to match in the search results.
The problem is not the strings, but the translation of them. And this is most probably a theme issue or a wrong path to BP’s translation.
You can check this point by activating one of WP’s default template. If it’s translated, you know the culprit.It might just be that the theme author needs to update the theme to be compatible with the latest WP and BP versions. As we have no access to the premium theme, best place to ask is the theme’s support forums or contact theme author.
If you’re comfortable with code, here’s a workaround. Be aware that this does not solve the problem, but only ignore it.
May 21, 2014 at 9:01 am #183184In reply to: Language missing string
Bard
ParticipantThis is what I have:
Theme name(themeforest):Klein-2.0.9
Wordpress 3.9.1
bbPress 2.5.3
Breadcrumb NavXT 5.0.1
BuddyPress 2.0.1
Contact Form 7 3.8
Gears 1.3
WooCommerce 2.1.8
WPBakery Visual Composer 3.7.3Yes, I did search before asking, but this 2 string are so hard to match in the search results.
May 21, 2014 at 8:26 am #183182In reply to: bbPress User Profile vs. Buddypress User Profile
danbp
ParticipantBP, bbP or WP user are all registered in the same DB table: wp_users
I’ve never actually found a link that goes to the old bbPress profiles
You expect something other ? And if they don’t exist, they cannot redirect.
If you havee other questions about bbp/bp forum, read here first. 🙂
May 21, 2014 at 8:10 am #183180In reply to: Language missing string
danbp
Participant@dreamwork
WP version ?
BP version ?
Theme name ?
Used Plugins ?Did you search on this forum before asking ?
May 21, 2014 at 8:07 am #183179In reply to: notifications
danbp
ParticipantHello @projectfms,
Made is a premium theme fom 2012. And support is included in the licence price. His compatibility is actually given for WP 3.7 and BP 1.8.
Checked your home page source code and found a path to bp-default:
https://www.glosszenenzo.nl/wp-content/plugins/buddypress//bp-themes/bp-default/_inc/global.js?ver=20110818Give a try to this solution.
– rename the mentionned global.j into xxxglobal.js
– go to wp-content/plugins/buddypress/bp-templates/bp-legacy/js/ and copy buddypress.js
– return to /wp-content/plugins/buddypress//bp-themes/bp-default/_inc/ paste buddypress.js and rename it to global.js
– clear browser cache
– check if it changed something.Otherwide you have to ask the theme author. We cannot help more here for premium theme issues.
Also read general theme documentation.
May 21, 2014 at 6:44 am #183176In reply to: Feature Request: Ajax loading spinner
Prince Abiola Ogundipe
Participant@godavid33,@henrywright
I brought the loading function back in one of the theme am building by using just css.
1, I added ajax spinner
2, I changed the button background while loading to make it look disabled.
below is an example for the post button:
#buddypress #whats-new-form a.loading,
#buddypress #whats-new-form input.loading {
padding-right: 25px ! important;
background-color:#bbb ! important;
background-image:url(“/wp-content/themes/your-theme/img/ajax-loader.gif” ) ! important;
background-position: 93% 50% ! important;
background-repeat: no-repeat ! important;
}using #buddypress a.loading{} will affect almost all the button.
Naijaping
May 20, 2014 at 11:03 pm #183167Tbarnes37
ParticipantHi @soran7
I’ve narrowed the problem down further and found a hack that works for me. If you look in buddypress-functions.php, there’s a function at line 739 called bp_legacy_theme_new_activity_comment. At line 770 is the process of inserting the new comment into the activity stream.
It begins by checking if $activities_template->activities[0] is set. I’ve tested this function on an actual group page and found that this returns true, so it’s able to handle the activities effectively. However, on my custom template, this returns false; thus, the new comment data is never inserted. Of course this is separate from the process of saving the new comment to the database, so it makes sense that the comments still show up after refresh.
I’m still hoping to find a less hacky way to do this, because my current solution messes up other activity stream pages, but I’ve managed to get my custom template working by copying buddypress-functions.php into my theme folder and modifying line 768 to have a ‘groups’ scope.
So change line 768 from this:
bp_has_activities( 'display_comments=stream&hide_spam=false&include=' . $comment_id );to this:
bp_has_activities( 'scope=groups&display_comments=stream&hide_spam=false&include=' . $comment_id );Hope that helps! And if you’re able to find a better, less damaging way, please let me know. My hangup currently is that even if I manually set $bp->current_action to ‘groups’ in my template, it gets over-written at some point after page load, due to a url check that finds my template to not be at a group home url.
May 20, 2014 at 9:59 pm #183165Boone Gorges
KeymasterSee how BuddyPress does this: https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-groups/bp-groups-template.php
I don’t know why BP does it this way (I would have to check the logs – it seems fishy) but in any case, this probably explains why you’re not seeing anything in your template. You should mimic what you see in that function.
May 20, 2014 at 8:04 pm #183157In reply to: notifications
Glszn
ParticipantBuddypress is getting on my nerves!!
May 20, 2014 at 7:39 pm #183156In reply to: Display xprofile data in Activity Stream
danbp
ParticipantHi @saxisme,
This function will add the company name under each user avatar, on every activity screen (swa, profile, friends…)
To do so, you have to add a do_action to the template. In your case, add it into (child theme)/buddypress/activity/entry.php, before the closing tag of the div containing the avatar (around line 24)The snippet goes into theme’s functions.php or bp-custom.php
function saxisme() { $user_id = bp_get_activity_user_id(); $company = xprofile_get_field_data('42', $user_id); // field ID or name echo '<div class="authorinfo">'. $company . '</div>'; } add_action( 'showsaxisme', 'saxisme' );You add this to entry.php
<?php do_action( 'showsaxisme'); ?>May 20, 2014 at 7:23 pm #183152In reply to: Feature Request: Ajax loading spinner
r-a-y
KeymasterWe used to use an AJAX spinning GIF, but removed it due to various theme issues:
https://buddypress.trac.wordpress.org/ticket/4610I’ve added a patch for an alternative to the throbbler in 4951:
https://buddypress.trac.wordpress.org/ticket/4951It uses a progress bar animation for the background of the button.
May 20, 2014 at 6:53 pm #183149In reply to: BP_DTheme is not defined
godavid33
ParticipantIt amazes me that with such a simple solution, no one was able or willing to answer this :/
At any rate, here is the fix. F*** functions.php, just copy buddypress.js and put it in the /js directory of your theme. Edit till your heart’s content.
GG WP
May 19, 2014 at 8:12 pm #183126In reply to: BP_DTheme is not defined
godavid33
ParticipantStill a problem. Perhaps a better, clearer, more easily answered question would be “How can I override buddypress javascript?”
-
AuthorSearch Results