Search Results for 'buddypress'
-
AuthorSearch Results
-
September 16, 2015 at 11:46 am #244454
In reply to: Where to learn.
Henry Wright
ModeratorThe best place to learn how BuddyPress works is the codebase. Over the past few years, the inline docs have been improved tremendously and are now at a point where they’re very useful.
September 16, 2015 at 9:21 am #244445In reply to: “$bp->current_component” returns empty string
anbusurendhar
Participanthttps://buddypress.org/support/topic/make-your-own-custom-buddypress-page/.
The snippet I found in the above link is as below:
define('BP_EXAMPLE_SLUG', 'fun'); function bp_show_example_page() { global $bp, $current_blog; if ( $bp->current_component == BP_EXAMPLE_SLUG && $bp->current_action == '' ) { // The first variable here must match the name of your template file below bp_core_load_template( 'fun', true ); } } add_action( 'wp', 'bp_show_example_page', 2 );September 16, 2015 at 9:08 am #244444In reply to: “$bp->current_component” returns empty string
anbusurendhar
ParticipantSorry the link is Link. My mistake
September 16, 2015 at 8:46 am #244443In reply to: “$bp->current_component” returns empty string
anbusurendhar
ParticipantIn buddypress, activity, members, group have a definite pages like ‘domain/activity’, ‘domain/members’, ‘domain/group’, respectively. Likewise I’m trying to create my own custom page like ‘domain/mycustom’.
For this purpose I referred John James Jacoby’s Post in here. The snippet used in that link didn’t work for me. I don’t know where I’m missing.
From that snippet, I found that
$bp->current_componentreturns me an empty string.September 16, 2015 at 4:59 am #244438In reply to: “$bp->current_component” returns empty string
anbusurendhar
Participant@danbp : Thank You very much for your reply.
Even I’ve tried
bp_current_component()andbp_is_current_component()functions with no success.Actually this function works fine when used in default buddypress pages like
domain/activity/. This returns me “activity”, which is exactly correct. But when I tried this in my custom page (domain/custompage), I’m getting an empty string.September 16, 2015 at 2:41 am #244433In reply to: BuddyPress Activate/Register Page Setup
bravenguyen
ParticipantI’ve got the same problem. My installed theme is KLEO. I don’t know how but when I installed the same KLEO and related plugins on my PC’s localhost. The register/activate pages of BuddyPress v2.3.3 DID APPEAR! I opened both online and localhost pages on the same browser Google Chrome. How weird!
BTW, I guess we have to create the pages manually.Thanks @danbp for your replySeptember 16, 2015 at 2:18 am #244431djsteveb
Participant@swissprice – There are several “chat” plugins what “work with wordpress / buddypress” – it would be easy to establish a group chat room that allows registered and non-registered users to chat with each other via the main chat room – and they can private message each other there.
As far as “begin chat with this user” – I think you would need something that says “User A” is online now – and a setting that would allow a non-registered, non-logged in person to send a “message”. I think I saw a thread a while back where someone was trying to adapt the “single user profile page” to allow guest comments, aka activity post on that profile / user’s activity page..
Not sure exactly what you are going for here.
September 16, 2015 at 1:46 am #244429In reply to: Activity stream customisation options…
LJagermaster
ParticipantSeptember 16, 2015 at 1:15 am #244427In reply to: Buddypress “Logged In” Menu Items Not Manifesting
deklein
ParticipantAny suggestion, I’ve done a lot of looking around and have not found anyone having a similar problem!
I have double checked that under Screen Options: BuddyPress is enabled, obviously. The plugin is active and I do not know of any errors. I have no idea as to why none of the menu items are appearing.
September 15, 2015 at 7:48 pm #244418In reply to: Mentions in regular comment form
danbp
ParticipantWhen you mention a member in a blog comment, that member is informed of that on is profile notification screen and via the notif bubble in user menu (top right under howdy). But no mail is send in this case.
May be related topics:
https://buddypress.org/support/topic/no-notifications-for-mentions-in-comments/
https://buddypress.org/support/topic/notifications-component-fixing-custom-templatestemplates/Also:
September 15, 2015 at 7:25 pm #244417In reply to: BuddyPress Activate/Register Page Setup
danbp
ParticipantNo. You have to create Activate/Register pages manually.
September 15, 2015 at 6:50 pm #244416In reply to: [Resolved] My Comments Tab
danbp
Participanthi @bigkahunaburger,
Give this a try (goes to bp-custom.php or child-theme functions.php)
function bpfr_get_user_comments_on_profile() { // number of comments to show per page define( 'DEFAULT_COMMENTS_PER_PAGE', 3 ); $page = (get_query_var('page')) ? get_query_var('page') : 1; $limit = DEFAULT_COMMENTS_PER_PAGE; $offset = ($page * $limit) - $limit; $param = array( 'user_id' => bp_displayed_user_id(), 'status' => 'approve', 'offset' => $offset, 'number' => $limit ); $total_comments = get_comments(array( 'orderby' => 'comment_date', 'order' => 'ASC', 'status' => 'approve', 'parent' => 0 )); $pages = ceil(count($total_comments)/DEFAULT_COMMENTS_PER_PAGE); $comments = get_comments( $param ); $args = array( 'base' => @add_query_arg('page','%#%'), 'format' => '?page=%#%', 'total' => $pages, 'current' => $page, 'show_all' => false, 'mid_size' => 4, 'prev_next' => true, 'prev_text' => __('« backward'), 'next_text' => __('onward »'), 'type' => 'plain' ); // Output pagination echo paginate_links( $args ); ?> <ul> <?php foreach($comments as $comment) { // short version //echo '<li>'. ($comment->comment_content .' <a href="'. esc_url( get_permalink( $comment->comment_post_ID ) ) ).'">View post</a></li>'; // long version echo '<li>'. ($comment->comment_content .' <a href="'. esc_url( get_permalink( $comment->comment_post_ID ) ) ).'">'. get_the_title( $comment->comment_post_ID ) .'</a> Comment: '. get_comment_date( '', $comment ) .'</li>'; } ?> </ul> <?php } add_action ( 'my_profile_comment', 'bpfr_get_user_comments_on_profile' ); function bpfr_comment_profile_setup_nav() { global $bp; $parent_slug = 'comments'; $child_slug = 'comments_sub'; // Add nav item bp_core_new_nav_item( array( 'name' => __( 'My comments' ), 'slug' => $parent_slug, 'screen_function' => 'bpfr_profile_comment_screen', 'position' => 40, 'default_subnav_slug' => $child_slug ) ); //Add subnav item bp_core_new_subnav_item( array( 'name' => __( 'My latest comments' ), // as content title 'slug' => $child_slug, 'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 'parent_slug' => $parent_slug, 'screen_function' => 'bpfr_profile_comment_screen' ) ); } function bpfr_profile_comment_screen() { add_action( 'bp_template_content', 'bpfr_profile_comment_screen_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function bpfr_profile_comment_screen_content() { do_action( my_profile_comment ); } add_action( 'bp_setup_nav', 'bpfr_comment_profile_setup_nav' );Reference: https://codex.wordpress.org/Function_Reference/get_comments
To do the same for user’s post, see here:
https://buddypress.org/support/topic/creating-a-custom-tab-that-takes-in-the-info-from-wp-recent-posts/September 15, 2015 at 3:50 pm #244413In reply to: “$bp->current_component” returns empty string
danbp
ParticipantI can’t figure out what is going on.
That snippet is 6 years old. BuddyPress is slightly different today.
Some explanation here:
May be you can also read here:
September 15, 2015 at 3:28 pm #244411In reply to: Buddy press won’t work with my theme
djsteveb
Participant– it’s the (or one of the) “default” wp themes ( https://wordpress.org/themes/twentyfourteen/ )
about the only way you will get any kind of support with bp or / and rtmedia..it’s not the easiest thing to mod – but at least it works, and bp has some stylesheets included that massage it into something better than the average theme for some bp pages..
I finally got deep into it to style some changes at the various media queries / screen sizes..
btw – did you try changing your premium themes style.css to those changes to see if they work?
if you search the bp forums for other premium themes you will see that even ones selling as “the best or the most popular buddypress theme” – seem to have issues and lack good support.. search the forums for “kleo” for example – lol
I am sticking with twenty fourteen ’till things mature a bit (recent changes in wp and bp have made things complex in some ways) –
September 15, 2015 at 3:06 pm #244406In reply to: Hide Membered groups only
Venutius
ModeratorWithin the menu page under Appearance there is an option under Buddypress called Groups. you should use this as your menu item instead of the current Groups menu item, this will only display the groups the user is a member of.
September 15, 2015 at 2:38 pm #244404In reply to: Activity stream customisation options…
djsteveb
ParticipantYep – I think most of us want better backend choices for what things are included and excluded in the activity stream – I wrote a detailed post reply recently on this thread here: https://buddypress.org/support/topic/content-activity-stream/
but I had too many links or wrong words in it or something and I guess it got stuck in the moderation que or just blackholed by akismet – who knows..
September 15, 2015 at 2:32 pm #244403In reply to: Buddy press won’t work with my theme
djsteveb
Participant@liharris – welcome to the suck (that is theme issues with bp (and other things bp related like rtmedia) (welcome to the suck a movie quote, kind of joking)-
you will likely not get any help in the bp forums when it comes to premium themes, you should contact the theme author.
I did a quick look, and I must say I have zero knowledge of that theme and all the css things that could affect everything – I am also not a css expert.
My first thought is that you can create something very similar with a free theme from the wp-repo and a one of the “cards” plugins from the from wp-repo..
my second thought is wondering why the theme author did not include a couple of css rules like:
.header {
margin-left: -200px !important;
}body {
margin-left: 200px;
}but again I have no idea what he/she is trying to do with whatever elements, and how one may affect another in different situations..
you could try to make a child theme (good luck with that friggin process!)
and adapt those rules..
but I suggest that you don’t get married to that theme and buddypress – even if you find a theme that actually says “works with buddypress” – I think you will find little issues to contend with – and from what I have seen (lately even) is that these premium theme authors (And free theme authors) have trouble keeping up with bp and other things that are (IMHO) needed addons with bp (rtmedia, or/and media press, or that other one – umm. photo something)
anyhow – I gave up on all premium and free themes and have been stuck with working with 2014 theme as it’s the only thing that gets any kind of “working well with bp / rtmedia and other things” – I’m sure other smarter coders mileage is different.
September 15, 2015 at 11:25 am #244394In reply to: Avatar option won’t show up?
chris_van_r
ParticipantOkay so I looked in the database, in wp_options there’s a “show_avatars” row and it had no value set. I set the option_value to 1 and everything worked.
Any clue as to why there was no value in this option? Not even a 0, as in disabled.
Where in the buddypress settings is the checkbox to alter this value even? Am I overlooking something? I’m confused.The checkbox “Allow registered members to upload avatars” only seems to control the “bp-disable-avatar-uploads” value in wp_options
September 15, 2015 at 11:06 am #244393Henry Wright
ModeratorThat should be the hook to use. See here for it in context:
https://github.com/buddypress/BuddyPress/blob/master/src/bp-activity/bp-activity-functions.php#L2180
September 15, 2015 at 3:54 am #244390developer
Participant
@henrywright are you sure?
becausebp_activity_comment_postednot working actually…
sorry for bothering you …
thanks in advanceSeptember 14, 2015 at 3:25 pm #244380In reply to: Member Online in Profile
shanebp
ModeratorTry this in your theme/functions.php or bp-custom.php
function is_user_online() { $last_activity = bp_get_user_last_activity( bp_displayed_user_id() ); $curr_time = time(); $diff = $curr_time - strtotime( $last_activity ); $time = 5 * 60; // must be in seconds if( $diff < $time ) echo '<br/>online'; else echo '<br/>not online'; } add_action('bp_before_member_header_meta', 'is_user_online');September 14, 2015 at 12:16 pm #244372Henry Wright
ModeratorDo you think Buddypress can support hundreds of thousands, if not millions of users?
In theory, yes, BuddyPress can handle millions of users. BuddyPress will add rows to the database without problem, and that database can scale to a very large size.
In practice, there are things that might have an impact on that. Your hardware will play a big role. For example, will a million users all be logged in at the same time, each posting a video clip or large image?
September 14, 2015 at 12:15 pm #244371Prabin
ParticipantPlease look into other forum topics as well..
https://buddypress.org/support/topic/bp-could-handle-a-huge-number-of-members/
https://buddypress.org/support/topic/what-about-i-got-10-million-users-or-more/
Personally, I think BP supports thousands of users. There are few BuddyPress sites with abounding users. You just need a good server and a good database space.
September 14, 2015 at 10:04 am #244366In reply to: Buddypress Register / Activate problems
Prabin
Participantmay be it’s a permalink issue. Try editing your htaccess file.
September 14, 2015 at 8:21 am #244359In reply to: Display Name
danbp
Participantif you don’t use bp-default theme, this advice from @prabin04 is wrong:
Copy BuddyPress *members* folder frombp-default folderinside your child theme, and search for member-header.php file located inside members->single folder.You need to take the copy from bp-templates/bp-legacy/buddypress/
-
AuthorSearch Results
