Quote:
Originally Posted by MarkFL
I'm talking about all plugins whose hook location is "threaddata_presave."
|
Yep, I did that.
So let me walk through this one more time.
First I create a plugin hooked at "threaddata_presave" with the code:
global $vbulletin;
if ($vbulletin->GPC['threadid'] == XXX)
{
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "post
SET title = '" . $vbulletin->db->escape_string($vbulletin->GPC['title']) . "'
WHERE threadid = " . $vbulletin->GPC['threadid'] . "
AND parentid != 0
");
}
Using my ID number which is 10573 in the XXX
Next, I go to the thread and update the title and hit save. The title changes, but only the main one which is my issue, not all the rest of the posts.
Is that correct sir?