Okay, some people do remember how I got a whole bunch of crap trying to export EzIRC when I first released it. Now my new product, EzCredits, is giving me that same problem. Can someone please explain
why it's doing this?
Am I supposed to go into the vBulletin Options, export it and then put it in <options></options> (properly of course)?
HTML Code:
<!-- DO NOT STEAL THIS - It took me a few hours to get this thing working properly -->
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="ttacredits" active="1">
<title>EzCredits</title>
<description>Points/Store script</description>
<version>1.0.0</version>
<url />
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
<code version="1.0.0">
<installcode><![CDATA[if(is_newer_version("3.7.0", $vbulletin->options['templateversion']) == true) die('Cannot continue. You\'re using a older version of vBulletin.');
$db->query_write("ALTER TABLE `".TABLE_PREFIX."user` ADD `ezcredits` INT( 11 ) NOT NULL DEFAULT '100';");]]></installcode>
<uninstallcode><![CDATA[$db->query_write("ALTER TABLE ".TABLE_PREFIX."user DROP `ezcredits`;");]]></uninstallcode>
</code>
</codes>
<templates>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>Navbar Credits</title>
<hookname>global_start</hookname>
<phpcode><![CDATA[global $vbulletin;
if($vbulletin->options['ezc_navbar'] == 1 && $vbulletin->options['ezc_onoff'] == 1) {
$ezcredits_title = $vbulletin->options['ezcredits_name'];
$ezcui = number_format($vbulletin->userinfo[ezcredits]);
$ezc_navbit = <<<EOF
<div class="smallfont"><b>$ezcredits_title</b>: $ezcui</div>
EOF;
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>Add Points on Completion of Reply</title>
<hookname>newreply_post_start</hookname>
<phpcode><![CDATA[global $vbulletin;
if($vbulletin->options['ezc_onoff'] == 1) {
$ezc_aaa = $vbulletin->db->query_read("SELECT `ezcredits` FROM `".TABLE_PREFIX."user` WHERE userid = ".$vbulletin->userinfo[userid]);
$ezc_bbb = $vbulletin->db->fetch_array($ezc_aaa);
$ezc_rate = $vbulletin->options['ezcredits_vpr'];
$credit = $ezc_bbb['ezcredits'] + $ezc_rate;
$ezc_ccc = $vbulletin->db->query_write("UPDATE `".TABLE_PREFIX."user` SET ezcredits=\"". $credit . "\" WHERE userid=\"".$vbulletin->userinfo[userid]."\"");
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>EzCredits Add Credits on Thread Completion</title>
<hookname>newthread_post_start</hookname>
<phpcode><![CDATA[global $vbulletin;
if($vbulletin->options['ezc_onoff'] == 1) {
$ezc_aaa = $vbulletin->db->query_read("SELECT `ezcredits` FROM `".TABLE_PREFIX."user` WHERE userid = ".$vbulletin->userinfo[userid]);
$ezc_bbb = $vbulletin->db->fetch_array($ezc_aaa);
$ezc_rate = $vbulletin->options['ezcredits_vpt'];
$credit = $ezc_bbb['ezcredits'] + $ezc_rate;
$ezc_ccc = $vbulletin->db->query_write("UPDATE `".TABLE_PREFIX."user` SET ezcredits=\"". $credit . "\" WHERE userid=\"".$vbulletin->userinfo[userid]."\"");
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="1">
<title>Postbit Display</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[global $vbulletin;
if($vbulletin->options['ezc_postbit'] == 1 && $vbulletin->options['ezc_onoff'] == 1) {
$ezc_credits = number_format($post[ezcredits]);
$ezcredits_title = $vbulletin->options[ezcredits_name];
$template_hook[postbit_userinfo_right] .= <<<EOF
<div>$ezcredits_title: $ezc_credits
EOF;
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_ezc_navbar_desc" date="1212282378" username="Guru" version="1.0.0"><![CDATA[Shows users how many credits they have.]]></phrase>
<phrase name="setting_ezc_navbar_title" date="1212282378" username="Guru" version="1.0.0"><![CDATA[Enable navbar "Credits"]]></phrase>
<phrase name="setting_ezc_onoff_desc" date="1212278780" username="Guru" version="1.0.0"><![CDATA[Turns EzCredits on/off]]></phrase>
<phrase name="setting_ezc_onoff_title" date="1212278780" username="Guru" version="1.0.0"><![CDATA[Enable/Disable EzCredits]]></phrase>
<phrase name="setting_ezc_postbit_desc" date="1212282384" username="Guru" version="1.0.0"><![CDATA[Show the postbit/postbit_legacy "Credits" for every user?]]></phrase>
<phrase name="setting_ezc_postbit_title" date="1212282384" username="Guru" version="1.0.0"><![CDATA[Enable postbit(_legacy) "Credits"]]></phrase>
<phrase name="setting_ezcredits_name_desc" date="1212276334" username="Guru" version="1.0.0"><![CDATA[What do you want the display to say? (eg: EzCredits, Bucks, Dollars)]]></phrase>
<phrase name="setting_ezcredits_name_title" date="1212276334" username="Guru" version="1.0.0"><![CDATA[EzCredits Name]]></phrase>
<phrase name="setting_ezcredits_startswith_desc" date="1212282367" username="Guru" version="1.0.0"><![CDATA[How many points do you want a user to start with?]]></phrase>
<phrase name="setting_ezcredits_startswith_title" date="1212282367" username="Guru" version="1.0.0"><![CDATA[Starts With X Points]]></phrase>
<phrase name="setting_ezcredits_vpr_desc" date="1212282351" username="Guru" version="1.0.0"><![CDATA[How many points do you want to give per reply?]]></phrase>
<phrase name="setting_ezcredits_vpr_title" date="1212282351" username="Guru" version="1.0.0"><![CDATA[Value Per Reply]]></phrase>
<phrase name="setting_ezcredits_vpt_desc" date="1212282359" username="Guru" version="1.0.0"><![CDATA[How many points do you want to give per thread?]]></phrase>
<phrase name="setting_ezcredits_vpt_title" date="1212282359" username="Guru" version="1.0.0"><![CDATA[Value Per Thread]]></phrase>
<phrase name="settinggroup_ezcredits" date="1212282535" username="Guru" version="1.0.0"><![CDATA[EzCredits ]]></phrase>
</phrasetype>
</phrases>
<options>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>