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)

Biker_GA 07-11-2005 11:05 PM

Kirby? Any joy with the changes?

theArchitect 07-15-2005 07:12 AM

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...

Andreas 07-15-2005 11:21 PM

@theArchitect
initMultiQuote() is defined in multiquote.js, so make sure this File is located in clientscript and is being loaded bei showthread.php

theArchitect 07-15-2005 11:37 PM

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.

Boofo 07-25-2005 03:45 AM

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.

amykhar 07-25-2005 10:46 AM

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.

Boofo 07-25-2005 11:56 AM

Thank you, Amy. ;)

I did that right after I posted the message above and it worked fine after that.

BamaStangGuy 08-03-2005 03:45 PM

Installed on RC1 and working good

Biker_GA 08-03-2005 06:40 PM

Quote:

Originally Posted by Biker_GA
Kirby? Any joy with the changes?

Bumpity bump.. ???

BamaStangGuy 08-11-2005 05:23 PM

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



All times are GMT. The time now is 10:05 AM.

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.01385 seconds
  • Memory Usage 1,785KB
  • 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
  • (3)bbcode_php_printable
  • (4)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