Lionel
11-20-2004, 12:49 PM
I'd like to use one category as a yellow page.
I already used the hack to make url not required.
I made some custom fields for first and last names
Can I make those 2 custom fields required only on a specific category?
Brian
11-20-2004, 12:57 PM
In your addlink.php file look for this code:
$thisfield = 'field' . $field;
Right above it add this:
if (in_array($field, array(A,B,C)) AND !in_array($_POST['catid'], array(X,Y,Z)))
{
continue;
}
Replace A,B,C there with the fieldids and X,Y,Z with the catid(s) that those fields should be required in. I haven't tested this, but it should work fine.
lee wilde
01-12-2005, 09:49 PM
This is cool.
Can I now make fields which are not required in a certain category, not visible in the "ADV_LINKS_ADD_EDIT" template?
Brian
01-13-2005, 10:38 AM
Not really since your users will pick the category on that page.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.