Search Results for 'buddypress'
-
AuthorSearch Results
-
May 21, 2016 at 11:11 am #253602
In reply to: Components do not display in page assignment area
danbp
ParticipantThis is not an issue, but how it works !
The’re only 3 pages to assign when you activate ALL components.
1) members
2) site activity
3) groupsIf registering is allowed, you have 2 other pages:
– registering
– activationXprofile, Messages, Friends, etc are mostly sub parts of the mandatory Members component/page.
May 21, 2016 at 3:21 am #253600In reply to: Buddypress multilingual with sublanguage
sharmavishal
Participant@pandafoxxxx can you kindly list the disadvantages of polylang? polylang worked for bbpress as well as buddypress for me….
May 20, 2016 at 7:45 pm #253591In reply to: Error on installation
dredre3000
ParticipantIt also says buddypress is not compatible with my version of wordpress so not sure if that’s why…
May 20, 2016 at 2:22 pm #253587In reply to: change username to display name
danbp
ParticipantMay 20, 2016 at 2:11 pm #253585In reply to: Not show all activity
danbp
ParticipantPlease read first BP’s documentation:
Many topics with same question where already resolved.
https://buddypress.org/support/search/bp_after_has_activities_parse_args/May 20, 2016 at 12:06 pm #253582Topic: change username to display name
in forum How-to & Troubleshootingmegin
ParticipantI would like to keep the friendliness of display in activity stream. I want to post @display_name instead of @user_login/@user_nicename in post activity stream and show @display_name as result post. Anybody please help me.
Wordpress version : Version 4.5.2
Buddypress Version 2.5.2May 19, 2016 at 10:04 pm #253574In reply to: Logged In User Only Information on Profile
ekko848
ParticipantNot sure if this is the best way to do this (still figuring out BuddyPress functions), but I added this code to my profile.php and it works for logged in users only
<?php if ( bp_is_my_profile() ) { echo 'Hello'; } ?>May 19, 2016 at 9:41 pm #253571In reply to: Connecting WC Vendors with BP
insearchofasolution
Participant@sharmavishal It won’t let me post my reply here so I try again after this post. I have just tried this but it does not hing really. Do you have any experience with this?
May 19, 2016 at 6:56 pm #253564In reply to: WordPress 4.5
danbp
ParticipantYou’re welcome !
May 19, 2016 at 6:43 pm #253561danbp
ParticipantHi,
read for usage and context for bp_parse_args on codex.
May 19, 2016 at 6:15 pm #253558In reply to: Email template folder
navyspitfire
ParticipantThanks for replying; I already have an ongoing issue regarding sending HTML emails from that codex page (my thread here).
Also that codex page doesn’t really address my issue as a whole; there are a lot of email notifications that are sent out to users and admins, much more than are accessible in the Buddypress Emails admin menu option.
May 19, 2016 at 5:59 pm #253556In reply to: Email template folder
shanebp
ModeratorSee this section: Customize Email Template on this codex page.
May 19, 2016 at 5:57 pm #253555In reply to: WordPress 4.5
Don
ParticipantOK then, perhaps someone should update the last column of that page.
In addition, https://wordpress.org/plugins/buddypress/ indicates the latest version of BuddyPress is WordPress compatible up to version 4.4.3.
Thank you,
DonMay 19, 2016 at 12:13 pm #253546In reply to: Sorting activity stream
subair.tc
Participanthi @henrywright , @danbp
Thanks for your great help,
i have solved the issue without hacking the code using the
bp_activity_paged_activities_sql
filter in class-bp-activity-activity.php ~L, 609
the code below is i have used, please refer this thred , where i got some information regarding filters.
add_filter( 'bp_activity_paged_activities_sql', function( $sql, $where_sql, $sort ) { $pos = strpos($sql, 'WHERE a.id IN'); if($pos){ $in_items = implode( ',', $where_sql['in'] ); $sql = str_replace('ORDER BY a.date_recorded DESC' ,' ORDER BY FIELD(id,'.$in_items.') ',$sql); } return $sql; }, 10, 3 );Thanks again for your valuable time and please let me know any suggestions you have 🙂
May 19, 2016 at 9:22 am #253538In reply to: Sort Members
Henry Wright
ModeratorCheck out
BP_User_Querysearch_terms,meta_keyandmeta_valuecould be helpful depending on where you’ve stored your label data. I haven’t tried it, butxprofile_querymight also be useful.May 19, 2016 at 8:25 am #253536In reply to: [Resolved] Base Primary USER REGISTRATION ISSUE
danbp
ParticipantBase is the name of the field group which contains one mandatory field: Name.
You can rename that field but not delete it.See also if this can help you:
How to I delete “This field can be seen by: Everyone?” on my registration page?
May 19, 2016 at 7:02 am #253535In reply to: Group cover photos not uploading
sharmavishal
ParticipantMay 19, 2016 at 6:59 am #253534sharmavishal
ParticipantMay 18, 2016 at 8:37 pm #253529In reply to: WordPress 4.5
danbp
ParticipantOf course !
https://codex.buddypress.org/releases/ > see latest… 🙂May 18, 2016 at 5:52 pm #253525In reply to: Profile field visibiltiy
danbp
ParticipantPerhaps this can help you to go further.
For point 2, maybe this snippet can do the job. Give it a try ! Add it to bp-custom.php
function custom_display_xprofile_fields() { // single field item if ( $data = bp_get_profile_field_data( 'field=Industry' ) ) : // change field name to yours echo '<div class="industry">'. xprofile_get_field_data( 'Industry', bp_displayed_user_id() ) .'</div>'; endif; } add_action( 'bp_after_profile_loop_content' , 'custom_display_xprofile_fields' );May 18, 2016 at 4:52 pm #253524In reply to: Sorting activity stream
danbp
ParticipantHi @subairtc,
see
bp_activity_get_where_conditionsfilter in bp-activity-classes.php ~L. 418Here a similar question with more details.
Also, maybe you can do something based on this snippet, with a different approach.
/** * Change order of activities query string. * @param string $query Query string. * @return string $query Modified query string. */ function bpfr_filter_activity_default( $query ) { if ( empty( $query ) && !empty( $_POST ) ) { $query = 'order=ASC'; } return $query; } add_filter( 'bp_ajax_querystring', 'bpfr_filter_activity_default', 999 );Apologize if i’m wrong. 😉
May 18, 2016 at 3:46 pm #253523In reply to: Incorrect activation email sender
shanebp
ModeratorBP recently added the BP Email API which uses its own methods.
You can place the code in bp-custom.php rather than your theme/functions.php
May 18, 2016 at 2:26 pm #253520In reply to: Incorrect activation email sender
shanebp
ModeratorTry this in your theme/functions.php
add_action( 'bp_email', function( $email_type, $email_obj ) { $email_obj->set_from( "you@yoursite.com", "Your Site" ); }, 10, 2 );May 18, 2016 at 1:57 pm #253518In reply to: buddypress user create groups and forum
Jerry101
ParticipantYes, they are all checked / enabled
BuddyPress -> Components & BuddyPress -> Settings
Can not add groups, not as Admin , Not as User. Neither can I as Admin via Admin panel Groups.
but i still can’t see the “create group tab appear next to invitation tab.
May 18, 2016 at 1:23 pm #253516In reply to: Sorting activity stream
subair.tc
ParticipantI have added the ‘include’ argument with ‘bp_has_activities’ function as
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=activity_update&include='.$sorted_ids ) ) : ?>
where the ‘$sorted_ids’ the comma separated activity id’s in sorted order. But unfortunatly the BuddyPress Core will sort the activities in ASC or DESC order.
I fount the Query used in core file ‘class-bp-activity-activity.php’ inside ‘plugins\buddypress\bp-activity\classes’ on line number : 585 as
// Query first for activity IDs. $activity_ids_sql = "{$select_sql} {$from_sql} {$join_sql} {$where_sql} ORDER BY a.date_recorded {$sort}, a.id {$sort}";and i have replaced it as
if($in) $activity_ids_sql = "{$select_sql} {$from_sql} {$join_sql} {$where_sql} ORDER BY FIELD(id,$in)"; else $activity_ids_sql = "{$select_sql} {$from_sql} {$join_sql} {$where_sql} ORDER BY a.date_recorded {$sort}, a.id {$sort}";Now it’s working fine for me, But it’s not recommended to modify the core file
So please let me know if any one know the filter hook used for modifying the Query from the file itself.
-
AuthorSearch Results