Is it possible to join Forum topic and automatic reply (nodecomments) by insert nodecomment's NID as new CID value in new row into a 'node_comments' table with Rules Execute custom PHP code function? I am using Advanced forum with Node Comments for comments and Rules for various actions. What I want to achieve?
Scenario:
-User has created Forum topic (newcontent1). Content is published.
-After saving newcontent1, Rules has created reply on user's Forum topic. Reply is nodecomments type (newcontent2).
-After saving newcontent2, Rules has created two number variables: Forum topic NID and Comment NID.
I think Rules does not have action to join this two contents into a Forum thread, or I can not find this one. Is it possible to use created tokens: Forum topic NID and Comment NID and place them with Rules execute custom php function into a 'node_comments' table as a new row according to the structure?
Something like this:
db_query("insert into {node_comments} values ('[nid_comment:number]', '0', '[nid_forum:number]', '0', '01/\', 'user_name', '1', NULL, NULL)");
Is this approach good from nodecomments perspective for solving this problem?
Thanks
Comments
Comment #1
crea commented2.x is unlikely to get any support at this point. Closing all related issues.
Comment #1.0
crea commentedadditional text