Quote:
Originally Posted by valletin
But where can i assign for each User where the form will be posted into into their thread? The same form has to go into different threads depending on the User.. Can i set a default threadID for each user where forms will go? Thanks for your reply in advance.
|
Import attached file:
use following php code in the
form hook: before submit
PHP Code:
$threadtitle = $vbulletin->input->clean($threadtitle, TYPE_STR);
$check = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "thread WHERE title='".addslashes($threadtitle)."' ORDER BY threadid DESC");
if (isset($check[threadid]))
{
$form[action] = 3;
$form[where] = $check[threadid];
}