vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Exporting Product giving me crap again (https://vborg.vbsupport.ru/showthread.php?t=181161)

toonysnn 06-01-2008 12:13 AM

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>


Dismounted 06-01-2008 10:01 AM

Make sure you have assigned your options to the correct product.

toonysnn 06-01-2008 12:55 PM

I've double checked the settings primary group and it's still not exporting.
I've also tried adding a test setting group and it didn't export either.

Are there any settings that need to be specifically set? (other than product- as it's set to EzCredits)

Marco van Herwaarden 06-02-2008 09:34 AM

There should never be a need to manually edit the xml product files. All should be exported.

If you have set the settings to the correct product, then they should be in the product file.

furrykef 06-11-2008 04:59 AM

The problem is probably that "vBulletin default" is not checked on the options and their option groups.


All times are GMT. The time now is 11:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01083 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete