Forum Replies Created
-
BuddyPress doesn’t handle posts, but WP. BP only mention them on the site activity.
BuddyPres doesn’t handle the post author behave. If a post has a featured thumbnail, it’s the author who added it.
If a post is shown with a default featured thumbnail, it’s the theme who add that feaure, not BuddyPress.Globally, a post thumbnail is a theme feature. BuddyPress stopped to use his own theme since 1.7 and was endless improved since to work with about any WP theme.
Read WP codex page related to Post Thumbnail.
In reply to: How to update BP after modificationsHi @denis24,
it’s difficult to tell without seeing exactly what your dev really did. But from what you explain:
1) If he modified directly BP’s core file, he’s right. Core files are irretrievably deleted at each update and any change will be lost.
2) There is always a solution to make things differently. Problem now is the cost. You already paid for custom integration, now you will have to pay for building it out and reinteger it differently, so as your site and custom work can be updated.
About #1
– Hacking core files is never recommended and against WordPress best practices. BuddyPress developers follow the same rules.
– Technically, there is no valid reason to do that, especially if it concerned only a few buttons addition!
– it could simply be an argument for a rogue developer, in case of a conflict with a not tech savy client.
About #2
– updating for updating is a non sense. Not each update is usefull for your install. Same remark for security updates. This point, even if it is sensible, generally concern specific configuration.
If you are sure that you don’t use that configuration or mentionned plugin, why would you need to update ? But it is more convenient to tell clients to update, as it is faster to do that as to explain why and where and how to update.– web technology is in endless evolution, it’s a fact. This doesn’t mean that your site should be indefinitly in progress too. You can choose to freeze it at a given point. It’s your decision at least, despite many pro & contras debates or trend pressure. One of them could be the site trafic. You won’t probably manage FB like a kindergarden site.
Finally, it’s your liberty and your decision.
In reply to: member searching is not workingI don’t think it’s an issue, but more a latency thing. The search field can be lame sometimes.
Looking for John Doe.
You search John = ok
You search Doe = okDoe is still in the search box. You add John after to search: Doe Joe.
Result: nothing because the user is registered as John DoeSame if you enter to rapidly search terms: johndoe This brings nothing.
Ensure that you entered correctly the terms. And test with one of WP’s default theme if you use a third party theme.
If you have some other plugin it can be possible there is a JS conflict somewhere, but imho, no as a single term search works.More a PBCK issue for now.
If you need absolutely this functionnality to work at 200%, perhaps try one of these plugins:
https://wordpress.org/plugins/bp-profile-search/
https://wordpress.org/plugins/buddypress-global-search/In reply to: Make posts public but you must sign-in to reply/addCheck first WordPress Settings: Dashboard > Settings > Comments
then BuddyPress Settings. Dashboard > Settings > BuddyPress > Options tab > Activity OptionIf you need more specific settings, you could add more conditionnals to this snippet. Eg.
if( !is_user_logged_in() )|if($can_comment == true)etcIn reply to: Activity Sticky PluginYou can download it here: https://github.com/imath/activity-sticker
and see a video demo here: https://vimeo.com/65053701
Note that this plugin was developed under BP 1.7 area. And good news, he’s still fonctionnal with BP 2.6/WP 4.5
In reply to: buddypress doesn’t use my files childHi @simonmnt,
you should create a correct child-theme to get BP templates customization to work.
First, you need to declare the child via /your-child/style.css with the correct header information.
Eg. for a twenty fourteen child/* Theme Name: Fourteen-Child Description: My child theme for Twenty Fourteen Version: 1.0 Author: simon Template: twentyfourteen */ @import url("../twentyfourteen/style.css");Once done, you can select this child as site theme.
Now you can add a /buddypress/ folder to /your-child/
Inside this folder, you copy any file you need to modify from /bp-legacy/buddypress/
You copy only the file(not the whole /bp-legacy/buddypress/ folder) you want to change, by respecting eventually the original path. Eg
.
/your-child/buddypress/members/single/profile/profile-loop.phpIf you need custom functions for the theme, you add a file called functions.php inside /your-child/functions.php
If you need custom functions for BuddyPress (like most of the snippets you can find on this forum), you add them to wp-content/plugins/bp-custom.php
– BuddyPress pages have all an ID.
– BP pages are not ordinary static WordPress page, but dynamic pages, a kind of placeholder. They have no content and are only existing to have a slug (and a ID for DB magement) for WP/BP dialog.
Eg.your-site/activity/URL is empty when you deactivate BP.Let’s continue with the activity page as example.
This “page” is made of different parts, which are contextually loaded on their own template. Use the activity filter to see what is all coming up on the (url/activity/) page. About 10 items which would be 10 real pages on a WP site without BP ! And that’s just default. Many plugins use also BP’s activity…
For each component, there is a loop. As long as you are in such a loop, you can call what ever belong to that component from inside this loop. And for almost each loop, you have a template.
If you want the About page (default WP page) to show up on a profile, you load it on one of the profile templates, but not on the BP member page which is the “page” who host “profiles”, but also the “member director”y. And you don’t want About apearing there, isn’t it ? 😉
If you read the codex about theme develoment and template hierarchy, you may understand how all this is articulated.
In reply to: [Resolved] BP 2.6 and BuddyPress Group Extras PluginHi @tammy1999,
just posting this for mentioning the plugin author and forum moderator, mister @slaffik 🙂
In reply to: How to add widget to new front.php template…but it is a simple code to add a widget !
Don’t take it wrong, we all started a day to learn. Like you, i’m not a coder. But the widget coding is a WP thing, explained on the codex page i indicated.You say you didn’t understand what is written on codex. What would be if i give you some code if you don’t understand a text ? Try again. And while learning step by step, read also BP’s codex about templates.
Once you feel more confortable, after some experimentation and errors, come back for BuddyPress related questions. 🙂
In reply to: Customizing a Member DirectoryIn reply to: Help with user menuCheck your theme documentation and read WP’s Menu Guide.
In reply to: How to add widget to new front.php templateRead from here:
Use BuddyPress repair tool to recalculate members.
In reply to: Activity embeds in activity streami want that it should work for activities on the same website? Is it possible?
BuddyPress features are generally designed to work inside BuddyPress. 😉
I guess it is possible. Because it was made for !Follow Ray’s advice…
In reply to: bp_activity_filter_kses functioncolor buttons are TinyMCE tools and not html tags. The only way to get them would be to use the editor toolbar.
Here a scenario you could use:
– create a child-theme and add post-form.php to it (copy from bp-templates/bp-legacy/buddyPress/activity/post-form.php).
Result:your-child-theme/buddypress/activity/post-form.phpIn that file, go to line:40 where textarea start.
Inser this action hook:<?php if ( bp_is_groups_component() ) : ?> <?php do_action( 'blablabla' ); ?> <?php endif ?>Then add this
<?php if ( ! bp_is_groups_component() ) : ?>
<textarea class="bp-suggestions"......bla...bla...</textarea>
and add <?php endif ?> after the textarea closing tag.This contionnals will show a custom area for the desired group and prevent update area to appear on all other groups home pages.
So if a user is member of different groups, he will get a texteditor for group_id 13 and the normal update area on all others.
The custom template is ready. Now the fonctions we need.
Open bp-custom.php (or create it) and paste in those snippets.
Adding the texteditor:
function bpfr_whats_new_tiny_editor() { // deactivation of the visual tab, so user can't play with style tools //add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 ); $content = ""; // building the what's new textarea if ( isset( $_GET['r'] ) ) : $content = esc_textarea( $_GET['r'] ); endif; // adding tinymce tools $editor_id = 'whats-new'; $settings = array( 'textarea_name' => 'whats-new', 'teeny' => false, 'media_buttons' => true, 'drag_drop_upload' => true, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' )); // get the editor wp_editor( $content, $editor_id, $settings ); } add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );A simple function who add the original textarea for users who are group members, but not allowed to rich edit.
function my_textarea() { ?> <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> <?php }And the last one, where you set up the group allowed to publish updates using edit tools.
function trotro() { if ( bp_is_groups_component() ) : $check = groups_is_user_member( bp_loggedin_user_id(), bp_get_group_id() ); $check_group = bp_get_group_id(); if ($check != 0 && $check_group == 21 && 'leon' == bp_current_item() ){ echo 'Wow! You can rich edit in this group.'; bpfr_whats_new_tiny_editor(); } else { echo 'Sorry, you cannot rich edit in this group'; my_textarea(); } endif; } add_action( 'blablabla', 'trotro' );Now, any member which is part of the group leon, group id 23 can publish updates and use the color picker and all other things which are on the edit bar.
Only thing you have to do is to adjust leon and id to your rules.
Successfully tested on 2.6 and 2016.
May this help you to go further with your BuddyPress project. 🙂
In reply to: Embedded webpages on activity feed?Maybe a theme setting or function ? What if you deactivate BP Wall ?
In reply to: Activity embeds in activity streamdid you tested with 2016 and all plugins disabled ?
Does your theme use some specific functions for BP ?
Have you custom code in bp-custom or functions.php ?In reply to: Member Profile IssuesHi,
you have 41 members, but only 35 logged-in yet and 6 may be pending or never came back after account activation.
This situation explain also that newest and older sort order “doesn’t work”. It does, but newest and older are related to the user last activity (dynamic notion). Alphabetic is a static count, whatever the user activity status is.
In brief, the count will became exact only when all user logged-in once. It’s not an issue, but how it works.In reply to: Embedded webpages on activity feed?While doing this, you’ll see a quoted page title, not the whole page content. So guess it is standard behave.
Example
Question related to third party plugin should be asked on plugin support. That said, it’s a known bug who remain unanswered since 7 mounth…
https://wordpress.org/support/topic/conflict-with-bp-24-cover-photo
In reply to: Share Profile?In reply to: Full WidthCheck here how it works for groups – it’s a bit different since 2.4
Get Ready! 2.4.0 will introduce important changes in Groups homesIn reply to: Activity embeds in activity streamThe new embed activity feature is great and works perfectly.
When I tested this a few days ago with beta, i also said: this doesn’t work !But I was wrong. Let me clarify the situation.
When it comes to “copy the URL” i use mostly the right mouse click functionality “copy this URL”. When you do that on the activity feed by hovering over date/time, you catch a permalink which comes in form of
your-site/activity/p/23093.If you do what is told in the presentation video (on BP’s About page) – copy the URL – you don’t get the same path. Copy the URL doesn’t mean copy the permalink !
Back to previous example, when you CLICK on the activity date/time, this activity comes up on a new page and this page shows the URL you should copy for embeding it into post, comment or update.
This URL looks likeyour-site/members/USERNAME/activity/23093/.By the way, embeding an activity into a activity update is already possible.
I admit it’s a bit tricky and unusual way to “copy” something. On the other side, the feature is young and will be enhanced in a next release. So far from what i heard from core dev @imath.
In reply to: [Resolved] How to remove tabs from group admin navGet Ready! 2.4.0 will introduce important changes in Groups homes
The function is still working, but not completely (tabs aren’t hidden). You probably need to complete it with
$component(read above document)In reply to: l can not change the link extensionNav items names can be changed via the language file.
Which language do you use on your site ?
Which language is used with BuddyPress ? (if turkish, get in touch with one of the editors here and ask for update)
Is your theme fully translated to that language ?To move the User Menu sub-menu, read here.
Check also your theme support forum, perhaps you’ll find some related topics to this WP core menu.
In reply to: Profile pictures are not loaded