I think I found a problem when using this:
http://www.vbulletin.com/forum/showthread.php?t=146909
I get this:
PHP Code:
Parse error: parse error, unexpected T_STRING, expecting ')' in /home/httpd/vhosts/mustangevolution.com/httpdocs/forum/includes/datastore_cache.php on line 4065
and this is line 4065
PHP Code:
eval(\'$newpost[\\'message\\'] .= "\n\' . fetch_template(\'newpost_quote\', 1, 0) . \'";\');
and this is the whole code section:
PHP Code:
// #############################################################################
// # START MULTI QUOTE #
// #############################################################################
if (!$newpost[\'preview\'] AND $postids = $vbulletin->input->clean_gpc(\'c\', COOKIE_PREFIX . \'multiquote\', TYPE_STR))
{
$postids = explode(\',\', $postids);
$tmp = array();
//------------------------------
// Make sure we don\'t double
// posts if user selected and
// pressed the "reply" button
//------------------------------
if ($postinfo[\'postid\'] AND !$vbulleitn->GPC[\'noquote\'])
$remove_postid = $postinfo[\'postid\'];
else
$remove_postid = false;
//------------------------------
// Fetch valid PIDs
//------------------------------
foreach ($postids AS $pid)
{
if (is_numeric($pid) AND $pid != $remove_postid)
$tmp[] = $pid;
}
$postids = $tmp;
$postids = implode(\',\', $postids);
if ($postids)
{
//------------------------------
// Fetch the posts and
// get ready to assign them to
// the message area.
//------------------------------
$q = $db->query_read("SELECT
post.username,
post.pagetext,
thread.postuserid,
forum.forumid
FROM
" . TABLE_PREFIX . "post AS post,
" . TABLE_PREFIX . "thread AS thread,
" . TABLE_PREFIX . "forum AS forum
WHERE
post.postid IN($postids)
AND thread.threadid = post.threadid
AND forum.forumid = thread.forumid
ORDER BY post.postid");
while ($data = $db->fetch_array($q))
{
//------------------------------
// Make sure user has perms to
// read the post they are
// quoting
//------------------------------
$forumperms = fetch_permissions($data[\'forumid\']);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions[\'canview\']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions[\'canviewthreads\']))
{
continue;
}
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions[\'canviewothers\']) AND ($data[\'postuserid\'] != $bbuserinfo[\'userid\'] OR $bbuserinfo[\'userid\'] == 0))
{
continue;
}
//------------------------------
// Now set up the textarea with
// the quotes
//------------------------------
$originalposter = fetch_quote_username($data[\'username\']);
$pagetext = htmlspecialchars_uni($data[\'pagetext\']);
$pagetext = trim(strip_quotes($pagetext));
eval(\'$newpost[\\'message\\'] .= "\n\' . fetch_template(\'newpost_quote\', 1, 0) . \'";\');
}
//------------------------------
// Clean up a bit and delete
// cookie
//------------------------------
unset($postids, $tmp, $remove_postid, $q, $data, $forumperms, $originalposter, $pagetext);
vbsetcookie(\'multiquote\', \'\', false);
}
}
// #############################################################################
// # END MULTI QUOTE #
// #############################################################################