So I started blindly fiddling with the parameters and something worked
I thought if $activity_id is the 4th parameter and have no idea what would be the 3rd one I passed a bogus parameter and what do you know… it worked.
Data get entered correctly into the db table but just to do things right… what are all the parameters of the functions?
This is voodoo stuff to me really…
No, I’m afraid you didn’t understand. My problem is that the value of $activity_id is 1 with each and every posted update. This is just here in my function. The rest of the script is functioning correctly.
So with the function from my first post the database entries from bp_activity_meta table look like this:
id = “14”
activity_id = “1” <<<
meta_key = “title”
meta_value = “Some Title Blah blah…”
So on every new activity update there isn’t a new entry but just updates meta_value with whatever contains $_POST.