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
  #72  
Old 08-11-2005, 05:26 PM
BamaStangGuy's Avatar
BamaStangGuy BamaStangGuy is offline
 
Join Date: Mar 2004
Location: Alabama
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I can confirm this code is causing it:

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;
    }
    
    
$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'10) . '";');
        }

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

Confirmed. Seems to be a vBulletin Bug to me.
http://www.vbulletin.com/forum/bugs3...view&bugid=976
Reply With Quote
  #74  
Old 08-11-2005, 07:40 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So as long as we don't set it up to use filecahe datastore, this won't show up?
Reply With Quote
  #75  
Old 08-11-2005, 07:45 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. And it actually was a vBulletin Bug
Reply With Quote
  #76  
Old 08-11-2005, 07:49 PM
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
Yes. And it actually was a vBulletin Bug
I saw that.

What does the filecache datastore code he posted on the com supposed to do, anyway?
Reply With Quote
  #77  
Old 08-13-2005, 09:53 AM
SkyShadow SkyShadow is offline
 
Join Date: Jun 2003
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this plugin work for vB 3.5?
Anyone tested yet?
Reply With Quote
  #78  
Old 08-13-2005, 09:54 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 SkyShadow
Does this plugin work for vB 3.5?
Anyone tested yet?
Works fine.
Reply With Quote
  #79  
Old 08-29-2005, 03:11 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Template edit gives the following error:

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.
Reply With Quote
  #80  
Old 08-29-2005, 03:13 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, for some reason, the original copy and past from the file doesn't work right. Try this:

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>
Should work just fine.
Reply With Quote
  #81  
Old 08-29-2005, 03:16 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Even in cyberspace, I can always count on a fellow Texan. Thanks neighbor.
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 07:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04778 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
  • (1)bbcode_php
  • (2)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