
05-25-2011, 01:58 PM
|
 |
|
|
Join Date: Jul 2010
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by clubvr4
I've also tried using the following code, to no avail.
PHP Code:
require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$forumid = $form['forumid'] = XX;
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';
However,
using the above code, and the no attachments code you kindly provided me before - I find that when i click on attachments i do not have permissions to access to FUM..
PHP Code:
$currentattaches = $db->query_first("SELECT COUNT(*) AS countrows FROM " . TABLE_PREFIX . "attachment WHERE posthash = '" . $db->escape_string($posthash) . "' AND userid = " . $vbulletin->userinfo['userid'] );
$attachcount = $currentattaches['countrows'];
if (!$attachcount)
{
$complete = false;
$customerror .= '<div class="blockrow"><div>Error, No attachments!</div></div>';
}
Removing either the no attachment code or the prefix select code allows me to once again open FUM.
|
/facepalm..
found # 879
All sorted now...
|