Forum Replies Created
-
In reply to: Disable Password Change
The password field belongs to WordPress, so you could probably try to apply this trick.
In reply to: Setting up user registrationIf you can you read this, you know now that you received an answer. ๐
In reply to: Buddypress + Events managerhi @vuko,
be patient for BP 2.2 in a few days. Then you could try the new Members API and a user role plugin (ie. s2members) to achieve that.
In reply to: Setting up user registrationMoved topic on his own.
In reply to: Adding Columns to Activity List Table in Adminhi @snarkypuppet,
for inspiration a concrete example:
https://github.com/Ipstenu/register-ip-multisite/blob/master/register-ip.phpSearch WP reference for more details:
Is your site using german language ?(dashboard > setting > general)
See if you have define (‘WP_LANG’,’de_DE’) in wp-config. If yes, remove it as it it is no more used by WP 4.xThe pot file doesn’t contain the translation, only the strings you can translate.
The translation is done in po (not pot) file and compiled to a mo file. buddypress-de_DE.mo is the file you have to use.
In reply to: how to remove the wordpress login bar on every postThe Toolbar belongs to WordPress. See WP Codex for how you can rearrange this.
So far i see, your register button is correctly linked to BuddyPress register page.
As you can see in the BP source (2.1),
$nav_name = sprintf( _x( 'Notifications <span class="%s">%s</span>', 'Profile screen nav', 'buddypress' ), esc_attr( $class ), number_format_i18n( $count ) );This string in po. is outdated: Notifications <span class=\โcount\โ>%s</span>
You have to open your actual po file with poEdit (or similar translation tool) and update it with the pot file comming with latest BP version. (/buddypress/buddypress.pot)
Once updated the string to translate will be:
Notifications <span class=\"%s\">%s</span>
who should be translated to:
Benachrichtigung <span class=\"%s\">%s</span>Be aware that poEdit uses different colors to indicate you the translated strings, the untranslated strings AND the fuzzy strings wich are approximative translation. These fuzzy strings must be double checked and validated or modified to work.
Example: difficult to see sometimes the subtle difference between “%s” and “count” when reading too fast ! ๐
In reply to: Profile data is linkedhi @barodscheff;
add this to your child theme functions.php or bp-custom.php
function remove_xprofile_links() { remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); } add_action( 'bp_init', 'remove_xprofile_links' );In reply to: Google and Bing not indexing my home pageDid you activate Search Engine Visibility ?
your-site/wp-admin/options-reading.phpYou can also read this:
https://support.google.com/webmasters/answer/6065812?hl=enIn reply to: Notifications BehaviourHi,
you’ve already asked for this in the past !
https://codex.buddypress.org/member-guide/notifications/
By default, each member can activate/deactivate notification (under Your Profile > settings > email)
Reference: bp-activity/bp-activity-screens.phpOr see this plugin.
In reply to: Add an item to submenu of Activityhi @deshmukh,
add this to bp-custom.php
function bpfr_custom_profile_sub_nav() { global $bp; $parent_slug = 'activity'; //Add subnav item bp_core_new_subnav_item( array( 'name' => __( 'Go to Site Activity' ), 'slug' => $parent_slug, 'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 'parent_slug' => $parent_slug, 'screen_function' => 'bp_activity_screen_my_activity', 'position' => 60, 'link' => bp_get_activity_directory_permalink(), ) ); } add_action( 'bp_setup_nav', 'bpfr_custom_profile_sub_nav' );hi @xuanling,
there is no forum in BuddyPress. You can use bbPress if you want group forums or a general forum.
Answers to your other questions are here:
In reply to: Function to check if group has notificationsThxs @shanebp, i ignored that. ๐
Corrected function here:
function bpfr_sidebar_notifications_menu() { global $bp; // if user is not logged, we do nothing if ( !is_user_logged_in() ) return false; // if user is group member, show him notification + count if ( groups_is_user_member( bp_loggedin_user_id(), $bp->groups->current_group->id ) && $notifications = bp_notifications_get_notifications_for_user( $user_id, $format = 'string' ) ) { $counter = 0; for ( $i = 0; $i < count($notifications); $i++ ) { $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; echo '<p ="'.$alt.'"><i class="fa fa-group"></i>'. $notifications[$i] .'</p>'; $counter++; } } }Shows anything group related to the concerned group member.
Mentions, membership request/reject, promotion,…In reply to: Function to check if group has notificationshi ouegy,
Add this snippet to your child-theme functions.php and give it a try.
First function grabs the notification
Second function allows to add a hook to the template (in your case sidebar.php)
And the hook to use.function bpfr_sidebar_notifications_menu() { global $bp; // if user is not logged, we do nothing if ( !is_user_logged_in() ) return false; // if user is group member, show him notification + count if ( groups_is_user_member( bp_loggedin_user_id(), $bp->groups->current_group->id ) && $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { echo '<ul>'; $counter = 0; for ( $i = 0; $i < count($notifications); $i++ ) { $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; echo '<li ="'.$alt.'"><i class="fa fa-group"></i>'. $notifications[$i] .'</li>'; $counter++; echo '</ul>'; } } } function bpfr_xtra_group_sidebar() { // show notification only on the group sidebar if(bp_is_groups_component() ): // your content bpfr_sidebar_notifications_menu(); endif; } add_action( 'xtragroup', 'bpfr_xtra_group_sidebar' );The hook to add to sidebar.php (or any other template)
<?php do_action( 'xtragroup' ); ?>Hope this help ! ๐
In reply to: Approving new users help (in French would be good)This forum is in english only. ๐
If you prefer assistance in french, please feel free to ask on http://bp-fr.netThis happen sometimes when you login as admin while having a user session open in another window.
Clear your browser cache and try again.
If it doesn’t wwork, check your whole BP settings and resave the pretty permalinks.In reply to: hide Loginname on profilehi @tarinarmolanya,
do you really think a hacker needs to read a username on a profile to hack an account ?
@fuzzielogix ‘s CSS trick may hide the display, but the username still appears in the source code. Could eventually be usefull if you need some space on your template, but is completely barren for any other purpose.And what about the usernicename in the profile URL and of course in the page title ?
Don’t waste your time with such pseudo security legends. The interesting place to go for a hacker is your DB and datas, not your template.
The only thing to do, and if possible to follow, are the recommendation given on this codex article. Dot.
In reply to: custom post type post followDon’t double post please. You’ve already asked for this here.
Closing this topic.
In reply to: Customizing 'site-wide activity'1) site title is in WP General settings
2) https://buddypress.org/support/topic/changing-the-default-activity-filter/In reply to your today’s trac ticket, you can try this trick
https://buddypress.org/support/topic/edit-buddypress-pot-file/#post-230857In reply to: New here – can users add images to their posts?hi @alirat,
as no add media button exists.
Is not intended for. Notices are for brief messages, and html is stripped for security reason.
To get that, consider this plugin.
In reply to: User type (18+ and 18-) helpIn reply to: How to approve avatars before they are displayedPlease don’t ask for the same thing in different topics. Doesn’t bring more answer and is time consuming for all.
The answer is: not possible.
As site admin you can moderate profiles afterwards, if users don’t respect your TOS.In reply to: Force a avatarin brief: no.
Questions regarding a third party plugin should be asked on that plugin support forum.
Subsidiary question to you: how can a code snippet or WP know the difference between the mystery man picture and your grand’ma picture ?
As you know, WP uses Gravatar and some other services. You can deactivate the mystery man to use one of them in replacement. At least a more colorfull alternative, even if it’s not the answer you expect. ๐