View Full Version : New thread creation and posting question
Raman
07-23-2011, 05:04 PM
I am trying to figure out, when a new thread is created, it adds that thread to thread table and also adds it to post table.
I been looking at newthread.php and functions_newpost to figure out where in the logic it is doing add to post table.
Any help regarding that would be greatly appreciated
Look in includes/class_dm_threadpost.php, search for class vB_DataManager_Thread_FirstPost.
Raman
07-23-2011, 05:38 PM
Look in includes/class_dm_threadpost.php, search for class vB_DataManager_Thread_FirstPost.
Thanks a lot for your help, this is exactly what I was looking for, Have a nice day
--------------- Added 1311472606 at 1311472606 ---------------
My understanding is that when we create a new thread, that thread adds a new record in thread table and also new record in post table. My objective is to populate one custom field into both of the tables.
I have added a custom field in post table and also in thread table.
I am able to push custom field information to thread table properly by doing following.
$newpost['customfield1'] = $vbulletin->GPC['customfield1'];
But I am having hard time finding why custom field information is not getting into post table field.
Which part of the logic from class_dm_threadpost.php could be generating new record into post table.
This seems to have become a big puzzle for me to solve, Please help
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.