
12-16-2007, 07:11 AM
|
 |
|
|
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by UberMensch
I've had a crack at fixing our problem, and the attached product appears to work.
The changes were:
In Plugin:
newthread_post_start
Replace:
PHP Code:
$forumids = explode(",", $forms['forumid']);
With: (Or delete it)
PHP Code:
// $forumids = explode(",", $forms['forumid']);
Replace:
PHP Code:
if($forms['required'] == 1 && empty($value)) { eval(standard_error(fetch_error('fill_in_custom_thread_field'))); }
With:
PHP Code:
$forumids = explode(",", $forms['forumid']);
if($forms['required'] == 1 && empty($value) && in_array($foruminfo['forumid'], $forumids)) { eval(standard_error(fetch_error('fill_in_custom_thread_field'))); }
Save Plugin:
newthread_post_start
It works for me (vB3.6.8 PL2), could someone confirm with their board also?
|
So far, your updated product xml appears to be working just fine. Thanks.
|