The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
This is a small part of the .xml file that came with the iCash product.
Code:
$handled = true; $userinfo['action'] = 'Donating.'; $userinfo['where'] = '<a href="' . $vbulletin->options['icash_filename'] . '?' . $vbulletin->session->vars['sessionurl_q'] . '">Donate</a>'; }]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>ICash Template edits</title> <hookname>parse_templates</hookname> <phpcode><![CDATA[$moneyfield = $vbulletin->options['icashf']; if ($vbulletin->options['icash_nbedit'] == 1){ eval('$template_hook[navbar_buttons_left] .= "' . fetch_template('ICash_Navbar_edit') . '";'); }]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>ICash Postbit Edit</title> <hookname>postbit_display_complete</hookname> <phpcode><![CDATA[require_once(DIR . '/includes/functions_icash.php'); $money = icash_truncate($post[$this->registry->options['icashf']], $this->registry->options['icash_deci']); if ($this->registry->options['icash_pbedit'] == 1){ $template_hook["postbit_userinfo_right_after_posts"] .= $this->registry->options[icashn] . ': ' . $money . ' <br> <a href=' . $this->registry->options['icash_filename'] . '?' . $session[sessionurl] . 'do=donate&to=' . $post[username] . '></a>'; }]]></phpcode> </plugin> <plugin active="1" executionorder="1"> <title>ICash Post Deletion</title> <hookname>postdata_delete</hookname> <phpcode><![CDATA[$postinfo = fetch_postinfo($postid); $threadinfo = fetch_threadinfo($postinfo['threadid']); $userinfo = fetch_userinfo($postinfo['userid']); if ($this->registry->options['points'] == 1){ if ($this->registry->options['pnwd'] == 1){ $this->dbobject->query_write(" UPDATE " . TABLE_PREFIX . "user AS user SET user." . $this->registry->options['icashf'] . " = user." . $this->registry->options['icashf'] . " - ( SELECT SUM(post.icash) FROM " . TABLE_PREFIX . "post AS post WHERE post.postid = " . $postid . " AND post.userid = user.userid ) WHERE user.userid = " . $userinfo['userid'] ); } Anyone know how, in the postbit, so it doesn't display your iCash points? I want that removed... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|