Skip to:
Content
Pages
Categories
Search
Top
Bottom

Editing update adds a new update

  • Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    Very useful plugin, thanks!

    Just one thing though: when editing an update on my site, rather than replacing the previous update, the edited update is added as a NEW update. So, user must manually delete the old.

    WPMU2.9.2+BP1.2.3

Viewing 6 replies - 1 through 6 (of 6 total)
  • very weird – i can’t reproduce that. When editing, the correct content shows up? Can you send me your site so I can register and see it in action?

    Technically, when passed in the activity_id – the bp_activity_add function will switch to update instead of an insert. the activity_id is taken from $bp->action_variables[0] and then also validated against a nonce on the edit screen. (any chance you have a different url structure?)

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @rich!

    Thanks for offering to take a look. Here’s a link to the registration page:

    http://rspace.org/new-account

    Actually – I just registered and posted one update from my profile, then viewed the homepage and your site is actually inserting 2 from the start. (i didn’t even edit yet)
    http://rspace.org/members/nuptest/activity/554

    http://rspace.org/members/nuptest/activity/555

    I just posted another update – which inserted 2 from the start (the ajax only refreshes the page with one but if you manually refresh the page you’ll see both)
    http://rspace.org/members/nuptest/activity/556
    http://rspace.org/members/nuptest/activity/557

    I only made an edit to 557 – and no other duplicates where made after the edit. Looks like you have a bug somewhere else when a new activity status update is made. But this plugin is working fine

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    Yup, was watching your activity. Never noticed the double activity ’til just after installing your plugin, so I thunk the problem was there. Guess I’ll have to scour deeper.

    Thanks for taking a look!

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    Found the culprit.

    After deactivating all plugins except BP, the double entries were still there, so I had a look at files I’ve edited and voilĂ : the problem was in my functions.php. There was an additional call to activity/entry.php… doh! Realized that the function in question was kind of redundant so, after deleting it, problem solved.

    Thanks again for your time @rich!

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

You must be logged in to reply to this topic.