Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

  • mort3n
    Participant

    @mort3n

    Curiously, I have exactly the same problem with the Messages inbox 🙂

    Setup WP 3.5.1, BP 1.6.4 theme is slight mod. child of bp-default.

    The details are as above :

    A user goes to Profile. Selects Messages -> Inbox. Enters a search term in the inbox search field. Results are shown fine, but clicking to go to page 2 results in blank page only with a ‘0’ on.

    The URL for this blank page is `/wp-admin/admin-ajax.php?mpage=2`

    I’m guessing it’s related to the move from wp-load to admin-ajax. But how?

    Cheers
    Mort3n


    mort3n
    Participant

    @mort3n

    I have the same problem on the same setup and have conducted the same test.

    Here’s a link to a ticket about this
    https://buddypress.trac.wordpress.org/ticket/4801

    I thought it was a problem with W3TC as this has had some instabilities over the last few releases, but not so.

    I suspect that the cause of this is also the cause of Activity stream updates not working on my site.

    Pretty frustrating!

    Can’t help but wonder if this has something to do with the ajax hardening introduced in 1.6.4 as mentioned in the release announcement

    https://buddypress.org/support/topic/buddypress-1-6-4-released/

    Am sooo looking forward to 1.7 🙂

    Cheers
    Mort3n


    mort3n
    Participant

    @mort3n

    Update

    First of all, my comment above about `split()` is obviously wrong since this is JS `split()`, not PHP 🙂

    Anyway, having looked a bit deeper it is exactly the (JS 😉 ) `split()` is the culprit.

    The id being `split()` contains the string

    un-username

    The code will split this on `-` and return the second part. This works great, as long as

    username

    has no `-`.

    The site where I have seen this error uses user names of the form `john-doe`. The code therefore splits the `id` into three parts `un`, `john`, `doe` and returns the second part, `john`. Then it tries to remove class `john` which fails since the class to be removed is `john-doe`.

    As far as I can see `-` is allowed in user names https://codex.wordpress.org/Function_Reference/sanitize_user

    Any ideas for a workaround?

    Cheers
    Mort3n


    mort3n
    Participant

    @mort3n

    Hi,

    Thanks for chiming in!

    Good point about bp-custom, will use that instead.

    Cheers
    Mort3n


    mort3n
    Participant

    @mort3n

    Resolved.

    Indeed, the child-theme functions php is called before the parent-theme functions php
    https://codex.wordpress.org/Child_Themes#Using_functions.php

    The function `bp_dtheme_setup()` where the button is added in bp-default is made pluggable as I’ve just learned that it should be 😉

    Therefore, the solution is to override the function in child-theme functions php.

    That is, copy the function `bp_dtheme_setup()` from bp-default/functions php to child-theme/functions php and comment out the lines
    `
    if ( bp_is_active( ‘activity’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_send_public_message_button’, 20 );
    `

    Hope it helps someone!

    Cheers
    Mort3n


    mort3n
    Participant

    @mort3n

    Ohh, I should add that this plays nicely with tinyMCE advanced and probably also with Ultimate tinyMCE and other editors.

    The user should be allowed to use the editor as per the setting Users -> user -> Personal Settings -> Visual editor in the Dashboard.

    Cheers
    Mort3n


    mort3n
    Participant

    @mort3n

    I was sooo looking forward to this, but now I can’t seem to find it :-(

    Setup WP 3.4.1, BP 1.6.

    Upgraded an existing BP installation with group forums only.

    Used to achieve this functionality with plugins Ultimate TinyMCE and U BuddyPress Forum Editor. Doesn’t work on my new setup.

    Any help much appreciated!

    Cheers

Viewing 7 replies - 1 through 7 (of 7 total)
Skip to toolbar