
04-06-2010, 05:57 PM
|
|
|
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Getting error when I added this plugin:
Quote:
$help_shortcut = $vbulletin->options['kbs_help']; $is_vb4 = ($vbulletin->options['templateversion'] >= '4.0'); if ($help_shortcut) { $shortcuts = ''; foreach ($GLOBALS['kbs_functions'] as $group => $group_shortcuts) { foreach ($group_shortcuts as $shortcut => $info) { $sessionurl = $vbulletin->session->vars['sessionurl']; if ($sessionurl) { if (strpos($info['link'],$sessionurl) === false) { if (strpos($info['link'],'?') === false) { $info['link'] .= '?' . $sessionurl; } else { $info['link'] = str_replace('?','?' . $sessionurl,$info['link']); } } } if ($is_vb4) { $templater = vB_Template::create('kbs_shortcutbit'); $templater->register('shortcut',$shortcut); $templater->register('info',$info); $shortcuts .= $templater->render(); } else { eval('$shortcuts .= "' . fetch_template('kbs_shortcutbit') . '";'); } } } if ($is_vb4) { $headercode = vB_Template::create('kbs_headercode')->render(); $templater = vB_Template::create('kbs_footercode'); $templater->register('help_shortcut',$help_shortcut); $templater->register('shortcuts',$shortcuts); $footercode = $templater->render(); } else { eval('$headercode = "' . fetch_template('kbs_headercode') . '";'); eval('$footercode = "' . fetch_template('kbs_footercode') . '";'); } $output = str_replace( array('','') ,array($headercode . '',$footercode . '') ,$output ); }
|
|