View Single Post
  #1  
Old 06-01-2008, 12:13 AM
toonysnn toonysnn is offline
 
Join Date: Sep 2006
Location: Texas
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Exporting Product giving me crap again

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>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01129 seconds
  • Memory Usage 1,828KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete