форум vBSupport.ru > vBulletin > vBulletin 4.2.x > Вопросы по vBulletin 4.2.x
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
smaller
Простоузер
Question issue with php 7.1
0

If active [SHOWTOGROUPS] tag in vfcoddes, getting error on use PHP7.1 but php 7.0 working
Running vb 4.2.5

PHP Code:
[] operator 68 in /home/xxxxx/public_html/vb/ckeditor.php(74): eval () 'd code
# 0 /home/xxxxx/public_html/vb/ckeditor.php(74): eval () 

I have changed
PHP Code:
$usergrouplist[] = array($title$usergroupid); 
to
PHP Code:
$usergrouplist = array($title$usergroupid); 
from vfcoders editor_construct plugin, then site run but usergroup list not showing in ckeditor.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
milad1904
Простоузер
Default
1

hi

if you dont fix it yet replace all vFCoders - Hide Hack [Hide button in Editor] content with this

Code:
if (vB::$vbulletin->options['hide_hack_sett_main'] && (in_array(THIS_SCRIPT, array('editpost', 'newthread', 'newreply')) OR (THIS_SCRIPT == 'ajax' AND $_POST['do'] == 'quickedit') OR (THIS_SCRIPT == 'showthread' AND vB::$vbulletin->options['quickreply']))) 
{
    // Add Hide buttons to the extra plugins loaded 
    $this->config['_extraPlugins'] .= ',hidetags'; 


    if (vB::$vbulletin->options['vfc_hide_hack_hide'] == 'HIDE-POSTS')   
    {
        $this->config['vbulletin']['vfc_hide_hack_hide_option'] = 1;
    }    
    else if (vB::$vbulletin->options['vfc_hide_hack_hide'] == 'SHOWTOGROUPS') 
    {
        $this->config['vbulletin']['vfc_hide_hack_hide_option'] = 2;
    }
    else if (vB::$vbulletin->options['vfc_hide_hack_hide'] == 'STU')
    {
        $this->config['vbulletin']['vfc_hide_hack_hide_option'] = 3;
    }


    $this->config['vbulletin']['phrase']['hide_post_button'] = $this->vbphrase['vfc_hide_hack_hp_button_msg'];
    $this->config['vbulletin']['phrase']['vfc_hide_hack_select_usergroup'] = $this->vbphrase['vfc_hide_hack_select_usergroup'];
    $this->config['vbulletin']['phrase']['vfc_hide_hack_stu_tip'] = $this->vbphrase['vfc_hide_hack_stu_tip']; 
    $this->config['vbulletin']['phrase']['vfc_hide_hack_stu_enteruserid'] = $this->vbphrase['vfc_hide_hack_stu_enteruserid'];       
     

    global $foruminfo, $vfc_hide;
    $permission = $vfc_hide->check_permission($foruminfo);
    if ($permission[stg] OR (vB::$vbulletin->options['vfc_hide_hack_hide'] == 'SHOWTOGROUPS' AND $permission[hide]))  
    { 
        $usergrouplist = '';
        $usergrouplist = array();
        foreach(vB::$vbulletin->usergroupcache AS $usergroupid => $usergroup)
        {
            if (!in_array($usergroupid, array(1, 3, 4, 8))) 
			{
               $title = $usergroup['title'];
               
               $usergrouplist[] = array($title, $usergroupid);
            }
        }

        $this->config['vbulletin']['vfc_hide_hack_uglist_editor'] = $usergrouplist;
    }

    if (($this->editor_type == 'qr' && THIS_SCRIPT=='showthread') || $this->editor_type == 'qe' && vB::$vbulletin->options[vfc_hide_hack_hidebuttons])
    {	
        $hidetags = $vfc_hide->fetch_tags($foruminfo);
        $this->config['toolbar'][] = $hidetags;
    }
                                             

}
milad1904 добавил 04-26-2020 в 06:10 AM
for
operator not supported for strings on line 182 in /home/p30man/public_html/includes/functions_post_thanks.php
#0 /home/p30man/public_html/includes/functions_post_thanks.php(137): fetch_thanks('96', '', false)
#1 /home/p30man/public_html/post_thanks.php(60): thanked_already(Array)
#2 {main}

error that make thanks plugin unuseable in includes\functions_post_thanks.php
find
Code:
 $postids[] = $postid;
replace with
Code:
             if(!is_array($postids)){$postids = array();}            $postids[] = $postid;

Last edited by milad1904 : 04-26-2020 at 10:10 AM. Reason: Добавлено сообщение
 


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




All times are GMT +4. The time now is 05:52 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...