Please help my custom thread field doesn't goes to the new line after each custom field
custom field 1: xxx custom field 2: yyy custom field 3: zzz
I want it like this
custom field 1: xxx
custom field 2: yyy
custom field 3: zzz
Message
follow is the code from newthread_post_start
PHP Code:
$getcustomthreadfields = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "custom_thread_forms ");
while($forms = $db->fetch_array($getcustomthreadfields))
{
$custom_formid = "custom_$forms[custom_formid]";
$value = htmlspecialchars($_POST[$custom_formid]);
if($forms['required'] == 1)
{
if(empty($value))
{
eval(standard_error(fetch_error('fill_in_custom_thread_field')));
}
}
if($forms['forumid'] != "-1")
{
$forumids = explode(",", $forms['forumid']);
if(in_array($foruminfo['forumid'], $forumids))
{
$custom_message .= "[b][color=Red]".$forms['title']."[/color] [/b] ".$value."
";
}
}
if($forms['forumid'] == "-1")
{
$custom_message .= "<b>".$forms['title']."</b>: $value<br />";
}
}
$vbulletin->GPC['message'] = "
$custom_message
" .$vbulletin->GPC['message'];