Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Multiquote Details »»
Multiquote
Version: 1.00, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

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!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 07-11-2005, 11:05 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kirby? Any joy with the changes?
Reply With Quote
  #63  
Old 07-15-2005, 07:12 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #64  
Old 07-15-2005, 11:21 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@theArchitect
initMultiQuote() is defined in multiquote.js, so make sure this File is located in clientscript and is being loaded bei showthread.php
Reply With Quote
  #65  
Old 07-15-2005, 11:37 PM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
@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.
Reply With Quote
  #66  
Old 07-25-2005, 03:45 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Well, if you put only this line then the </if> is missing ...

HTML Code:
<if condition="$post['replylink'] AND $show['multiquote']">
	<img src="$stylevar[imgdir_misc]/mq_img_off.gif" alt="$vbphrase[multiquote]" border="0" width="21" height="15" name="multiquote_$post[postid]" id="multiquote_$post[postid]" onclick="toggleMultiQuote($post[postid], this)" style="cursor:pointer" />
</if>
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.
Reply With Quote
  #67  
Old 07-25-2005, 10:46 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #68  
Old 07-25-2005, 11:56 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, Amy.

I did that right after I posted the message above and it worked fine after that.
Reply With Quote
  #69  
Old 08-03-2005, 03:45 PM
BamaStangGuy's Avatar
BamaStangGuy BamaStangGuy is offline
 
Join Date: Mar 2004
Location: Alabama
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on RC1 and working good
Reply With Quote
  #70  
Old 08-03-2005, 06:40 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Biker_GA
Kirby? Any joy with the changes?
Bumpity bump.. ???
Reply With Quote
  #71  
Old 08-11-2005, 05:23 PM
BamaStangGuy's Avatar
BamaStangGuy BamaStangGuy is offline
 
Join Date: Mar 2004
Location: Alabama
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I found a problem when using this:

http://www.vbulletin.com/forum/showthread.php?t=146909

I get this:

PHP Code:
Parse errorparse errorunexpected T_STRINGexpecting ')' 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                                                           #
// ############################################################################# 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04667 seconds
  • Memory Usage 2,350KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (3)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete