Quote:
Originally Posted by mtha
- newticket in predefined category
could be "vBSupport.php?do=newticket&categoryid=xxx" it will select the catid by default, or only display that specific catid
|
to do this:
in vBSupport.php
LOOK FOR
PHP Code:
// start creating a new ticket "
if ($_REQUEST['do'] == 'newticket')
{
ADD BELLOW
PHP Code:
$vbulletin->input->clean_array_gpc('r', array(
'categoryid' => TYPE_UINT,
));
LOOK FOR
PHP Code:
while ($category = $db->fetch_array($categories))
{
$categorybits .= "<option value=$category[categoryid]>$category[categoryname]</option>";
}
REPLACE BY
PHP Code:
while ($category = $db->fetch_array($categories))
{
$categorybits .= "<option value=$category[categoryid] " . iif($category[categoryid] == $vbulletin->GPC['categoryid'],'selected') . ">$category[categoryname]</option>";
}