-
King Ding replied to the topic Retrieving parent comment id via sql returns blank? in the forum How-to & Troubleshooting 5 months, 1 week ago
Sorry to tripple post, but there’s no way I can edit my post. I have discovered that I simply forgot to surround {$parent_comment->comment_content} with ”. However, I welcome your opinions on better alternatives to me query!
-
King Ding replied to the topic Retrieving parent comment id via sql returns blank? in the forum How-to & Troubleshooting 5 months, 1 week ago
After some tests, it seems that
$parent_comment->comment_content
in the sql line is the issue. This is me trying to retrieve a number (id) from the table: bp_activity IF the parent comment (recorded in the table comments > comment_content) has the same content as an entry recorded in bp_activity. Perhaps there’s a better way to be doing this ? 🤔… -
King Ding replied to the topic How to add custom variable to bp_activity_add ? in the forum How-to & Troubleshooting 5 months, 1 week ago
Thanks for your time and answer @shanebp! 🙂
-
King Ding started the topic Retrieving parent comment id via sql returns blank? in the forum How-to & Troubleshooting 5 months, 1 week ago
In this function, I want
item_id => 'A NUMBER'
. That number can be found on the corresponding table row retrieved from my database. I have tested the sql and it retrieves the intended values, but in the context of this function, it gives a blank value?My apologies if there’s a lot of information that’s unnecessary…[Read more]
-
King Ding started the topic How to add custom variable to bp_activity_add ? in the forum How-to & Troubleshooting 5 months, 1 week ago
I’m creating a plugin that records wordpress comments as a bp_activity post. I’ve been successful at recording the activity, but there’s just one thing that I want to add… a new possible value! Here’s the plugin in a nutshell:
function kd_record_activity($comment_id, $approval) {
[Read more]
if($approval == 1) {
$comment =…
@dazzerr
Active 2 months, 3 weeks ago