Forum Replies Created
-
In reply to: Extended Profile Character input limit
Asked many times on the forum… See if this is still working:
https://buddypress.org/support/topic/resolved-how-to-limit-the-input-of-a-profile-field-type-multiline-text-box/In reply to: I want to add Spanish!Before saying it’s not working, please follow the instruction.
Read my previous answer slowly and check the path i indicated.wp-content/languages/plugins/buddypress-es_ES.mo
According to the screenshot, your site use the mexican version of WordPress.
Unfortunatly, there is no mexican spanish translation avaible for BuddyPress !
This force you to use spanish (es_ES and NOT es_MX) as site language to get automatically the es_ES BP translation.
In other words, you can’t use mexican language on main site if you want BP in spanish.
Translation can be found here: https://translate.wordpress.org/projects/buddypress/2.2.x
In reply to: Display Your Profile fields to front endWhich fields are you talking about exactly ?
As stated by the author, Events Manager allows BuddyPress users to manage their events from the front-end your website. Aside from this, your users also can create group events and manage these together.
In reply to: I want to add Spanish!The main site language should be set to spanish first.
See in WP dashboard > Stettings > GeneralNormally, this settings allows automatic translation file upload of BuddyPress and bbPress (if installed).
If not, you can add manually the language files in the wp-content/languages/plugins/ folder to get:wp-content/languages/plugins/buddypress-es_ES.mo
wp-content/languages/plugins/buddypress-es_ES.poEach version of BP comes also with its own translatable strings file, which is at the BP plugin root.
wp-content/plugins/buddypress/buddypress.potIn reply to: members feature with a relationship 1:nHave you tested this BP compatible plugin ?
https://wordpress.org/plugins/wp-idea-stream/In reply to: What file handles registrationRead here if it helps.
http://wordpress.stackexchange.com/questions/82239/make-display-name-uniqueYou’re welcome !
In reply to: Add Icon behind User name in Activity FeedThe place in entry.php:35 is
<div class="activity-header"> <?php bp_activity_action(); ?> </div>The function
bp_activity_actionis defined in bp_activity_action/bp-activity-template.php:1750You’ll find many filters in bp_activity_action/bp_activity_actions.php
Line 288: function bp_activity_action_post_update() {
Line 369: add_action( ‘bp_actions’, ‘bp_activity_action_post_update’ );
Line 389: function bp_activity_action_post_comment() {
Line 433: add_action( ‘bp_actions’, ‘bp_activity_action_post_comment’ );
Line 452: function bp_activity_action_mark_favorite() {
Line 467: add_action( ‘bp_actions’, ‘bp_activity_action_mark_favorite’ );
Line 486: function bp_activity_action_remove_favorite() {
Line 501: add_action( ‘bp_actions’, ‘bp_activity_action_remove_favorite’ );
Line 515: function bp_activity_action_sitewide_feed() {
Line 533: add_action( ‘bp_actions’, ‘bp_activity_action_sitewide_feed’ );
Line 546: function bp_activity_action_personal_feed() {
Line 563: add_action( ‘bp_actions’, ‘bp_activity_action_personal_feed’ );
Line 579: function bp_activity_action_friends_feed() {
Line 596: add_action( ‘bp_actions’, ‘bp_activity_action_friends_feed’ );
Line 612: function bp_activity_action_my_groups_feed() {
Line 637: add_action( ‘bp_actions’, ‘bp_activity_action_my_groups_feed’ );
Line 651: function bp_activity_action_mentions_feed() {
Line 674: add_action( ‘bp_actions’, ‘bp_activity_action_mentions_feed’ );
Line 688: function bp_activity_action_favorites_feed() {
Line 709: add_action( ‘bp_actions’, ‘bp_activity_action_favorites_feed’ );To do that you need the xprofile field ID and the user ID.
Here an example to show a profile fied containing a fax number. The filed is called Fax (case sensitive).
Add this function to your child theme’s functions.php or better, into bp-custom.php
function my_directory() { if ( bp_is_active( 'xprofile' ) ) if ( $memberfax = xprofile_get_field_data( 'Fax', bp_get_member_user_id() ) ) : echo '<br/><div class="Fax">'; echo $memberfax; echo '</div>'; endif; } add_filter ( 'bp_directory_members_item', 'my_directory' );In reply to: Add Icon behind User name in Activity FeedHi @alexsmoli,
you copy the original template file from:
buddypress/bp-templates/bp-legacy/buddypress/activity/entry.phpto the child theme to get this:
your-child/buddypress/activity/entry.phpReference
In reply to: Modifying template files in child themeYou copy the original file from:
buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.phpto the child to get this
your-child/buddypress/members/mmebers-loop.phpReference
In reply to: What file handles registrationIn the plugin !
wp-content/plugins/buddypress/bp-members/bp-members-functions.phpIn reply to: New user login info and forum displayCustom code goes to bp-custom.php or child-theme’s functions.php
Code on second answer shows an usage example, it’s not the code you have to use.As you asked for register details, i thinked you want a resume of the registration with all mandatory xprofile fields information…
BP on a single install doesn’t sent a welcome email. This happens only on a MS install. But you add that manually. Read here:
In reply to: New user login info and forum display1) depends which type of forum you use (standalone or group forum)
https://wordpress.org/plugins/bp-registration-options/
https://wordpress.org/plugins/bbpressmoderation/2) see here how to do that
https://buddypress.org/support/topic/add-dynamic-menu-link/#post-2424873) i’m not aware of such feature for BP
In reply to: Add dynamic menu linkTry this:
// depending the theme Main Menu, somwhere near Home, About, etc function bpfr_custom_setup_nav( $items) { if ( is_user_logged_in() ) { $items = '<li><a href="'. bp_get_loggedin_user_link() .'activity/news-feed/">News feed</a></li>'; } return $items; } // 10 is the priority, 1 is the position in the menu add_filter( 'wp_nav_menu_items', 'bpfr_custom_setup_nav', 10, 1 );References:
https://codex.wordpress.org/Function_Reference/wp_get_nav_menu_itemsIn reply to: Suggestion – Blog Posting from Front-endthank you for the suggestion. π
But BP is not a blog plugin, but a community tool. And WordPress has already a blog.
Some use BuddyPress for doing something very different as blogging. Some use it as a blog farm (on multisite).
As plugin, it is integrated to WP, so i doubt that BP devs want to do the opposite. π
You can anyway post a future request on Trac
In reply to: What file handles registrationThe register process is part of WordPress.
For BP, you can see in
\buddypress\bp-templates\bp-legacy\buddypress\members\register.php…but !
the username is already in use is not part of WP or BP.
Do you use an extra plugin ?In reply to: How Do I Display A Custom Profile Field?Where do I put this and how do I make sure it doesnβt get removed
Custom code can be added to bp-custom.php
In reply to: Cannot invite members to group@bigswp,
if you have the same config today as @enaijo 5 months ago, update first.
Actually: WordPress 4.2.3 BuddyPress 2.3.2.1 and bbPress 2.5.8-5815If the issue is still in, ensure that you have some friendship, as you can only invite friends to join a group.
If all this is ok, you can open a ticket.
Give details about your config and any hint about how to reproduce your issue and mention this topic.Login to Trac uses same credentials as here.
https://buddypress.trac.wordpress.org/reportIn reply to: Moving the Buddypress Admin Bar menuIn reply to: Add tinymce to Activity Post Reply FormYep !
In reply to: Add tinymce to Activity Post Reply FormGlad you got it to work !
I tested it right now, and must say that it doesn’t work correctly with twenty twelve. I can’t publish as i have no focus in the editor. But i have a lot of plugins and custom functions running. Maybe a JS conflict….
In reply to: User Profile fields hide on Profile pagebiographical information, fax and maybe even addresses. These are WordPress or theme specific fields which are not visible on frontend profiles. BP doesn’t use them if you use the xtended profile component.
Anyway…Try this snippet, and use it to your need from within your child-theme functions.php
function remove_user_fields(){ // Print jQuery that removes unneeded elements ?> <script type="text/javascript"> jQuery(document).ready( function($) { // the magic goes here... var ids = ['#description', '#comment_shortcuts', '#color-picker']; // Check in page source for other ID's for (var i = 0; i < ids.length; i++) { $(ids[i]).closest('tr').remove(); } }); </script> <?php } add_action( 'admin_footer', 'remove_user_fields' );In reply to: Add tinymce to Activity Post Reply FormThis snippet may work… (untested)
function bpfr_reply_tiny_editor() { $editor_id = 'ac-input-'. bp_get_activity_id(); $area_name = 'ac_input_'. bp_get_activity_id(); $settings = array( 'textarea_name' => $area_name, 'editor_class' => 'ac-input bp-suggestions', 'media_buttons' => false, 'teeny' => true, 'quicktags' => true ); wp_editor( $content, $editor_id, $settings ); } add_action( 'activity_reply_textarea', 'bpfr_reply_tiny_editor' );@henrywright, any thought about this ? I’m really unsure with that π
In reply to: Add dynamic menu linkCodex reference:
Also, on the forum, several topics, with many snippets:
https://buddypress.org/support/search/bp_nav_menu/Here a working example, which add 2 external links on a profile.
function bpfr_custom_setup_nav() { if ( bp_is_active( 'xprofile' ) ) ?> <li><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members', 'buddypress' ) ); ?></a></li> <li><a href="http://buddypress.org" target="_blank" title="BP">BuddyPress</a></li> <?php } add_action( 'bp_member_options_nav', 'bpfr_custom_setup_nav' );