abDoes anyone know how to activate the new attachment option in the code above?
I see this in newthread
PHP Code:
require_once(DIR . '/packages/vbattach/attach.php');
$values = "values[f]=$foruminfo[forumid]";
$attach = new vB_Attach_Display_Content($vbulletin, 'vBForum_Post');
$attachmentoption = $attach->fetch_edit_attachments($posthash,
$poststarttime, $postattach, 0, $values, $editorid, $attachcount);
$contenttypeid = $attach->fetch_contenttypeid();
require_once(DIR . '/includes/functions_file.php');
$attachinfo = array(
'auth_type' => (empty($_SERVER['AUTH_USER']) AND empty($_SERVER
['REMOTE_USER'])) ? 0 : 1,
'posthash' => $posthash,
'poststarttime' => $poststarttime,
'userid' => $vbulletin->userinfo['userid'],
'contenttypeid' => $contenttypeid,
'max_file_size' => fetch_max_upload_size(),
'values' => array(
'f' => $foruminfo['forumid']
)
and then
PHP Code:
require_once(DIR . '/includes/functions_editor.php');
$editorid = construct_edit_toolbar('',1,'nonforum',1,1,($vbulletin->userinfo['userid']),'fe','',$attachinfo);