Vào dbtech\usertag\hooks\global_start.php xóa hết đi và thay bằng
Xong
Nguồn: tuoitreit.vn
PHP:
<?php// Fetch required classesrequire_once(DIR . '/dbtech/usertag/includes/class_core.php');require_once(DIR . '/dbtech/usertag/includes/class_cache.php');if (intval($vbulletin->versionnumber) == 3 AND !class_exists('vB_Template')){ // We need the template class require_once(DIR . '/dbtech/usertag/includes/class_template.php');}
if (is_object($this)){ // Loads the cache class USERTAG_CACHE::init($vbulletin, $this->datastore_entries);}else{ // Loads the cache class USERTAG_CACHE::init($vbulletin, $specialtemplates);}
// Initialise forumonUSERTAG::init($vbulletin);
$vbulletin->options['dbtech_usertag_emaildefault'] = isset($vbulletin->options['dbtech_usertag_emaildefault']) ? $vbulletin->options['dbtech_usertag_emaildefault'] : 1;
//if (USERTAG::$permissions['canview'])//{ $show['usertag'] = $vbulletin->options['dbtech_usertag_navbar']; $show['usertag_ispro'] = USERTAG::$isPro; if ($vbulletin->options['dbtech_usertag_integration'] & 1) { $show['usertag_ql'] = true; } if ($vbulletin->options['dbtech_usertag_integration'] & 2) { $show['usertag_cm'] = true; $show['usertag_cm2'] = !($vbulletin->options['dbtech_usertag_disabledfeatures'] & 8); } // Whether stats are enabled $show['usertag_enablestats'] = $vbulletin->options['dbtech_usertag_enablestats'];//}
// Show branding or not$show['dbtech_usertag_producttype'] = (USERTAG::$isPro ? ' (Pro)' : ' (Lite)');$show['usertag_branding'] = $vbulletin->options['dbtech_usertag_branding_free'] != '25599748-c04cf8c62f9e2c151de89a3f61dea8c2';
if ($show['usertag_branding'] AND !$show['_dbtech_branding_override']){ $brandingVariables = array( 'flavour' => 'User Alert System provided by ', 'productid' => 20, 'utm_source' => str_replace('www.', '', $_SERVER['HTTP_HOST']), 'utm_content' => (USERTAG::$isPro ? 'Pro' : 'Lite'), 'referrerid' => $vbulletin->options['dbtech_usertag_referral'], 'title' => 'Advanced User Tagging', 'displayversion' => $vbulletin->options['dbtech_usertag_displayversion'], 'version' => USERTAG::$version, 'producttype' => $show['dbtech_usertag_producttype'], 'showhivel' => (!USERTAG::$isPro AND !$vbulletin->options['dbtech_usertag_nohivel']) );}
Nguồn: tuoitreit.vn