Quote:
Originally Posted by LaCN
THat's because u prolly have html-code set to off
Go to ur plugins
edit: Custom Thread Forms [newthread_post_start]
In the big text-box with the php-code, scroll down to the bottom and find:
replace it with:
So, the <br> tages just become an enter 
(make sure they are within "")
You prolly might have the same problem with the custom tags and answers..
Above that area u just fixed, find:
Change it into this:
PHP Code:
if(in_array($foruminfo['forumid'], $forumids))
{
$custom_message .= "[B]".$forms['title'].":[/B] ".$value."
";
If u want colored titles, do something like:
PHP Code:
$custom_message .= "[B][COLOR=Navy]".$forms['title'].":[/COLOR][/B] ".$value."
";
Notice that I removed the "" from [COLOR= "NAVY "]
(somehow placing a \ in front of them isn't working)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
I would like to see an option in type of field, like I want to have a textarea sometimes.
And also the ability for an url-field.
So u get:
._________ . .___________
|_link-field_| |_name-field_|
for example 
|
I'm running into the same issue that prompted this fix.
Unfortunately, it appears that the plug-in has changed since this fix was posted.
Here is the current "Custom Thread Forms [newthread_post_start]" that I have installed.
PHP Code:
if($vbulletin->options['custom_thread_fields_enabled'])
{
$getcustomthreadfields = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "custom_thread_forms");
while($forms = $db->fetch_array($getcustomthreadfields))
{
$custom_formid = "custom_$forms[custom_formid]";
$value = $vbulletin->input->clean_gpc('p', $custom_formid, TYPE_STR);
if($forms['required'] == 1 && empty($value))
{
eval(standard_error(fetch_error('fill_in_custom_thread_field')));
}
if($forms['fieldtype'] == 1)
$value = nl2br($value);
$forumids = explode(",", $forms['forumid']);
if(!empty($value))
{
if(in_array($foruminfo['forumid'], $forumids) OR $forms['forumid'] == "-1" )
{
$custom_message .= "[b]".$forms['title']."[/b]: $value<br /><br />";
$break = "<br /><br />";
}
}
}
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "$break $custom_message";
}
Anyone have any ideas? I don't really want to allow users to use HTML code on the forums....