Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,051 through 12,075 (of 69,016 total)
  • Author
    Search Results
  • #244065
    AilyRoot
    Participant

    Hi guys
    we are looking for solution to get buddypress notifications work on our theme, we know it will be shown on wordpress’s default top tool bar but we want it to show somewhere else.

    We are using WP 4.3 with buddypress 2.3.3, we have added these to theme’s functions.php

    
    function bpfr_add_notification_to_page_title( $title, $original_title, $sep  ) {
    	
    	//do not change if the user is not logged in
    	if( ! is_user_logged_in() )
    		return $title;
    	
    	$user_id = get_current_user_id();//logged in user's id
    	
    	$count = bp_notifications_get_unread_notification_count( $user_id );
    	
    	if( $count > 0 )
    		$title = sprintf( "You Have %d New Notification(s) - ", $count );
    	
    	return $title;
    	
    	
    }
    add_filter( 'wp_title', 'bpfr_add_notification_to_page_title', 100, 3 );
    

    then we add these to theme ‘s menu location

    
    <?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); ?>
    

    but it is showing nothing, what is the correct steps to make this work please?

    thanks

    #244059
    brantb15
    Participant

    There were a few actions that I was trying to hook into, but they don’t register as actions. I used include plugins_url() . '/buddypress/bp-activity/bp-activity-functions.php';, but even with that, it still doesn’t come back as an action when I use has_action

    #244054
    Ingram_AV_98
    Participant

    Cool, awesome, wicked.
    As with everything BuddyPress over the last four months I figured it out myself.

    If anybody cares or is intrigued, I pulled out the “signup_id” from the wp_signups table and created a link with that, of the form:

    <?php
    	//== Setup variable for use in the activation email body.
    	$user = get_userdata( $user_id );
    
    	//== Get the signup_id for a user
    	global $wpdb;
    	$signup_id = $wpdb->get_var( "SELECT signup_id FROM wp_signups WHERE user_login = '" . $user->user_login . "' LIMIT 1" );
    
    	$user_path = "users.php?page=bp-signups&signup_id=" . $signup_id . "&action=activate";
    	$activate_user = admin_url( $user_path );
    ?>

    This link is a part of the filter for the activation email body, whilst the email itself was also filtered to be sent to the site admin instead of the user.

    If anybody is interested I’m happy to share the full solution which involved filtering the activation email recipient, email subject and email body, whilst giving the admin a link to activate the user and then sending a confirmation email to the user once they’ve been authorised.

    #244052
    danbp
    Participant

    By default, when using BP’s site wide activity component and if user is logged in, you’ll see a Fav/Unfav button under each activity. This means that you can fav/unfav an activity, not directly a post.

    codex - activity stream screenshot

    To get a similar button near a blog post, you’re no more on the activty page and need to add a separate code. Read from here how to do this. More or less…

    WP Favorite plugin is not made to work with BuddyPress, just aside.
    Edit: you’re lucky, found this topic how to make it work.
    https://wordpress.org/support/topic/wp-favorite-posts-and-buddypress

    #244048
    itslino
    Participant

    @djsteveb It’s not that its a mess.
    I simply used the blankslate theme, then I wrapped the container within the wrapper to allow the menu css3 animation to work.

    BuddyPress is the only thing I’m having issues with, everything else works fine.
    I just can’t tell why buddypress can’t display profiles. So i simply disabled it and am now looking for an alternative.

    #244043
    djsteveb
    Participant

    @itslino – yeah I don’t see much about them in there either – the theme docs are a mess here, and non-existent for 2015 theme as well.

    There was some site that listed a bunch of wordpress code and buddypress code – searchable and such, but I can’t .. wait I think it’s called hookr.io or something – found it – http://hookr.io/plugins/buddypress/#index=a if you type css in the filter box it limits what is displayed – it may help – but not sure. I have no idea how that works, if it’s up to date, and if all bp styling stuff actually has “css” in it’s tag or whatever.

    I guess you could change to 2014 theme and go to each page and right click property inspector and copy the css.. then put that into notepad and search for everything “buddypress” – at least that’s what I have been thinking about doing.. I think there is also some different styles with 2014 and 2015 depending on what screen size you are viewing with – so may hve to check various media queries.. no idea if there is a better way.

    I want to make some custom bp themes, but I can’t even get proper docs on working with latest / best coding practices with the wp default themes at the moment. There is some details on thesis.com err.. themeshaper.com – I think that stuff is out of date though –

    If you get it figured out I’d love to see some info put together on all this.

    #244042
    itslino
    Participant

    I’ve been looking at it, but I don’t see anything about manually adding buddypress or id/class names that BuddyPress relies on

    #244041
    djsteveb
    Participant

    have you looked into the codex area?
    ( https://codex.buddypress.org/themes/ )

    I have not yet begun to learn all that, so I can’t tell you anything about it.

    Themes and buddypress and me are a challenge to say the least.. especially if you mixin rtmedia plugin.

    Only thing I have been able to do is go back to the 2014 theme and try modding that.

    #244038
    JigmeDatse
    Participant

    With Twenty Fifteen as the theme, and no other plugins enabled, the pages show up entirely blank. I’d really like to be able to use BuddyPress, but right now I don’t see what I can do to fix this.

    Is it possibly an issue with the mod_rewrite either not being enabled on the Apache server, or that the .htaccess is missing something that needs to be in there?

    danbp
    Participant

    Core URL’s avaible on a profile activity page are taylored to go to that user, so it is not possible (at least very complicated) to show whole site activity feed on such page.

    But you can modify SWA page to show friends activities as first tab (instead ALL) by default
    Eventually in WP reading settings, you choose also Activity page as static Front page.

    https://buddypress.org/support/topic/how-do-i-change-my-activity-from-everything-to-updates-on-default/#post-183088

    Different other methods explained here

    bp_ajax_querystring()

    Using bp_parse_args() to filter BuddyPress template loops

    djsteveb
    Participant

    @shubham9
    I have not used this, but I was looking at it yesterday and now thinking about it ->

    Facebook Like User Activity Stream for BuddyPress

    I imagine you could read up on the latest discussions about parse_Args and such and code this yourself.. I have a good imagination though..

    I myself have been considering asking for a way to display both the “profile tab” and the “activity” tab info below that.. with a selectable filter for “Just John Doe” or “John Doe and friends” or something like that.. think that would be cool – and likely not too hard to mashup…

    but I’m still learning php, maybe someone else has an idea on how to make that happen with a simple them functions.php mixin .. I already have a think in bp-custom to make the default profile page show the profile tab instead of the defaults.. so the code is here and there around here I guess.

    #244032
    djsteveb
    Participant

    @projectslimited – yeah, welcome to the club! I had one bp site with registration turned off for 18 months.. turned it on to test some thing – hours later – dozens of new “groups” and spam accounts.

    My main site I depend on buddypress humanity as main line of defense.. but also add the plugin “good question” (changing the defaults on these two!)

    I also use “geo ip block” on all wp sites now. (changing some defaults)

    that seems to help 95% – then I got so tired of the manual spammers that I added the apache gep redirect thing from maxmind lite.. and block all visits from Russia, China, Ukraine, and a few others completely.

    Saves a ton of bandwidth and server resources – and makes it easier to find the cdir blocks of US and UK ISPs to block via htaccess (none of my web site visitors are using COLO Crossing Transport to visit my site- so all their cidrs eg:
    23.94.144.0/20
    23.94.144.0 – 23.94.159.255

    blocked…

    I have been messaging with a wordpress plugin author about modding his plugin that pulls info from failed logins and puts them into iptables – suggesting a few mods that can make that info useful to those of us who do not have access to or want to get into iptables modsec stuff – hopefully those suggestions will come into a new version of that plugin later this year.

    with my multi-site setup I use a ‘new blog defaults’ plugin to set any new blogs created to automaticcaly have the noindex setting in wordpress, and noinded nofollow settings from yaost.. so even if one manual spammer gets in and makes blog – it does no good, and does not show up on the radar of the other spammers.

    I recently had to block Japan entirely as I started getting daily spam hits from there.. of course each person’s setup will vary – I can’t block all countries on all my sites, so some sites I set the ip geo block to whitelist just one or two.. on other sites I setup a blacklist to block 20 or so..

    #244029
    shanebp
    Moderator

    Thanks for the clarity in your question.

    Are they also Buddypress entries and can I delete them as well?

    Looks okay to me. Should be fine.
    But if you aren’t comfy about deleting them, leave them there.
    9 rows is no biggee in the options table.

    #244015
    Henry Wright
    Moderator

    Just looked it up

     * Filter SQL query strings to swap out the 'meta_id' column.
     *
     * WordPress uses the meta_id column for commentmeta and postmeta, and so
     * hardcodes the column name into its *_metadata() functions. BuddyPress, on
     * the other hand, uses 'id' for the primary column. To make WP's functions
     * usable for BuddyPress, we use this just-in-time filter on 'query' to swap
     * 'meta_id' with 'id.

    Seems as though it’s used to make WP *_metadata() functions compatible with BP.

    #244012
    Henry Wright
    Moderator

    Good shout @shanebp.

    Also, looking at the groups_get_groupmeta() function definition, I’m wondering why we need to filter the query string with bp_filter_metaid_column_name?

    Anyway, alternatively, this may work but I haven’t tested:

    $retval = get_metadata( 'group', $group_id, $meta_key, $single );
    var_dump( $retval );

    Edit: Looks as though there is a reason BuddyPress uses bp_filter_metaid_column_name to filter the query. So my above might not work when it comes to BP.

    #244004
    Henry Wright
    Moderator

    I agree it sounds as though you’ll need a bookmarking plugin as the “core”. There are most probably lots to choose from in the WordPress Plugin Directory. My advice is set up a WordPress site locally for testing, install BuddyPress and try out some of the bookmarking plugins to see which suits your idea best.

    #243995
    VeeLow
    Participant

    Sadly, I’m not here with an answer, but another manifestation of this same problem.

    Am running WordPress with bbpress and BuddyPress, Twentyfourteen theme, everything updated except I’ve not yet gone to BuddyPress 2.3.3.

    My login is “Prof L”; so is my user name. To the best of my knowledge I’ve set “admin” nowhere in BuddyPress……but to private message me, “@admin” is required!

    Update: OK, I see that in email settings, one of the options reads as follows:

    A member mentions you in an update using “@admin”

    So somehow that has been set to my “handle” (is that the right BP term?) But again, I never to my knowledge entered “admin”, nor does it display anywhere on the front end of the site.

    I will try the plugin mentioned up thread, and report back–but wanted to testify that this problem is real and ongoing….

    #243987
    gbsu
    Participant

    Sorry guy, I hadn’t been checking this thread in a while. I inserted the following code in epanel css:

    .buddypress #left-area {
    padding-bottom: 23px;
    width: 65%;
    float: left;
    }
    
    .buddypress #sidebar {
    float: left;
    }
    .buddypress #left-area {
    padding-left: 20px;
    }
    .buddypress .widgettitle {
    padding: 5px;
    margin-bottom: 5px;
    }
    
    .buddypress #sidebar {
    width: 260px;
    float: right;
    }
    
    .buddypress #main-content .container:before {
    left: auto !important;
    right: 260px;
    }
    #243985
    shanebp
    Moderator

    afaik, there is no option.
    Try this in your theme/functions.php

    function larnoult_remove_bbpress_notifications() {
        remove_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 );
    }
    add_action( 'bbp_loaded', 'larnoult_remove_bbpress_notifications', 99  );

    You may need to tweak the priority settings.
    https://codex.wordpress.org/Function_Reference/remove_action

    #243974
    Henry Wright
    Moderator

    I added some comments asking the main group to seriously consider BP and other plugins when choosing next default theme

    Nice one @djsteveb! I hope TwentySeventeen takes BuddyPress into consideration too.

    Henry Wright
    Moderator

    To the best of my knowledge, you can’t have 2 themes activated at the same time. You should choose a WordPress theme and then make use of the BuddyPress Template Hierarchy to customise the BuddyPress portion of your website.

    #243958
    shanebp
    Moderator

    You can create a job listing here.
    Be sure to include your contact info.

    #243956
    danbp
    Participant

    Deactivate RTMedia & any custom function (if exist) related to buddypress-media and test.

    #243950
    r-a-y
    Keymaster

    Hi,

    Thanks for posting. Are you using an older version of WordPress?

    In BP 2.3.3, we added support for WordPress 4.3 in the Activity and Groups dashboards without checking for older WordPress installs.

    This is how the fatal error occurred.

    To fix this temporarily until we release a new version, apply this patch to BuddyPress:
    https://buddypress.trac.wordpress.org/attachment/ticket/6606/6606.01.patch

    #243948
    intimate1
    Participant

    Yeah,

    This is a bit more advance for me?

    $admin_email = “admin@intimatencounters.com”;
    $message = sprintf( __( ‘Member: %1$s’, ‘buddypress’ ), bp_core_get_user_displayname( $user_id ) ) . “\r\n\r\n”;
    $message .= sprintf( __( ‘Color: %s’ ), bp_get_profile_field_data(‘field=Color’) ). “\r\n\r\n”;
    wp_mail( $admin_email, sprintf( __( ‘[YOUR SITE] Member Profile Update’ ), get_option(‘IntimatEncnounters’) ), $message );
    }
    
    add_action( ‘xprofile_updated_profile’, ‘rc_buddypress_profile_update’, 10, 5 );

    I have a lot of unknowns.

    For example, for line 5 do I need to include every single field? Also, for the bit of code that preceeds bp_get_profile_field_data, .= sprintf( __( ‘Color: %s’ ). Do I need to include anything in here, next to ‘Color:%s’ or leave it as is?

    For line 6, do I need to type the captitalized [YOUR SITE] exactly like this [INTIMATENCOUNTERS]?

    And lastly, for ‘blogname’ would I type ‘intimatencounters’ ?

    function rc_buddypress_profile_update( $user_id ) {

    Thanks,

    C.E.

Viewing 25 results - 12,051 through 12,075 (of 69,016 total)
Skip to toolbar