Search Results for 'buddypress'
-
AuthorSearch Results
-
November 11, 2015 at 10:47 pm #246585
In reply to: No Profile Tabs
r-a-y
KeymasterI just installed NewsMag and the profile tabs and cover image feature look fine on an unmodified install:
Again, we cannot account for every single variant of every available theme out there. If you have some CSS knowledge, you’ll have to adjust it yourself.
November 11, 2015 at 10:38 pm #246581In reply to: BuddyPress 2.4.0 – Pietro
Michael Bryner
ParticipantUninstalling BuddyPress and reinstalling did nothing at all. Data repair did nothing. I disabled cover photos and it works fine. It is the cover photos enabled and I lose the whole tabs in profile.
November 11, 2015 at 8:25 pm #246572In reply to: BuddyPress 2.4.0 – Pietro
r-a-y
KeymasterCongrats imath!
November 11, 2015 at 8:21 pm #246570r-a-y
KeymasterA BuddyPress user is a WordPress user, so you should be able to use WordPress user API functions for this.
For BuddyPress groups, check out
groups_create_group()
:
https://buddypress.trac.wordpress.org/browser/tags/2.4.0/src/bp-groups/bp-groups-functions.php#L70November 11, 2015 at 11:24 am #246562In reply to: HTML or WYSIWYG in text profile fields?
djsteveb
Participant@djpaul – Wholy! Bleep!
So it may be easier for me to add two new buttons to the comment replies things all around buddypress in the near future?! IS the wordpress editor button API )think it came out like 3 versions ago?) going to flow through to this in BP?
So glad to see this!
November 11, 2015 at 11:22 am #246561djsteveb
Participant@redgard
seems to be a similar question with a couple of intersting answers here: https://buddypress.org/support/topic/html-or-wysiwyg-in-text-profile-fields/November 11, 2015 at 6:52 am #246553In reply to: HTML or WYSIWYG in text profile fields?
Paul Wong-Gibbs
KeymasterBuddyPress 2.4 — probably due out this week — changes multi-line text area fields to use TinyMCE, like the WordPress post editor.
November 10, 2015 at 5:59 pm #246535In reply to: Adding profile fields to members directory
Antipole
ParticipantSo I am getting my extra user data fields with a line like:
echo '<div style="position: absolute; left:150px;">' , bp_get_member_profile_data('field=Ovni model'),'</div>';
But I would like them to be search links as it is in an individual profile. I have achieved this withecho '<div style="position: absolute; left:60px;"><a href=', $bp->pages->members, '?s=', bp_get_member_profile_data('field=Ovni model'),' rel="nofollow">' , bp_get_member_profile_data('field=Ovni model'),'</a></div>';
However, I am now also using the plugin Custom Profile Filters for BuddyPress, which lets me set which profile fields should not be search links and also allows users to spilt their data up, so a profile field “[ocean] and [coast]” gets two separate search links, one for ‘ocean’ and another for ‘coast’. Neat. It seems to do this by adding a filter to bp_get_the_profile_field_value.
However, my manual addition of search links as above ignores these settings, and any [] in the fields comes through and are visible.
It occurs to me that, rather than fetching the fields with bp_get_member_profile_data(), I would do better to get the data however it is got for the individual profile display, as this method puts the search links in and obeys the options set in Custom Profile Filters for BuddyPress. I have spent much of today trying to find how to call bp_get_the_profile_field_value. If I use
echo '<div style="position: absolute; left:150px;">' , bp_get_member_profile_value('field=Ovni model'),'</div>';
I get an invalid link. I suspect it need a data type argument to get a search link. I have tried to find how it is called to display the user profile, but failed to find it. In the BP Codex I have only found how to remove the filter that puts the links in.If someone could enlighten me it would be most helpful. Thanks.
November 10, 2015 at 4:43 am #246525In reply to: Want to add new tab in buddypress profile page.
paragbhagwat
ParticipantHello @danbp
What would i do if i want to remove a tab? Please refer to my question
https://buddypress.org/support/topic/hiding-groups-and-forums-from-members-page/
Thanks,
ParagNovember 9, 2015 at 8:07 pm #246517In reply to: Disqus Integration
shanebp
ModeratorIs there a better looking bp comments plugin with some better styling?
I’m not aware of any. You could adjust or add css to change the styling.
…the bp activity stream will not pick up these comments.
You’ll need to use bp_actvity_add() to do that.
Your theme may have a hook you can use – ask them.November 9, 2015 at 1:32 pm #246507In reply to: Adding whats-new-form to the mentions template!
danbp
Participantthis need a template overload.
Make first a child-theme.
Copy notifications-loop.php from bp-templates/bp-legacy/buddypress/members/single/notifications/ to
/child-theme/buddypress/members/single/notifications/notifications-loop.phpAt the begin of the file (line 1) copy/paste
<?php bp_get_template_part( 'activity/post-form' ); ?>
. Don’t remove php tags.Save. You’re done.
November 9, 2015 at 1:26 pm #246506In reply to: whats-new-form in mentions sections!
danbp
ParticipantPlease don’t double post. Topic closed.
Conversation continue here:
https://buddypress.org/support/topic/adding-whats-new-form-to-the-mentions-template/November 9, 2015 at 1:00 pm #246505In reply to: BuddyPress Site wide activity
vysakhnair
Participant<select id=”activity-filter-by”>
<option value=”-1″><?php _e( ‘— Everything —’, ‘buddypress’ ); ?></option><?php bp_activity_show_filters(); ?>
<?php do_action( ‘bp_activity_filter_options’ ); ?>
</select>
@venutius this is the code in that page I directly removed the Everything which is coming as the first option but now i want updates as the first option from where the function bp_activity_show_filters() is getting values from database or any of the filesNovember 9, 2015 at 8:52 am #246500In reply to: [Resolved] Text Boxes Creating Unwanted Random Links
danbp
ParticipantHi @ma3ry,
unable to visit the indicated page due to redirection… BP’s xProfile text box contains are autolinked by default for the 5 first words.
This is handy when you use a field called city for example. The city name is autolinked and let each user click on it to find other who may entered the same name.Of course, an about me box with a long description, which several autolinked words has less interrest. Fortunately, you can deactivate xprofile autolinking.
Two options for this: all or selected.Here 3 snippets. The first can be used if you want to completely remove autolink from all field values.
The second is a new filter to let you choose the field(s) you want to deactivate. This need two snippet. The first to rewrite a filter and the second to remove / replace the existing BP filter.Add the snippet to bp-custom.php.
// remove any autolink from profile 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' ); // custom filter to selectively remove autolink function my_xprofile_filter_link_profile_data( $field_value, $field_type = 'textbox' ) { // Access the field you are going to display value. global $field; // In this array you write the ids (separated by comma) of the fields you want to hide the link. $excluded_field_ids = array(2); // If the id of this $field is in the array, we return the value only and not the link. if (in_array($field->id, $excluded_field_ids)) return $field_value; if ( 'datebox' == $field_type ) return $field_value; if ( !strpos( $field_value, ',' ) && ( count( explode( ' ', $field_value ) ) > 5 ) ) return $field_value; $values = explode( ',', $field_value ); if ( !empty( $values ) ) { foreach ( (array) $values as $value ) { $value = trim( $value ); // If the value is a URL, skip it and just make it clickable. if ( preg_match( '@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', $value ) ) { $new_values[] = make_clickable( $value ); // Is not clickable } else { // More than 5 spaces if ( count( explode( ' ', $value ) ) > 5 ) { $new_values[] = $value; // Less than 5 spaces } else { $search_url = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() ); $new_values[] = '<a href="' . $search_url . '" rel="nofollow">' . $value . '</a>'; } } } $values = implode( ', ', $new_values ); } return $values; } /** * We remove the buddypress filter and add our custom filter. */ function remove_xprofile_links() { // Remove the old filter. remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); // Add your custom filter. add_filter( 'bp_get_the_profile_field_value', 'my_xprofile_filter_link_profile_data', 9, 2); } add_action('bp_setup_globals', 'remove_xprofile_links');
November 9, 2015 at 8:26 am #246498In reply to: Want to add new tab in buddypress profile page.
danbp
ParticipantHi @gwanghyeonan,
see here if you can use it:
https://buddypress.org/support/topic/my-contributions-tab-with-subtabs/#post-244609November 8, 2015 at 8:25 pm #246494In reply to: REGISTER PAGE, ACTIVATE PAGE, BOTH INVISIBLE
@mercime
ParticipantThere is nothing on the page, where is the shortcode for the register page and activate page?
There is no shortcode. If you enabled registration after you set up BuddyPress, then follow instructions at https://codex.buddypress.org/getting-started/register-and-activation-pages/
After you do so, you’d need to log out first in order to “see” the Registration page.November 8, 2015 at 7:46 pm #246491In reply to: Buddypress groups styles
@mercime
ParticipantFor example, I changed the background of the home page to black, the group page also went black.
@jessicana That is the default behavior as BP adds rudimentary styles to the components in BP pages.
BP injects BP classes in the<body>
tag. View > Source or use FF/Chrome inspector and you’ll find numerous classes e.g. in a Group named “The Godfather”, you’ll find the following classes you can use for the single group home page or for the rest of the Groups component pages:
<body class="single-item groups group-the-godfather group-home home buddypress ... etc.>
so you can use e.g.body.buddypress { /* for all BP pages */ }
or
body.groups { /* for all groups */ }
or
body.group-home { /* for the single group's home page */ }
etc.
November 8, 2015 at 11:43 am #246487In reply to: Adding profile fields to members directory
Henry Wright
ModeratorThere’s 2 ways of doing this.
1. You could modify the members-loop template (see the BuddyPress Template Hierarchy for details on how that’s done). See here. You would just add
bp_member_profile_data( 'field=the field name here' );
to the template.2. Add this to your theme’s functions.php file:
function add_info_to_members_loop() { echo bp_get_member_profile_data( 'field=the field name here' ); } add_action( 'bp_directory_members_item', 'add_info_to_members_loop' );
November 8, 2015 at 11:35 am #246486Henry Wright
ModeratorYou can’t do that currently. The only way to add an item to the activity stream is with
bp_activity_add()
. See the bp_activity_add() article for more details.November 8, 2015 at 3:47 am #246481jtorral
ParticipantSo I partially fixed it but I think I need buddypress input for the following.
Here is what I did
I created a custom template from a copy of the page.php in the themes directory. Inside of that template was a call to comments_template(); which I removed from the custom template.
I then changed the “Members” page to use the new template with a name of “No Comments”
Now when I load http://jorgetorralba.com/members/ I get the desired affect without the comments and ping backs.
However, if I go one level deeper and click on a user name such as
http://jorgetorralba.com/members/cjtorralba/
The comments reappear. Same on Activity page even after changing activity to use the new custom templates.
Any idea ???
November 7, 2015 at 8:31 pm #246480jtorral
ParticipantI have an even bigger problem now. Comments wont show for anyone who is logged in after installing “disable comments”, then deleteing the plugin then restoring a db backup from last night. I know its not related to buddypress but I am racking my brains trying to figure out what happened.
even a find for files modified does not show anything. only logged off users can see comments on post now arg !!!!
November 7, 2015 at 7:20 pm #246477r-a-y
KeymasterThanks for the report, @kalico.
I’ve added a ticket for this here:
https://buddypress.trac.wordpress.org/ticket/6719We’ll have a better error message for users for v2.5.0.
November 7, 2015 at 2:34 pm #246470In reply to: Activity Stream
erich199
ParticipantI’m having a similar issue as you with the mentions .js file not loading.
I also have an issue when I limit the number of items, the load more doesn’t work.
November 6, 2015 at 11:29 pm #246460In reply to: Move Activity Stream
erich199
ParticipantOk, I had to hunt for the code in the default buddypress themes but I found it.
Two things I need to do now:
1.) Make it so the post form will work on another user’s profile
2.) Add pagination so the user stream on the profile page doesn’t make someone scroll down a mile to see post.
November 6, 2015 at 10:54 pm #246458In reply to: Xprofile fields frontend editing
buckyb
ParticipantI think I’m close 🙂
I got the field I want to show up on my custom page, but I can’t figure out how to make it edit and submit the changes to the right group. Here’s what I’m using in my custom editing page:
<?php do_action( ‘bp_before_profile_edit_content’ );
if ( bp_has_profile( ‘profile_group_id=’ . bp_get_current_profile_group_id() ) ) :
while ( bp_profile_groups() ) : bp_the_profile_group(); ?><div>
<form action=”<?php bp_the_profile_group_edit_form_action(); ?>” method=”post” id=”profile-edit-form” class=”standard-form my-group”><label for=”field_1″>Custom Field</label>
<input id=”field_1″ type=”text” value=”<?php echo xprofile_get_field_data(‘Custom Field’); ?>” ><?php do_action( ‘bp_after_profile_field_content’ ); ?>
<div class=”submit”>
<input type=”submit” name=”profile-group-edit-submit” id=”profile-group-edit-submit” value=”<?php _e( ‘Save Changes’, ‘buddypress’ ); ?> ” />
</div><input type=”hidden” name=”field_ids” id=”field_ids” value=”29,19,20″ />
<?php wp_nonce_field( ‘bp_xprofile_edit’ ); ?>
</form>
</div>
<?php ?><?php endwhile; ?>
<?php endif; ?>
<?php do_action( ‘bp_after_profile_edit_content’ ); ?>
-
AuthorSearch Results