Search Results for 'buddypress'
-
AuthorSearch Results
-
April 26, 2014 at 11:43 am #182098
In reply to: Displaying the WordPress default bio or description
dolliv
ParticipantYou can still find the member-header file in the buddypress folder: bp-templates/bp-legacy/buddypress/members/single.
April 26, 2014 at 9:03 am #182095dice2dice
Participant@henrywright thanks for your response.
I only just discovered it right now.
It was my hosting company 1and1 that caused the problem and it was because they had been hacked.
In response to this they cut off the option for anyone to log in to any WordPress/BuddyPress site they hosted for two full weeks.
April 25, 2014 at 10:53 pm #182087r-a-y
KeymasterThanks for the report, @klogen2.
I’ve duplicated the bug and have opened a ticket with a suggested fix:
https://buddypress.trac.wordpress.org/ticket/5595We’ll have this addressed for v2.0.1.
April 25, 2014 at 8:58 pm #182083godavid33
ParticipantI was incorrect, it’s not a bug. The solution (thanks to @r-a-y) is this:
$act_item = bp_activity_get_specific( array( 'display_comments' => true, 'activity_ids' => ACTIVITY_COMMENT_ID ) );Closed trac ticket can be viewed here https://buddypress.trac.wordpress.org/ticket/5592#comment:4
April 25, 2014 at 8:09 pm #182081shanebp
Moderatoruntested, goes in bp-custom.php
function oc_filter_ajax_querystring( $querystring = '', $object = '' ) { if( $object != 'group_members' ) return $querystring; $querystring['exclude'] = '1'; // change '1' to your user_id return $querystring; } add_filter( 'bp_ajax_querystring', 'oc_filter_ajax_querystring', 20, 2 );More info:
Add custom filters to loops and enjoy them within your plugin
April 25, 2014 at 7:34 pm #182079In reply to: Problems with 2.0
April 25, 2014 at 5:07 pm #182070In reply to: Changing default activity stream view
billzy
ParticipantHi @suysal @mileskimberley & @macpresss
We have accomplished a similar task, and what a pain in the ass of a task it was…. We made it so that it’s not possible to see all members posts, you must first be friends with them. We also made ours so that you would only see the feed of groups if you joined the group as well, just like fb and all other mainstream networks, it just makes sense to do it this way, more personalised feed, less junk. Its a detailed code of a few hundred lines that we include in our functions.php file.
We paid for the solution to be custom developed via external teams because it was slightly outside of our inhouse development skillset… If you want to chip in for the code I am more than happy to send it to you. If I coded this myself and it costed me nothing to create I would just paste the code here but it’s not the case in this scenario.
Alternatively (and our preferred option), if Buddypress core developers want to build it into BP and create a setting for it in the core plugin backend to allow this option then I am happy to send it to them for free so that we don’t need to support this custom piece of code through the upgrades (which we have been supporting this custom code for a year now). I know this setting/option is not for everyone using BP but there are many out there who would love this feature included and it could be as simple as a checkbox in the backend saying should users only see friends activity, maybe a second one as well should users only see groups activity they have previously joined. We haven’t built such a setting because we use this by default.
Anyways feel free to drop me a line here or at info@fem-productions.com
Cheers
April 25, 2014 at 1:59 pm #182057In reply to: Set Excerpt Length of Group Description
Quint
ParticipantThe following plugin works great:
http://codecanyon.net/item/buddypress-extend-groups-description/2085768
April 25, 2014 at 11:34 am #182048Biswadip
ParticipantThank you that was very helpful.
How do I submit a query from the members search form to bring up the appropriate listing in the manner mentioned above? At the moment I can only search for members when the search form submits to the members directory. What I want to do is that when a user submits a search query from a search form on this page:
the results from the query:
http://website/members/?s=term-searched-for
are displayed on the same custom page hosting the search form:
I have tried setting the search form action attribute like so:
form action = ""but this creates the query:
http://website/custom-page/?s=term-searched-for&members_search_submit=Searchand the result is a 404 page not found.
I have been reading in some places eg:
here and here that buddypress redirects search queries so I need to override that redirection and I have attempted doing so without much success.My search form looks like this:
<div id="members-dir-search" class="dir-search bp-index-search" role="search"> <?php //bp_custom_directory_members_search_form(); $default_search_value = bp_get_search_default_text( 'members' ); $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?> <form action="" method="get" id="search-members-form"> <label><input type="text" name="s" id="members_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label> <input type="submit" id="members_search_submit" name="members_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> </form> </div>I check to see if the form has been submitted:
<?php if(isset($_REQUEST ['members_search_submit'])){ ?>and then, following @Slave UA’s suggestion, I have copied and pasted the code from the “members-loop.php” file to my page template and I then changed
bp_has_members( bp_ajax_querystring( 'members' )to
bp_has_members(array('search_terms' => $search_term))If I hardcode the search term then it works but it does not seem to accept the search term submitted through the search form.
Any help greatly appreciated.
April 25, 2014 at 11:22 am #182047In reply to: Add ad code into activity stream
Henry Wright
ModeratorThere’s a function you can use to do that called
bp_activity_add(). See here for the usage:April 25, 2014 at 8:19 am #182039In reply to: BuddyPress Custom Nav and Page Template
dzweb
ParticipantTry this, it worked for me!
function custom_setup_nav() {
global $bp;bp_core_new_nav_item( array(
‘name’ => __( ‘About’, ‘buddypress’ ),
‘slug’ => ‘about’,
‘position’ => 30,
show_for_displayed_user’ => true,
‘default_subnav_slug’ => ‘about’,
‘item_css_id’ => ‘about’
) );
}bp_core_new_subnav_item(
array( ‘name’ => __( ‘About’, ‘buddypress’ ),
‘slug’ => ‘about’,
‘parent_url’ => $bp->loggedin_user->domain . ‘about’,
‘screen_function’ => ‘about’,
‘parent_slug’ => ‘about’,
‘position’ => 10,
‘item_css_id’ => ‘about’
)
);add_action( ‘bp_setup_nav’, ‘custom_setup_nav’ );
function about_page() {
add_action( ‘bp_template_content’, ‘about_content’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/about’ ) );
}function about_content(){
//Put your content here!
}April 25, 2014 at 5:20 am #182034In reply to: 2.1 top features
SK
ParticipantI’ll revise my top 5 to:
April 25, 2014 at 3:32 am #182031In reply to: [Resolved] Settings –> Profile doesn't open
r-a-y
KeymasterHope is probably using a theme that is a bp-default derivative.
This is a bug that was addressed in #5549:
https://buddypress.trac.wordpress.org/ticket/5549It will be fixed in v2.0.1, but @amalsh can manually apply the following changeset in the meantime:
https://buddypress.trac.wordpress.org/changeset/8292April 24, 2014 at 10:38 pm #182021In reply to: Custom classes for profile pages, possible?
jerryskate
ParticipantOk, a bit better 🙂 Still having my profilename outside the classes, but got all the old ones back.
<body jerryclass="activity bp-user my-activity my-account just-me buddypress bbp-user-page single singular bbpress page page-id-5 page-template-default logged-in admin-bar no-customize-support bp-wall adminbar-enable not-responsive this-is-a-member-profile member-profile-of-" class=" customize-support" data-twttr-rendered="true">April 24, 2014 at 10:05 pm #182019In reply to: [Resolved] Simple styling
eddieb12180
Participant@mercime well I want to ty for your css and I did copy it to my child css. but i thin I was confused because this wasn’t added to the list of css you provided….
#buddypress .standard-form p.description {
color: #888;
font-size: 80%;
margin: 5px 0;
margin-top: 5px;
margin-right: 0px;
margin-bottom: 5px;
margin-left: 0px;
}but you providing the css above has really helped out. Big props!
April 24, 2014 at 9:04 pm #182010In reply to: Custom classes for profile pages, possible?
jerryskate
ParticipantYeah thats what i was thinking too. Seemed kinda weird to me. body.classname would be the obvious choose for me, but well.. weird output. need to fiddle around with it a little to see if i can get it to work. Too bad it filters out all the other classes though. This is how it looks without the filter:
activity bp-user my-activity my-account just-me buddypress bbp-user-page single singular bbpress page page-id-5 page-template-default logged-in admin-bar bp-wall adminbar-enable not-responsive customize-supportWish i could keep those classes and have the bodyclass of the user added.
April 24, 2014 at 9:01 pm #182009Henry Wright
Moderatorbp_activity_get_specific()should be used like this:// get activity $activity_get = bp_activity_get_specific( array( 'activity_ids' => YOURACTIVITYID ) ); // single out the activity $activity = $activity_get[0]; // grab specific activity item $activity_body = $activity->content;Ref: https://buddypress.org/support/topic/gettinng-id-of-the-activity-status/#post-112943
April 24, 2014 at 7:25 pm #182002In reply to: How to override core template function
Biswadip
ParticipantI put the bp_custom_directory_groups_search_form() function suggested by @meginfo into my functions file.
But when I call it from a template it only works if I submit it to the members directory like this
function bp_custom_directory_members_search_form() { $default_search_value = bp_get_search_default_text( 'members' ); $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?> <form action="<?php echo site_url() ?>/members/" method="get" id="search-members-form"> <label><input type="text" name="s" id="members_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label> <input type="submit" id="members_search_submit" name="members_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> </form> <?php }If I try to submit to the same page like this:
form action=""of if I try and submit it to the full path of the file I get a 404 not found message.
How should I submit the function in order to have it give me the search results on the page I want?
Thanks
April 24, 2014 at 7:09 pm #182000shanebp
ModeratorDid you try:
bp_get_the_notification_item_id()
from
\buddypress\bp-notifications\bp-notifications-template.phpApril 24, 2014 at 2:47 pm #181983terraling
ParticipantThanks @godavid33.
I’d like to fix this without having to resort to a custom sql query.
BuddyPress is designed to do this (sort alphabetically by display name rather than username) correctly.
In the relevant code, it checks to see if WordPress-BuddyPress profile syncing is enabled. If it is, it runs the query against the wp_users table rather than the wp_bp_xprofile_data table, because “the table is smaller and better indexed”. If syncing is disabled then it runs the query against the xprofile display_name field instead.
I have fixed the problem by turning off syncing so that it uses the xprofile display name, so my question is, what does profile syncing do exactly and when/how does it do it?
I presume it overwrites nicename in wp_users with the display_name from xprofile (anything else?), but in my case it is not doing so, it appears broken.
If I could identify the when/how then I’d be able to see if it is something I’ve broken or omitted in, for example, my custom registration page.
April 24, 2014 at 1:06 pm #181979Mathieu Viet
Moderatorhi @bitpath
Don’t worry, it’s been committed to core and will be included in next upgrade
https://buddypress.trac.wordpress.org/changeset/8304April 24, 2014 at 12:48 pm #181977bitpath
ParticipantHi,
Can you please help me with the exact same problem as well. I think I am up to date on all patches and just installed a bunch of premium plugins from wpmudev, but I was getting almost this exact same error trying to access admin screens this morning:
Call to undefined function get_current_screen() in /home/bitpad/public_html/wp-content/plugins/buddypress/bp-members/bp-members-admin.php on line 825Your patch fixed it perfectly I think. I can now get back to the admin level. Thank you so much. I was worried I’d have to delete and reinstall plugin possibly starting over on a lot. I am now worried if I will break it by updating since it may over-write plugin patch you gave. Is all ok to upgrade next buddy press one that comes out?
Thank you for your help! You saved a lot of grief 🙂April 24, 2014 at 10:55 am #181973In reply to: Block activity stream types
palmdoc
ParticipantOK got the types wrong and got to=he info from the table in phpmyadmin
Anyway this code works in ones custom function.php
// Filter bbPress from updating activity stream function imath_activity_dont_save( $activity_object ) { $exclude = array( 'bbp_topic_create', 'bbp_reply_create'); // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function if( in_array( $activity_object->type, $exclude ) ) $activity_object->type = false; } add_action('bp_activity_before_save', 'imath_activity_dont_save', 10, 1 );April 24, 2014 at 10:37 am #181971In reply to: Block activity stream types
palmdoc
Participant@sharmavishal: It doesn’t seem to work for me
I put Blocked Activity Types:
new_forum_topic, new_forum_post
and the bbPress topics and replies still go thru
@naijaping and anyone, what should the code be? Like this? :// Filter bbPress from updating activity stream function imath_activity_dont_save( $activity_object ) { $exclude = array( 'new_forum_topic', 'new_forum_post'); // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function if( in_array( $activity_object->type, $exclude ) ) $activity_object->type = false; } add_action('bp_activity_before_save', 'imath_activity_dont_save', 10, 1 );April 24, 2014 at 10:31 am #181970In reply to: Block activity stream types
sharmavishal
ParticipantBuddyPress Block Activity Stream Types is working absolutely fine even with BP 2.0
-
AuthorSearch Results