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!
One of my members is a coder and has a JavaScript consol open along with FireFox for some work he is doing.
He also has the forum open in another tab and he has a constant error warning of: "Error: initMultiQuote is not defined".
It has not affected me as I don't have this type of error reporting on, but thought you might like to know. Also I wouldn't mind hearing about a fix as this must be annoying for him and as he is an Admin...
@theArchitect
initMultiQuote() is defined in multiquote.js, so make sure this File is located in clientscript and is being loaded bei showthread.php
Thanks, I will look into that. Though I have had to turn it off on my live board as I have just installed a spell check system and it seems to have cancelled this hack out.
I don't think it should, but until I get to the bottom of the problem I have removed the multiquote button as clicking it now does nothing.
This is the whole code and does compile just fine for me?
I'm getting this error now when I try to add that code to the template:
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 /xxxx/xxxx/xxxxxx_xxxx/boards/includes/adminfunctions_template.php(3504) : eval()'d code on line 191
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.
Bob, that error is common for many of us when there are apostrophes within the brackets in the template. Kill the surrounding apostrophes wherever they occur and you should be good to go.
Parse error: parse error, unexpected T_STRING, expecting ')' in /home/httpd/vhosts/mustangevolution.com/httpdocs/forum/includes/datastore_cache.php on line 4065
//------------------------------
// 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 MULTIQUOTE #
// #############################################################################