vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Multiquote (https://vborg.vbsupport.ru/showthread.php?t=91185)

BamaStangGuy 08-11-2005 05:26 PM

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                                                           #
// ############################################################################# 


Andreas 08-11-2005 05:54 PM

Confirmed. Seems to be a vBulletin Bug to me.
http://www.vbulletin.com/forum/bugs3...view&bugid=976

Boofo 08-11-2005 07:40 PM

So as long as we don't set it up to use filecahe datastore, this won't show up?

Andreas 08-11-2005 07:45 PM

Yes. And it actually was a vBulletin Bug :)

Boofo 08-11-2005 07:49 PM

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? ;)

SkyShadow 08-13-2005 09:53 AM

Does this plugin work for vB 3.5?
Anyone tested yet?

Boofo 08-13-2005 09:54 AM

Quote:

Originally Posted by SkyShadow
Does this plugin work for vB 3.5?
Anyone tested yet?

Works fine. ;)

FASherman 08-29-2005 03:11 PM

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.

Biker_GA 08-29-2005 03:13 PM

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.

FASherman 08-29-2005 03:16 PM

Even in cyberspace, I can always count on a fellow Texan. Thanks neighbor.


All times are GMT. The time now is 01:05 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.01306 seconds
  • Memory Usage 1,780KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete