Version: 1.00, by Andreas
Developer Last Online: Jan 2023
Version: 3.5.0 Beta 3
Rating:
Released: 06-26-2005
Last Update: 11-15-2005
Installs: 96
Uses Plugins Template Edits
Is in Beta Stage
No support by the author.
Multiquote
Credits
This is a port of the vB 3.0.X-Version of Multiquote made by Chroder - all credits to him and Hoffi for the images.
Description (copy & paste as I am lazy )
This multiquote hack allows your members to select multiple posts to quote from. These posts can be on a different
page, in a different thread, or on an entirely different forum. Don't worry, the hack checks to make sure the user
has read permissions on the post so no sneaky members can insert random post ID's in hopes to find what's going on
in your secret staff forums.
This Hack is not designed to work with Quick Reply, it also does not quote the last post of a Thread if you click the New Reply button, as this button is meant to reply without quoting the last post.
Details
1 Plugin XML
1 Phrase
1 Template Edit
2 Images
1 JS File
No file edits!
Note: As I did not test this extensivly i'll class it as Beta
Please only click Install if you actually have installed/are using this Hack, and click Uninstall when you don't use it any longer!
I disabled only the newreply_form_start hook and it works now which had this code:
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;
}
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 #
// #############################################################################
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/httpd/vhosts/news-talk.org/httpdocs/forums/includes/adminfunctions_template.php(3510) : eval()'d code on line 187
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.