Search Results for 'buddypress'
-
AuthorSearch Results
-
July 9, 2015 at 6:53 am #241616
In reply to: Favorite/Bookmark single post
danbp
Participanthi @nkeatign,
this here if it helps you:
https://buddypress.org/support/topic/adding-favourite-posts-as-a-tab-in-buddypress/#post-236682July 9, 2015 at 6:40 am #241615In reply to: How to show Biographical Info in members profile?
danbp
Participantto add a profile field like biography to profiles, you have to activate xprofile component in BP settings.
This and much more is all explained on the Codex.
it just showing membername|sitename This is not a issue, but intended so by default.
membername|sitename is the page title when on a member profile
members|sitename is the page title when on the member directory – where “members” is the title you give to the member page. BP create automatically this page and use “members” as title at first install, but you can modify it.Aside, you’re using admin as user name. I strongly recommend you to change this.
https://codex.wordpress.org/Hardening_WordPress
http://www.wpbeginner.com/wp-tutorials/how-to-change-your-wordpress-username/July 9, 2015 at 3:08 am #241605In reply to: [Resolved] Limiting Activities by User’s City
puffyjoe
ParticipantI just wanted to say I got it working. this is my code to filter by the city I save in meta
public function activity_querystring_filter( $query_string = '', $object = '' ) { if( $object != 'activity' ) return $query_string; // You can easily manipulate the query string // by transforming it into an array and merging // arguments with these default ones $args = wp_parse_args( $query_string, array( 'action' => false, 'type' => false, 'user_id' => false, 'page' => 1 ) ); if( bp_is_user() ) $args['user_id'] = bp_displayed_user_id(); // try to use args $user_id = bp_loggedin_user_id(); $user_id = bp_loggedin_user_id(); $city = xprofile_get_field_data('9', $user_id); // $city = xprofile_get_field_data('9', $args['user_id']); //not sure if this is set right but could work // An activity meta query <img src="https://codex.buddypress.org/wp-includes/images/smilies/simple-smile.png" alt=":)" class="wp-smiley" style="height: 1em; max-height: 1em;"> $args['meta_query'] = array( array( /* this is the meta_key you want to filter on */ 'key' => 'city', /* You need to get all values that are >= to 1 */ 'value' => $city, 'type' => 'CHAR', 'compare' => '=' ), ); $query_string = empty( $args ) ? $query_string : $args; return apply_filters( 'bp_plugin_activity_querystring_filter', $query_string, $object ); }//end method activity_querystring_filterJuly 8, 2015 at 4:09 pm #241586In reply to: Blog body content not appearing on Buddyblog
danbp
Participanthi @revadigital,
not sure what you call buddyblog… The blog is part of WordPress, not BuddyPress.
Can you give site url, theme, list of plugins and install type (network or single) please ?
Found a site which seems to be yours. If it is the case, you’re using Frisco for BP, an old theme. This theme hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Since BP 1.9 (dec 2013), you can use almost use any existing theme.
If you’re in a test phase, use simply 2015. Once anything is working, you can search a theme. 🙂July 8, 2015 at 8:24 am #241575danbp
ParticipantSeems to be a weird bug ! A ticket was opened a few weeks back:
https://buddypress.trac.wordpress.org/ticket/6360Same issue here, with a patch:
https://buddypress.trac.wordpress.org/ticket/6371Test the patch, an give feedback (important) about your issue and some details about your host config: server type, php & mysql version.
You can login by using same credentials as here.Good luck !
July 8, 2015 at 8:20 am #241574In reply to: Buddypress posting privacy
Henry Wright
ModeratorYou can set
scopetofriendsto filter your activity loop. See the Activity Loop article for more info.July 8, 2015 at 8:08 am #241573In reply to: Edit Students Stats Widget
danbp
ParticipantHi @chirag1212,
you’re on BuddyPress support forum. But BP hasn’t a BuddyPress Course Stats widget.
Ask on your theme support or the widget author.July 8, 2015 at 5:20 am #241571Christian Kramer
ParticipantYes, this is the only part I cannot access.
I use buddypress in the main site of the network only. I installed it as described in the page you linked.
Buddypress is a part of the plugin directory in the wordpress installation.
July 8, 2015 at 1:57 am #241568In reply to: Content Invisible to Google
djsteveb
ParticipantI see how you are using groups – so it does appear that links to them are easily discoverable from your public facing pages.
If you do a view source and look at your code for each of your groups, you will notice that the page title is exactly the same for all of your groups ( <title>Activities – Freaky Rivet</title> ) – and there is no meta name description =
Two major issues for the big G.
Which version of buddypress are you using?
This problem concerns me so much that I have kept one of my sites with an older version of buddypress (2.2.3.1 ) with the cobbled custom code I was able to get from wpmudev ( http://premium.wpmudev.org/forums/topic/bp-meta-tite-description-for-groups-and-members-pages#post-806736 ) – the cobbled code may work the newer version of bp – but things are quite confusing with how wp has changed up some of the title thing, and bp has it’s way of things and there are possible conflicts with priority or something..
The discussion on this trac ticket( https://buddypress.trac.wordpress.org/ticket/6107 ) says things have been “fixed” – I do appreciate the devs working on it a bit – but I have a feeling the fix is more of a “make it work in a semi-okay way with a couple of setups” – not much as far as giving users real control over the titles and descriptions.
I am guessing people will point to theme designers to hook this up, and they will point to “we use wordpress’s suggested way of title-ing (wp the title or whatever) – and so it’s wp/bp issue, and descriptions should be handled my an seo plugin – but given that bp’s pages are pseudo pages without any taxonomy registered, it appears that yoast and others have so desire to work with it.
This is my current understanding, and may be not 100% accurate – what I gather after posting many questions and issues relating to this in various places.
I’d pay someone to code a plugin that gives options for bp meta stuff like the suggestion I posted before, and give it to the community. If I could understand all the bp/wp code and php I’d gladly make it. It seems the BP coders are spread a bit thin, so I have no good options for fixing this issue at the moment.
July 7, 2015 at 11:49 pm #241566danbp
ParticipantJuly 7, 2015 at 11:43 pm #241565danbp
ParticipantIs this the only part where you can’t access ?
Ensure you followed correctly all install instructions
BuddyPress does not work on installations where you give WordPress its own directory.
July 7, 2015 at 10:30 pm #241563Quinn Goldwin
ParticipantTHANK GOD, I FINALLY GOT IT!!!
I’m going to share what I did with the community so they dont have to go through the crap I went though.
The directions that buddydev.com gives you is dated and didnt work with my theme. Since my theme did not have a activity.php I had to change out the file located in buddypress plugin ….
/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/activity.php
inside that file go to line 48 should be something like this
if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( ‘just-me’ ) ) )ALL I CHANGED WAS THAT LINE OF CODE ABOVE TO THIS
if ( is_user_logged_in() && bp_is_my_profile() && ( ” == bp_current_action() || ‘just-me’ == bp_current_action()||BPCOM_ACTIVITY_SLUG == bp_current_action() ) )IF YOU USE ANY OF THE CODE FROM BUDDYDEV SITE http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/#comment-1497563 WITH ALL THE <?PHP BREAKS. IT WILL NOT WORK.
NOTE: For some reason when I tried to add this file to my theme folder, it broke my Activity stream, I didnt design the theme so I have no clue why it would be doing that. So if you add this to the buddypress plugin you will have to replace that file everytime you update buddypress.
HOPE THIS HELPS, THIS TOOK ME A BETTER PART OF A DAY ALMOST 2 DAYS TO ADD A POST FORM FOR THE ALL ACTIVITY IN PROFILE ON THE BOSS THEME. I HOPE IT HELPS THE COMMUNITY NOT HAVE THE FRUSTRATIONS I DID
PLEASE SHOW ME SOME LOVE AND SHARE MY WEBSITE ON YOUR BLOG OR COMMENT ON MY SITE.
July 7, 2015 at 6:31 pm #241555Quinn Goldwin
ParticipantNever mind I used this css coding to add line breaks, still not perfect but it looks so much better than it used to!
#buddypress table.profile-fields p { margin-top: 10px !important; margin-bottom: 10px !important; }July 7, 2015 at 6:30 pm #241554Quinn Goldwin
ParticipantThanks Henry and Mercime, yes I updated the Trac Ticket. Would you guys know of a css quick fix until they update the core of buddypress?
July 7, 2015 at 6:00 pm #241549danbp
ParticipantYou found the right solutions, but you haven’t to use them in theme’s functions.php but in the template.
Template files are stored in bp-templates/bp-legacy/buddypress
activity-loop.php is in bp-templates/bp-legacy/buddypress/activity/Create a child-theme and do your changes from there.
July 7, 2015 at 4:41 pm #241546@mercime
Participant@henrywright OP has commented at https://buddypress.trac.wordpress.org/ticket/5577
5 days agoJuly 7, 2015 at 3:49 pm #241544In reply to: Divi Compatibility?
@mercime
Participant@serfma They posted a walk-through about setting up BuddyPress last year using the Divi 2.0 theme at http://www.elegantthemes.com/blog/tips-tricks/an-introduction-to-buddypress Check with them though if current Divi version is compatible with latest BuddyPress version.
July 7, 2015 at 12:26 pm #241542In reply to: User login form problem
Henry Wright
ModeratorPlease don’t double post
July 7, 2015 at 11:30 am #241538danbp
ParticipantThere is a ticket about this issue. See if you’re concerned and don’t hesitate to mention your issue and this topic.
You can login to Trac with same credentials as here
July 7, 2015 at 10:59 am #241534Henry Wright
ModeratorRight. So it looks as though it could be something the BuddyPress core team might need to look at. Can you open a Trac ticket explaining how the profile fields are displaying in the wrong order? If you could provide as much info as you can that’d be great.
You can use the same username and password as you use here in the forums.
July 7, 2015 at 10:40 am #241533Quinn Goldwin
ParticipantHey Henry yup it even happens on the 2015 theme. I recently updated to buddypress 2.3.2 .. I also deactivated every plugin I had. its something in buddypress mobile coding they added in 2.3.
July 7, 2015 at 9:59 am #241526Henry Wright
ModeratorThe activity post form that is displayed on the site-wide activity page can be found here. You could use a modified version of that in your profile template?
July 7, 2015 at 9:50 am #241524Henry Wright
ModeratorYou could use bp-custom.php for this if a hook is available but an alternative method would be to override the template. Check out the BuddyPress Template Hierarchy article for more info. This approach gives you more control over what exactly is to be displayed on your website.
July 7, 2015 at 9:47 am #241523In reply to: Extended profiles
Henry Wright
ModeratorThis can be accomplished using BuddyPress. As to whether you’ll need plugins or custom code, I’d be tempted to say you’ll need to go down the custom route because I haven’t seen a plugin that will do this for you (I may be wrong so check the Plugin Directory first).
July 7, 2015 at 7:51 am #241516Prabin
Participant@danbp, I have an issue..
I have “Most Agreed” option in single group page. but the query is not returning desired value.
can you look into this?Here’s the Screenshot

and Here’s the code
if( class_exists( 'BP_Group_Extension' ) ) : class bpgmq_feature_group { public function __construct() { $this->setup_hooks(); } private function setup_hooks() { $bp = buddypress(); add_filter( 'bp_ajax_querystring', 'custom_filter_ajax_querystring' , 999, 2 ); // you need to do it for the group directory add_action( 'bp_group_activity_filter_options', array( $this, 'agreed_option' ) ); } public function agreed_option() { ?> <option value="featured"><?php _e( 'Most Agreed' ); ?></option> <?php } } function custom_filter_ajax_querystring( $querystring, $object ) { #var_dump($querystring); if($object != 'activity' ) return $querystring; $defaults = array('type'=>'active','action'=> 'active','scope'=> 'all','page'=>1,'order'=>'DESC'); #exit; /*if( $bpgmq_querystring['type'] != 'featured' ) return $querystring;*/ $bpgmq_querystring = wp_parse_args( $querystring, $defaults ); if( $bpgmq_querystring['type'] == 'featured' ){ $bpgmq_querystring['meta_query'] = array(array('key'=> 'favorite_count','value'=> 1,'type'=> 'numeric','compare' => '>=')); return apply_filters( 'bpgmq_filter_ajax_querystring', $bpgmq_querystring, $querystring ); } var_dump($querystring); } function bpgmq_agreed_group() { if( bp_is_active( 'activity') ) return new bpgmq_feature_group(); } add_action( 'bp_init', 'bpgmq_agreed_group' ); endif;Thanx in Advance
-
AuthorSearch Results
