function showItem()
 {
     global $vbulletin, $vbphrase, $itembit_right_column;
     $showvalues = false;
     $this->getExtraInfo();
     if ($this->data['status'] == KBANK_ITEM_ENABLED) {
         if ($this->itemtypedata['options']['postbg']) {
             if ($this->data['options']['postbg']) {
                 $postbg_url = $this->data['options']['postbg'];
                 $postbgs = explode("\r\n", $this->itemtypedata['options']['postbg_list']);
                 $postbg_name = '';
                 foreach ($postbgs as $postbg) {
                     $tmp = explode(':', $postbg);
                     if ($tmp[0] == $postbg_url and isset($tmp[1])) {
                         $postbg_name = $tmp[1];
                     }
                 }
                 if ($postbg_name == '') {
                     $postbg_name = basename($postbg_url);
                 }
                 $postbg_position = $this->itemtype->options['postbg_positions'][$this->data['options']['postbg_position']];
                 $itembit_right_column .= construct_phrase($vbphrase['kbank_itemshow_customize_postdisplay_postbg'], $postbg_url, $postbg_name, $postbg_position);
             }
         }
     }
     return parent::showItem();
 }
 function showItem()
 {
     global $vbulletin, $vbphrase, $itembit_right_column;
     $showvalues = false;
     $this->getExtraInfo();
     if (!$this->bypassEnableForm() and $this->itemtypedata['options']['edit_time']) {
         if (!$this->canEdit()) {
             $itembit_right_column .= construct_phrase($vbphrase['kbank_itemshow_customize_userinfo_cantedit'], vb_number_format($this->data['options']['edit_time']));
             $showvalues = true;
         } else {
             $itembit_right_column .= construct_phrase($vbphrase['kbank_itemshow_customize_userinfo_canedit'], vb_number_format($this->data['options']['edit_time']), vb_number_format($this->itemtypedata['options']['edit_time']));
         }
     }
     if ($this->data['status'] == KBANK_ITEM_ENABLED or $showvalues) {
         if ($this->data['userid'] == $vbulletin->userinfo['userid']) {
             $userinfo =& $vbulletin->userinfo;
         } else {
             if (!$vbulletin->userinfo['kbank_granted'][$this->data['userid']]['fetched']) {
                 $vbulletin->userinfo['kbank_granted'][$this->data['userid']] = fetch_userinfo($this->data['userid']);
                 $vbulletin->userinfo['kbank_granted'][$this->data['userid']]['fetched'] = true;
             }
             $userinfo =& $vbulletin->userinfo['kbank_granted'][$this->data['userid']];
         }
         $userinfo['musername'] = null;
         $this->work($userinfo);
         if ($this->data['options']['username'] or $this->data['options']['username_color'] or $this->data['options']['username_strong']) {
             $itembit_right_column .= construct_phrase($vbphrase['kbank_itemshow_customize_userinfo_username'], $userinfo['musername']);
         }
         if ($this->data['options']['usertitle'] or $this->data['options']['usertitle_color']) {
             $itembit_right_column .= construct_phrase($vbphrase['kbank_itemshow_customize_userinfo_usertitle'], $userinfo['usertitle']);
         }
     }
     return parent::showItem();
 }
Example #3
0
 function showItem()
 {
     global $vbulletin, $vbphrase, $itembit_right_column;
     $this->getExtraInfo();
     if ($this->data['status'] == KBANK_ITEM_ENABLED) {
         $itembit_right_column .= construct_phrase($vbphrase['kbank_announce_show_link'], $this->data['options']['url'], $vbulletin->kbankBBCodeParser->parse($this->data['options']['text'], 'nonforum'));
     }
     return parent::showItem();
 }
Example #4
0
 function showItem()
 {
     global $vbulletin, $vbphrase, $itembit_right_column;
     $this->getExtraInfo();
     return parent::showItem();
 }