Forum Replies Created
-
In reply to: how to use with asp.net
This is not a BuddyPress related question. Please read here:
https://codex.wordpress.org/Installing_on_Microsoft_IIS
http://www.microsoft.com/web/wordpressIn reply to: hide bp sub nav name.You’re welcome ! ๐
In reply to: How to change the activity avatar sizeNote: I am using the default theme of buddypress.
Weird ! Have you tried with Twenty Fifteen ?
First, read here:
Try to add the define to your child-theme functions.php, instead of bp-custom.
Spare bandwidth…
define ( 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 640 );Are you sure you want to allow such a big size for a picture who use as max full width a default size of only 150 px ? ๐In reply to: Why BuddyPress activity stream No sharing?Hi @lo133,
there is nothing out for what you’re looking for. Answering to “why” is easy, even if it sounds ridiculous: because BP is not FB or Twitter or Google. @djsteveb already gave some other good advice.Basically, BP is using the built-in favorite feature and doesn’t “share” activities from one to one user, but from one to all. To get individual activities, users have to go to a profile.
That said, maybe considering one of these solution could help you ?
New Plugin Adds BuddyPress Activity as a Wire/Wall to User Profiles
http://buddydev.com/plugins/facebook-like-user-activity-stream-for-buddypress/ (premium)Mention stuff is in buddypress/bp-activity/css and buddypress/bp-activity/js
To modify the text color of the name list, add this into your child-theme style.css.
Use !important for the new rule..atwho-view { color: #e30472!important; }In reply to: Hide friendshp in sitewide activity streamNo there is no plugin for this. Notepad is fine, but if copy/pasting a working code brings trouble, it would be better you find what is causing that issue.
Can you test with Twenty Thirteen ?
What about other plugins deactivated ?Also, activate wp_debug in wp-config.php and report the error message you get (if one).
In reply to: hide bp sub nav name.you apply a condition to
bp_core_remove_subnav_itemfunction.2 function to do that.
1) define the condition
2) remove the nav/subnav itemfunction bpfr_hide_nav() { $retval = false; if ( bp_is_user() && ! bp_is_my_profile() ) { $retval = true; } return $retval; } function bpfr_hide_profile_nav() { // stop if condition is not filed if ( ! bpfr_hide_nav() ) { return; } bp_core_remove_nav_item( 'friends' ); // bp topnav bp_core_remove_subnav_item( 'activity', 'friends' ); //bp subnav (my activities, my groups, etc) } add_action( 'bp_ready', 'bpfr_hide_profile_nav' );Add this to bp-custom.php
In reply to: Hide friendshp in sitewide activity streamCould it be possibly caused by other plugins?
Yes, it’s possible, but i doubt it’s the case. To get sure, you can deactivate all plugins except BP and track down a culprit.
If the page or the whole site is blank after adding custom code, it’s generally due to missing tags or a php error.
Errors can also be generated by software who modify the file format. For example if you use the WP editor to add something to bp-custom, and you’re on the visual tab, you get weird results. Same thing if you edit bp-custom locally with Word or other such text-editor….
More about this here.
In reply to: Hide friendshp in sitewide activity streamPlease, use
<code>button when you publish code on this forum.I tested the snippet and it works. No blank page or error message.
Do you use some other functions in bp-custom ?Check also the quotes. You should use straight quotes
'xxx', not apostropheโxxxxโIn reply to: Hide friendshp in sitewide activity streamHave you read the codex about bp-custom ?
Do you omitted some opening or closing php tag ? Or have you a blank line at the end of the file ?Only thing i understand from default.css concern gallery and images rules.
If you don’t want them, remove them or usedisplay:none;bp-default styles are in bp-default/_inc/css/default.css
To overide, you use a child-theme containing a style.css fileIn reply to: requesting codex edit capabilityhaha, @hnla <3 the side effect of wp’s teaser:
One central account.
One unified admin area.
One click install.… how long whould it take to finally repair & make this forum and codex pages to work correctly, with a clear admin ?
2008 – BuddyPress is born.
2015 – shoemakerโs son always goes barefoot !In reply to: documentation for remove_action activity streamsi already shared what is necessary to remove an activity. :smirk:
$retval['action'] = array( 'type_name' );I don’t know type names of all existing plugins, reason why i told about DB.
can you give details please, as media queries and css are not, imo, the same thing. What do you mean by media queries in style.css ?
Can you tell what you want to do exactly and what you have already done ?
Also bp-default theme is no more maintained. Are you still using it ? And if so, what WP/BP version are you using ?
In reply to: How users can link to their profilehi @nnyorker,
usebp_get_loggedin_user_link()For example
echo '<li><a href="'. bp_get_loggedin_user_link() .'">View my profile</a></li>';Reference
In reply to: Hide friendshp in sitewide activity streamhere a complete solution you can use for friends privacy.
– Whe’re going to show the friends menu only to… friends !
– We remove friends activity.Copy this to bp-custom.php
function bpfr_maybe_hide_friends_nav_etc() { $retval = false; if ( bp_is_user() && ! bp_is_my_profile() && ! friends_check_friendship( bp_displayed_user_id(), bp_loggedin_user_id() ) ) { $retval = true; } return $retval; } function bpfr_hide_friends_nav_to_non_friends() { // Stop if condition is not filed if ( ! bpfr_maybe_hide_friends_nav_etc() ) { return; } // otherwise, we remove the nav bp_core_remove_nav_item( 'friends' ); // bp topnav bp_core_remove_subnav_item( 'activity', 'friends' ); //bp subnav (my activities, my groups, etc) } add_action( 'bp_ready', 'bpfr_hide_friends_nav_to_non_friends' ); // we want also to remove all friends related activities to non friends function bpfr_hide_friends_activity_type_to_non_friends( $activity_action = array(), $component_id = '' ) { // if condition is not filed we go back to original output if ( 'friends' != $component_id || ! bpfr_maybe_hide_friends_nav_etc() ) { return $activity_action; } // otherwise, we remove member from context $activity_action['context'] = array_diff( $activity_action['context'], array( 'member' ) ); return $activity_action; } add_filter( 'bp_activity_set_action', 'bpfr_hide_friends_activity_type_to_non_friends', 10, 2 );Related topic (other solution, or strict answer to your question) ๐
https://buddypress.org/support/topic/documentation-for-remove_action-activity-streams/#post-242974In reply to: documentation for remove_action activity streamsi wouldn’t remove the whole action hook, as other functionnalities from other plugins, can use it. Filtering is even better.
bp_parse_{component}_argsis intended to filter template loops.If you remove an {activity} type with this function, it will remove that activity from each activity feed (swa, profile and group). Something like an all or nothing thing.
bp_parse return values. So if you want to remove something, you have to list what you want to keep to show, and not what to remove !
Here a snippet, listing all existing BP activity types (2.2.x). Simply comment or remove the type you don’t want.
function my_bp_activity_types( $retval ) { // list of all BP activity types - remove or comment those you won't show. $retval['action'] = array( 'activity_comment', 'activity_update', 'created_group', 'friendship_created', 'joined_group', 'last_activity', 'new_avatar', 'new_blog_comment', 'new_blog_post', 'new_member', 'updated_profile' ); return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activity_types' );IMPORTANT: copy/paste to bp-custom.php or child-theme functions.php. Used as-is will do nothing ! You have to remove the type you don’t want from the list….
Third party plugins (like bbPress) use also activity types. Easiest way to get the right type name is to check xxxx_bp_activity table in DB and search for it in the Type column.
@umar007, removing
friendship_createdwill solve your question.
@djsteveb, removenew_avatar! ๐In reply to: how to translate this pluginSalaam !
Read here please
BuddyPress is actually translated to 31% to persian. You can complete it here:
https://translate.wordpress.org/projects/buddypress/2.2.x/fa/defaultAnd ask to became a validator or editor here.. Eeven if it’s a WordPress crew, somebody can perhaps give you more advice. https://make.wordpress.org/polyglots/teams/?locale=fa_IR
In reply to: page dashboard goe away@nasongo,
Over 16.700 groups with only 2 having 4 members and 99% having 1 member, looks to me like your members are allowed to publish anything without control.Group content is a huge collection of external links, and of what i’ve seen not very related to your site (The worlds Premier Staffing Solution).
Have you being spammed recently ?
In reply to: running competitions with Buddypresshave you found this post ?
Several plugins are mentionned; also note that myCred is awesome with BP.In reply to: add whats new form to a member activity/friends tabTry with
add_action( 'bp_before_activity_loop', 'whats_new_my_friend' );In reply to: Display Your Profile fields to front endNothing is impossible so far, but you’ve better to ask on Events Manager support first.
The question is: can a user edit these fields on front when BP is not installed ?
It depends also which kind of field. So far i know, EM allows users to make events submission. And the plugin comes with some specific BuddyPress templates. Perhaps you can add what you need to them. Ask the author how you can achieve that.
In reply to: I want to add Spanish!For the third time,
you can add manually the language files in the wp-content/languages/plugins/ folder to get: wp-content/languages/plugins/buddypress-es_ES.mo
In other words, you have to create a folder (carpeta) called “plugins” first and add it to /languages/.
In reply to: AuthenticationGlobally, you could consider what’s talken here as a common point of view
https://wordpress.org/support/topic/install-wp-beside-another-cmsSearching/asking for a plugin may be a good idea, but if you don’t give the name of the other CMS, it’s quite impossible to give an answer, or simply an advice.
Guess you assume it right for now, at least.
In reply to: Extended Profile Character input limitCustom code goes to child-theme functions.php
Customizing BuddyPress needs a certain level of competence with PHP and the inner workings of BuddyPress & WordPress.
Please read https://codex.buddypress.org/developer/
and see also https://codex.wordpress.org/Functions_File_Explained