Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 06-01-2008, 10:01 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure you have assigned your options to the correct product.
Reply With Quote
  #3  
Old 06-01-2008, 12:55 PM
toonysnn toonysnn is offline
 
Join Date: Sep 2006
Location: Texas
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #4  
Old 06-02-2008, 09:34 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-11-2008, 04:59 AM
furrykef furrykef is offline
 
Join Date: May 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:17 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.03507 seconds
  • Memory Usage 2,234KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete