Forum Replies Created
-
Sorry but we can’t bring assistance for premium themes.
that said it may be a JS conflict generated by BP in some exotic JS situation…
Read here: https://buddypress.trac.wordpress.org/ticket/6574please don’t double post. Closing this topic in favor of
Can’t upload profile pictures bp-plupload.min.js?ver=2.6.2:1 Uncaught TypeError:
In reply to: tinymce in activity replies and commentsThe ultimate tutorial to add wp_editor to What’s New textarea (on Site, Members and Group Activities pages).
Warning
The What’s New feature was never intended to publish posts or formatted text. It was imagined for brief announcement or instant conversation. That’s why this textarea is texturized and doesn’t allow much HTML tags. It is also ajaxified and need the original BP ID to work.
You will use it at your own risk.The following trick will let you remove the existing textarea from the template and replace it with a custom wp_editor. And it will be very customized ! For example, you will not have the visual tab, but only his HTML version, similar to the one you see on this forum for example.
Required:
BuddyPress activated
a working child theme
some understanding of HTML and php grammarThis trick was succesfully tested on a single install with WP 4.6, BP 2.6.2 and a Twenty Sixteen child theme.
Start !
Read from here how to remove the textarea in post-form.phpThe code to remove is line 40 and looks like this:
<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?> ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>You replace it by:
<?php $content = ''; $editor_id = 'whats-new'; wp_editor( $content, $editor_id ); ?>As the visual edit tab doesn’t work, you must deactivate it. In your child-theme functions.php, add this:
add_filter( 'user_can_richedit' , '__return_false', 50 );And that’s it !
If you want also rich edit for activity comments, which i didn’t recommand for sites who have many comments, you can use the same technique as above, with some more settings. Note that each comment has is own ID and that each comment editor should also have an unique ID.
First, you need to remove the textarea from (child-theme/buddypress/)activity/entry.php
You remove this:
<textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
and replace it by<?php $id = bp_get_activity_id(); $content = ''; $editor_id = 'ac-input-'. $id; $settings = array( 'textarea_name' => 'ac_input_'. $id, 'editor_class' => 'ac-input bp-suggestions' ); wp_editor( $content, $editor_id, $settings ); ?>With Twenty Sixteen, i first couldn’t see the Post Update button and the option selector. I got it with this little CSS adjustment (in child-theme/style.css).
div#whats-new-options { display: block!important;}Function reference: wp_editor.
In reply to: No registration pageHi,
review all site settings and check about the fatal error mentionned on the /register/page:
Fatal error: Call to undefined function groups_get_total_group_count() in .../wp-content/plugins/buddypress-registration-groups-1/includes/bp-registration-groups.php on line 53I think that your buddypress-registration-groups plugin folder is malformed.
buddypress-registration-groups-1 is most probably writtenbuddypress-registration-groupsIn reply to: Force sslGuess it concern at first WordPress. Read here:
http://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/In reply to: Registration Form Issue…Add the snippet to your child-theme functions.php
If it doesn’t work from there, remove it and put it into bp-custom.phpYou may also give details about the theme you use and what you did “exactly” on a template.
In reply to: New Privacy PluginThe whole idea is that the profile is locked down completely so I donβt want the viewer to see the activity or any other part unless they fit the criteria laid out by the member.
I understand that. But as the member appears on SWA and directories, you have to go deeper into BP and hide his activities, remove it from directories and so on. Or as already said, give this as “ultimate” option, with a big warning to site admins – and to the user. Something like: if you choose this option, your whole profile (activity, friends and group membership list) will be hidden to all members and visitors.
It was initially for a client of yours, ok, but that’s a specific use case. I would better leave that possible from inside the plugin code only (ie. a filter that a dev could activate) and give a smoother option for common community usage to the majority of BP users.
In reply to: New Privacy PluginWe’re cross-posting ! π Hope you can follow !
– As non logged visitor, when i’m on a user profile who hasn’t set anything i don’t see Private.
– If i’m on a profile having a friend privacy setting, i see it.
– If on a profile set for “only logged in users”, i’m redirected to register.In reply to: New Privacy PluginUpdated to 0.6
It’s better now for friends but very restrictive for logged in user only.
When a user choose “only logged in users”, and myself as not logged trying to see his profile, i’m redirected to register page when i click on the member name.
– without a specific message telling me why i’m invited to register, it is un understandable. Also you can’t presume the status of a visitor. I can visit the site i’m a member of without login systematicaly. As non logged, but virtually a member, being leaded to registration is ambigous.
– could be as option, but as default for that status, it is too restrictive. I should see at least his activity. And if i click on the profile item, i may see “You must be logged in to access this user profile information”. Something like that.
In reply to: New Privacy PluginIs it appearing all the time for you?
Yes !
If i see a direct access to a functionality like Add as Friend on the profile header, why would i go to a tab labeled Private to do that ? That’s not very logic imo.
When i go to a profile, i see the header first and (depending whats used on the site) a more or less long buddynav menu. π
No worry about the notice. I don’t activate wp_debug on a production site.
In reply to: tinymce in activity replies and commentsSo far i know, this stopped to work correctly recently (search the forum). Something is going wrong with JS and the what’s new textarea. In fact, it doesn’t become a real wp-editor when used inside BP…
In reply to: New Privacy Pluginhi @fencer04,
thank for sharing your work. Well done, but it needs some revision (sorry).
At his activation on 2 test sites (one with 4.5.3/bp 2.6.1, other 4.6/bp2.6.2) i got a notice.
Array to string conversion inbuddypress/bp-core/classes/class-bp-core-nav.php on line 279fromsbpp04_privacy_check( ) ..\plugin.php:525 sbpp04_privacy_redirect( ) ..\buddypress-profile-privacy.php:176 bp_core_remove_nav_item( ) ..\buddypress-profile-privacy.php:184 BP_Core_Nav->delete_nav( ) ..\bp-core-buddybar.php:798Another point concerning UI/UX is the Private button appearing on buddybar.
On this tab, a default message says Friends Only.
USERNAME has chosen to limit profile access to friends only.
That’s wrong! Because this appear on each profile, even if the owner hasn’t setup anything about his profile privacy.So far i understand its fonctionality, this plugin let each member decide to show or not his whole profile page to friends or members only or to everyone (bp default).
– imo this tab should show “This profile is private” to anybody who is concerned by a privacy setting and should not appear at all if “Everyone” is set.
– the original BP Add as friend button on profile header or members directory is still there. This means that there is no need to go on Private tab to ask forfriendship.
This is a little confusing !If the plugin is to extend profile settings, it should appear in profile settings only. And as it doesn’t superseed BP, there is no real reason to give him an extra tab on buddybar outside of the settings scope. A template notice could be enough to tell visitors what’s going on on such a profile.
Just my 2 cents.
That’s documented here:
No.
In reply to: Problem with blog post image alignment@jendam As of #6573, you’ll need to add custom CSS to tweak the appearance.
Read https://buddypress.trac.wordpress.org/ticket/6573#comment:4The ticket is closed as invalid.
In reply to: Modifying Activity Loop for LikebtnPerhaps the closing php tag after endwhile. Remove
?><?php endwhile; // User filtering. $user_id = bp_displayed_user_id() ? bp_displayed_user_id() : false;Note that you’re hacking a core file and that customization will be lost at next bp update.
Never do that.
That said i doubt that your like button will work on BP activities. That button is made for wordpress, not BP.
Try better this plugin which is more appropriate imho.
https://wordpress.org/plugins/buddypress-like/In reply to: Isolated GroupsHi,
bbPress is a forum plugin. Why should you need a forum to group users ?
In reply to: [Resolved] Changing Profile Field LABEL html?Glad you got it to work. But i’m wondering why you want to add this to the label (which is the field title) instead of using the field description ?
This information is only usefull when the user fill in the field or edit it.
You can open the one or other class file in bp-xprofile directory and read through to understand why and how each field type is set and works inside BP.
In reply to: Custom Profile ViewNo that’s not possible.
Only Me is very private and visitors or logged in members can’t see the profile in this case.In reply to: [Resolved] Changing Profile Field LABEL html?Not sure if it is what you want, but can you test this (add to bp-custom.php) ?
function bpex_profile_set_abbr_title( $field_value ) { $bp_this_field_name = bp_get_the_profile_field_name(); // field name (case sensitive) if( $bp_this_field_name == 'Twitter Handle' ) { $field_value = strip_tags( $field_value ); $field_value = '<abbr title="Twitter handle without the @ sign" rel="tooltip">'. $field_value .'</abbr>'; } return $field_value; } add_filter( 'bp_get_the_profile_field_value', 'bpex_profile_set_abbr_title' );That’s a Firebug question, but not important anyway. Also, there is no need to use all rules, as they are handled by the original CSS. You declare only the part you want to modify for
.labelOpen /child-theme/style.css and add only this: (#xyz123 is the color hex you want to use)
#buddypress table.profile-fields tr td.label,{ background-color: #xyz123!important; color: #xyz123!important; }In reply to: Notification won’t go awayDo you get the same behave while using another theme ?
In reply to: Attribution for cover imagesRead from here and see if you can code in a watermark
In reply to: Adding Tags while posting updates in newsfeedSee if this topic may help
https://buddypress.org/support/topic/categories-and-tags-from-blog-post-in-the-activity-stream/