Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 2,651 through 2,675 (of 22,649 total)
  • Author
    Search Results
  • #275696
    Prashant Singh
    Participant

    Please paste this code in your child theme’s functions.php file or you can use this plugin https://wordpress.org/plugins/code-snippets/ as well

    add_filter( ‘bp_login_redirect’, ‘ps_redirect_to_profile’, 11, 3 );

    function ps_redirect_to_profile( $redirect_to, $redirect_url, $user ){

    if( empty( $redirect_to) )
    $redirect_to = admin_url();

    //if the user is not site admin,redirect to his/her profile

    if( isset( $user->ID) && ! is_super_admin( $user->ID ) )
    return bp_core_get_user_domain( $user->ID );
    else
    return $redirect_to;

    }

    It will redirect site admins to dashboard and other users to their profile.

    Thanks

    #275684
    meridioinc
    Participant

    *Update*

    Now it’s redirecting to the WordPress admin page for a user account. Not the super admin for the site, but just the account. Not sure I recall editing anything for this to happen.

    #275674
    casper99
    Participant
    #275639
    shanebp
    Moderator

    “Show Toolbar when viewing site” is a WP setting.
    Somebody probably has such a function.
    But you should ask a larger audience – try wordpress.org/support/

    #275615
    r-a-y
    Keymaster

    This has already been reported as a bug here:
    https://buddypress.trac.wordpress.org/ticket/7894

    #275578
    r-a-y
    Keymaster

    Do you both have the Activity component disabled?

    If so, this is a bug. We’ve tentatively fixed this for the next release.

    However, you can temporarily apply the changes by by adjusting these files:
    https://buddypress.trac.wordpress.org/changeset/12185

    (Red means code removal, green means code addition)

    #275569
    r-a-y
    Keymaster

    The bug needs to be reproduceable on a fresh install of WordPress and BuddyPress.

    If you are able to replicate this bug there, then please list the steps it takes to duplicate the problem.

    It’s possible that you are using a plugin or custom code to change certain things. If that is the case, you need to disable all BuddyPress-related plugins and code snippets and then trying to reactivate each one to pinpoint what is causing the problem.

    #275546
    Aron Prins
    Participant

    Hey @nfxpert @belle33 @itsart,

    If it is allowed for me to share my domain here, it is https://www.collectorplayingcards.com (running on BuddyBoss original theme (not Boss).

    If you look in the header section you can see my little resetCookie function in action.

    Like @r-a-y says, that is a “good enough” solution for now, or you could take him up on his trac ticket https://buddypress.trac.wordpress.org/attachment/ticket/7896/7896.01.patch 🙂

    Hope this helps!

    Cheers,
    Aron

    #275545
    r-a-y
    Keymaster

    I just saw another thread about this.

    It looks like the bp-nouveau JS files are not being outputted in the footer.

    You can check to see if the buddypress-nouveau JS file is being properly registered and enqueued:
    https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-templates/bp-nouveau/buddypress-functions.php#L296
    https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-templates/bp-nouveau/buddypress-functions.php#L364

    Are you, by chance, filtering 'bp_nouveau_register_scripts' anywhere?

    #275544
    r-a-y
    Keymaster

    Sounds like the same problem as this report:

    Can’t Post in Activity Stream

    Unfortunately, we have been unable to determine the cause. Maybe you can help?

    If you are able to reproduce this problem on a fresh install of WordPress and BuddyPress, then please let us know so we can look into the problem.

    #275536
    Sean Nicholson
    Participant

    Here is a video that shows what the issue is. Apologies for the third-grade video editing:

    As shown in this video, the steps to recreate the issue are to:
    1) Click on any community member
    2) Click the “Public Message” button on their profile
    3) On the activity feed page, place your cursor in the message box and type “Here I am typing”
    4) Hover your mouse cursor over the “Post Update” button. Notice that it is still an arrow icon because you cannot click it.
    5) Click the button. IT WILL NOT POST.
    6) Click anywhere outside of the message box (e.g. white space off to the right).
    7) Hover back over the “Post Update” button. Notice that it is STILL an arrow icon because you cannot click it.
    8) Click the button. IT WILL NOT POST.
    9) Click back in the message field.
    10) Hover back over the “Post Update” button. The cursor changes to a hand icon because the button has now been activated.
    11) Click the button. IT FINALLY POSTS.

    So, the user experience is that they type their message and then have to click somewhere outside of the message box, then click back inside the message box before they can send their message. Not a good user experience. It did this both on the Klein theme that I am using and the standard WordPress 2016 theme. Exact same experience.

    Let me know if there are additional questions that I can clarify.

    Thanks for any help demystifying why this is happening.

    –Sean

    #275535
    r-a-y
    Keymaster

    Maybe just “don’t use oembed except for Youtube” type of hacking?

    BuddyPress just uses whatever oEmbed providers that WordPress uses.

    You can disable oEmbed providers in WordPress with code:
    https://codex.wordpress.org/Function_Reference/wp_oembed_remove_provider

    Hope that helps somewhat. The rest is up to you.

    #275511
    r-a-y
    Keymaster

    For me, it displays the hand icon and I’m able to submit the form after pressing on it. I’m testing with a WordPress default theme.

    Try switching your theme temporarily to see if you can duplicate your problem.

    #275507
    r-a-y
    Keymaster

    Sounds like you’re using a plugin because when you hit the “Public Message” button, it should take you to the Site-wide Activity page with the @-username pre-populated. The submit button is also named “Post Update” and not “Send”.

    Could also be something that your theme implemented. If so, try changing your theme to a WordPress default theme to see if the behavior is how I described.

    #275506

    In reply to: Remove Account issue

    r-a-y
    Keymaster

    BuddyPress doesn’t handle user deletion. We use the WordPress user API to remove the account.

    WordPress is in charge of removing data and they currently do not remove data from the wp_signups table when a user is deleted. Here’s a somewhat, related ticket:
    https://core.trac.wordpress.org/ticket/43232

    shanebp
    Moderator

    How are you getting item_id ?
    You probably already have the author ID in the same object or array that is providing the item_id, especially if you’re in a loop.

    You can always write a direct sql query: https://codex.wordpress.org/Class_Reference/wpdb

    website001
    Participant

    Hello friends

    Got this code from buddydev website

    for theme functions php

    works, but newer versions of buddypress have
    5 group options. This code covers 4.

    ——————————————————————————————————
    add_action( ‘bp_core_activated_user’,

    ‘bpdev_set_email_notifications_preference’);

    function bpdev_set_email_notifications_preference( $user_id ) {

    //I am putting all the notifications to no by default
    //you can set the value to ‘yes’ if you want that notification to be enabled.
    $settings_keys = array(
    ‘notification_activity_new_mention’ => ‘no’,
    ‘notification_activity_new_reply’ => ‘no’,
    ‘notification_friends_friendship_request’ => ‘no’,
    ‘notification_friends_friendship_accepted’ => ‘no’,
    ‘notification_groups_invite’ => ‘no’,
    ‘notification_groups_group_updated’ => ‘no’,
    ‘notification_groups_admin_promotion’ => ‘no’,
    ‘notification_groups_membership_request’ => ‘no’,
    ‘notification_messages_new_message’ => ‘no’,
    );

    foreach( $settings_keys as $setting => $preference ) {

    bp_update_user_meta( $user_id, $setting, $preference );
    }

    //that’s it. have fun!

    }

    ———————————————————————————————————

    This is the option it doesn’t cover—–

    #5
    “Your request to join a group has been approved or denied”

    Can anyone update this ? That would be awsome.

    Thanks alot

    buddypress 2.8.2
    WordPress 4.7.5

    #275450
    Venutius
    Moderator

    Could you do this using BP Follow?

    If it does not give notifications for new posts you can add a quick function for that.

    #275445

    In reply to: SQL replace url DB

    shanebp
    Moderator

    Google for ‘wordpress database search replace’.
    And find results like:
    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    #275443

    In reply to: Invalid activation key

    r-a-y
    Keymaster

    Thanks for the thorough report, @jakdaniel5.

    I’ve filed a ticket here – https://buddypress.trac.wordpress.org/ticket/7938

    We’ll try to verify the issue internally. Once we can duplicate the problem, we’ll look to fix this up.

    #275431
    Dinesh Kesharwani
    Participant

    I applied the patch and tested with all default themes (twenty-*) and two custom themes and it works fine.

    #275429
    ds123
    Participant

    just to update i tried the tools > buddypress > repair > member count didn’t do anything

    as a possible workaround …. nobody on a live site that i know of wants to see a lower member count …my partner is actually very obsessed with this number and will freak when he sees it go down by 1000% …. is there a wordpress query that will display the total number of registered users?

    #275415
    r-a-y
    Keymaster

    Got the answer for you.

    In v3.0.0, we conditionally load code depending on the page you are on.

    Since you are manipulating the default nav item, the screen code needs to be available before the call to bp_core_new_nav_default() is made.

    You can use the following code snippet in conjunction with the code snippet you are currently using until v3.2.0 is released to address this issue:

    add_action( 'bp_late_include', function() {
    	// Include Email screen code on Settings component and for default nav action (which is empty).
    	if ( is_user_logged_in() && bp_is_settings_component() && ! bp_current_action() ) {
    		require_once buddypress()->settings->path . 'bp-settings/screens/notifications.php';
    	}
    }, 11 );

    I’ve created a ticket here – https://buddypress.trac.wordpress.org/ticket/7935

    #275411
    r-a-y
    Keymaster

    I’ve created a ticket here – https://buddypress.trac.wordpress.org/ticket/7934

    Hopefully, some other contributors can duplicate the problem.

    offworld21
    Participant

    Hi,

    Is it possible to change the text of the Register Button from ‘Register’ to ‘Join us’? I’d also like to have the destination when the button is clicked to be a page with an AgileCRM form form, instead of either the BuddyPress or PMPro form (both of which I’m using). The reason for this is that I initially need new sign-ups to go straight into AgileCRM for manual approval, after which their user account will be manually created on WordPress by an admin, and the new user details emailed.

    Ideally I’d like new users to complete sign-up and be manually approved, whilst at the same time their details being sent to AgileCRM and a new contact created. I’ve tried this but even though I’ve set new sign-ups for manual approval, a new account is created (albeit with limited access), and they are immediately logged into the site. I cannot see a way to change this.

    I also tried using Zapier to pull new users into AgileCRM from WordPress but that too didn’t seem to work, event though when going through the testing stage it created a record in AgileCRM.

    I’m using PMPro because the client is looking to take online payments for sign-ups in the future, and want to retain the functionality and option to use the PMPro register page in the future.

    Current set-up:
    WordPress – 4.9.7
    Theme: Boss Child Theme
    Plugins:
    Agile CRM – v1.1
    All-in-One WP Migration – v6.72
    bbPress – v2.5.14
    BuddyBoss One Click Installer – v1.0.6
    BuddyBoss Products Updater – v1.0.2
    BuddyPress – v3.1.0
    BuddyPress Docs – v2.1.0
    BuddyPress Follow – v1.2.2
    BuddyPress Global Search – v1.1.9
    Hide Admin Bar From Non-admins – v1.0
    Import Users from CSV – v1.0.0
    Page Builder by SiteOrigin – v2.7.3
    Paid Memberships Pro – v1.9.5.3
    Paid Memberships Pro – Add Member Admin – v.4
    Paid Memberships Pro – Advanced Levels Page Shortcode Add On – v.2.4
    Paid Memberships Pro – Approvals Add On – v1.0.4
    Paid Memberships Pro – bbPress Add On – v1.5.5
    Paid Memberships Pro – BuddyPress Add On – v1.1.1
    Paid Memberships Pro – Email Templates Add On – v0.7.1
    Paid Memberships Pro – Membership Manager Role Add On – v.3.1
    Regenerate Thumbnails – v3.0.2
    SiteOrigin Widgets Bundle – 1.12.1
    The Events Calendar – v4.6.20.1

    Please let me know if you need any further information.

    Thanks in advance.

Viewing 25 results - 2,651 through 2,675 (of 22,649 total)
Skip to toolbar