Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

[Public Release] MyPlaza Turbo 0.2.2
#41

Thanks for reporting the version problems.
About the other, I think im gonn cry :'C
@everyone, RTFM (READ THE ******* MANUAL), even the release thread says which modules are ported and that Update manager is not working!
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#42

I have a big problem, i tried to translate the files in inc/plugin/myplaza folder but now when i go Myplaza appar me this error:
[spoiler=Error]
Quote:settings['bblanguage']) { default: $lang->bank = 'Banca'; $lang->amount = 'Ammontare'; $lang->action = 'Azione'; $lang->deposit = 'Deposita'; $lang->withdraw = 'Preleva'; $lang->go = 'Vai!'; $lang->info = 'Info'; $lang->money_on_hand = 'Monete in mano:'; $lang->money_in_bank = 'Monete in banca:'; $lang->bank_interest_rate = 'Tasso di Interesse della banca:'; $lang->fee = '(fee: %1$s)'; $lang->invalid_amount = 'Ammontare di monete invalido.'; $lang->not_enough_money = 'Non hai abastanza soldi per compiere questa azione!'; $lang->deposit_success = 'Hai Depositato correttamente %1$s'; $lang->deposit_log = 'Depositati %1$s'; $lang->withdraw_success = 'Hai prelevato correttamente %1$s'; $lang->withdraw_log = 'Prelevati %1$s'; $lang->please_wait = 'Aspetta per favore...'; $lang->help_myplaza_bank_name = 'Banca'; $lang->help_myplaza_bank_desc = 'Guadagna interessi dai i tuoi soldi.'; $lang->help_myplaza_bank_document = 'The Bank allows you to store your money in a safe place to allow you to gain interest over time. Note that your administrator may have specified fees for withdrawing/depositing money, so don\'t use it too often! You can access the bank from this link.'; $lang->bank_wol = 'Visualizza banca.'; } } function bank_lang_admin() { global $mybb, $lang; switch($mybb->settings['bblanguage']) { default: $lang->bank = 'Banca'; $lang->bank_name = 'Banca'; $lang->bank_description = 'Allow users to store their money in a bank to earn interest. This module was ported and updated by Pirata Nervo.'; $lang->item_bank_deposit_name = 'Depositi banca'; $lang->item_bank_deposit_desc = 'deposita i tuoi soldi dentro la banca per guadagnare interessi.'; $lang->item_bank_withdraw_name = 'Bank Withdraw'; $lang->item_bank_withdraw_desc = 'Preleva i tuoi soldi dalla banca, così potrai usarli.'; $lang->setting_bank_interest_rate = 'Rata dell'interessa in banca'; $lang->setting_bank_interest_rate_desc = 'The amount (% of money in bank) of interest given out.'; $lang->setting_bank_interest_period = 'Bank Interest Period'; $lang->setting_bank_interest_period_desc = 'How often (in hours) interest is given out.'; $lang->setting_bank_richest_user = 'Include Bank Money in Richest Users'; $lang->setting_bank_richest_user_desc = 'If yes, the plaza\'s Richest Users list will also consider money in bank for each user. Note that this may be a fairly slow process, especially for larger boards.'; $lang->money_in_bank = 'Soldi in banca'; } } function bank_info() { //global $mybb; return array( "website" => "http://myplaza.zingaburga.com/", "author" => "ZiNgA BuRgA", "authorsite" => "http://zingaburga.com/", "version" => "1.0.1", "compatibility" => array(0.2), //"update_check_url" => 'http://zingaburga.com/updates/updatecheck.php?for=myplaza_module_bank&ver=1.0.6&myplazaver='.urlencode(MYPLAZA_VERSION).'&lang='.urlencode($mybb->settings['bblanguage']), //"update_download_url" => 'http://zingaburga.com/updates/get_update.php?for=myplaza_module_bank&ver=1.0.6&myplazaver='.urlencode(MYPLAZA_VERSION).'&lang='.urlencode($mybb->settings['bblanguage']) ); } define('BANK_ADD_TEMPLATE_PLAZA', '[{$lang->bank}] {$lang->amount}:
{$lang->deposit} {$depositfee}
{$lang->withdraw} {$withdrawfee}
{$lang->money_in_bank} {$vars[\'bankmoney\']}
{$lang->bank_interest_rate} {$mybb->settings[\'bank_interest_rate\']}%
'); define('BANK_ADD_TEMPLATE_PLAZAHEADER', '
{$lang->bank}'); function bank_modify_plaza_templates() { find_replace_myplaza_template('plaza', '
{$lang->amount_money_you_have}
', BANK_ADD_TEMPLATE_PLAZA.'
{$lang->amount_money_you_have}
', 'str_replace'); find_replace_myplaza_template('plaza_header', '
', BANK_ADD_TEMPLATE_PLAZAHEADER.'
', 'str_replace'); } function bank_restore_plaza_templates() { find_replace_myplaza_template('plaza', BANK_ADD_TEMPLATE_PLAZA, '', 'str_replace'); find_replace_myplaza_template('plaza_header', BANK_ADD_TEMPLATE_PLAZAHEADER, '', 'str_replace'); } function bank_remove_templates() { global $db; $templates = "'plaza_bank'"; $db->delete_query(MY_TABLE_PREFIX.'templates', 'title IN ('.$templates.') AND sid=\'-1\''); } function bank_add_templates() { $new_templates = array(); $new_templates['plaza_bank'] = ' {$plaza_header}
{$lang->bank}
{$lang->amount}:
{$lang->action} {$lang->deposit} {$depositfee}
{$lang->withdraw} {$withdrawfee}
{$lang->info} {$lang->money_on_hand} {$mymoney}
{$lang->money_in_bank} {$bankmoney}
{$lang->bank_interest_rate} {$mybb->settings[\'bank_interest_rate\']}%


{$plaza_footer} '; add_templates($new_templates); } function bank_reconstruct_templates() { bank_remove_templates(); bank_add_templates(); bank_restore_plaza_templates(); bank_modify_plaza_templates(); } function bank_activate() { if(!defined("IN_MYPLAZA_ADMIN")) cperror('This is not a normal MyBB plugin! Please upload this file to your /inc/plugins/myplaza directory.', 'index.php'); global $db, $lang; add_settings(array( array( "name" => 'bank_interest_rate', "optionscode" => 'text', "value" => '3.00', ), array( "name" => 'bank_interest_period', "optionscode" => 'text', "value" => '24', ), array( "name" => 'bank_richest_user', "optionscode" => 'yesno', "value" => MY_NO, ) )); myplaza_add_item(array( "idname" => 'bank_deposit', "visible" => MY_NO, "cost" => 0, "stockoffset" => 0, "showonstats" => MY_NO, "infstock" => MY_YES, "buylimitamount" => 0, "buylimittime" => 0, "restockamount" => 0, "restocktime" => 0, "htmlextra" => '{$lang->amount}:
{$lang->money_in_bank} {$vars[\'bankmoney\']}
{$lang->bank_interest_rate} {$mybb->settings[\'bank_interest_rate\']}%', )); myplaza_add_item(array( "idname" => 'bank_withdraw', "visible" => MY_NO, "cost" => 10, "stockoffset" => 0, "showonstats" => MY_NO, "infstock" => MY_YES, "buylimitamount" => 0, "buylimittime" => 0, "restockamount" => 0, "restocktime" => 0, "htmlextra" => '{$lang->amount}:
{$lang->money_in_bank} {$vars[\'bankmoney\']}
{$lang->bank_interest_rate} {$mybb->settings[\'bank_interest_rate\']}%', )); db_add_columns('users', array( 'bankmoneyoffset' => array('type' => 'decimal', 'size' => '20,10', 'not_null' => true, 'default' => 0), 'bankbasetime' => array('type' => 'bigint', 'size' => 30, 'not_null' => true, 'default' => 0) )); bank_add_templates(); myplaza_langload('bank', true); add_helpdoc(array('disporder' => 15)); bank_modify_plaza_templates(); plugins_add_passive_hook('xmlhttp', 'xmlhttp_bank'); plugins_add_passive_hook('plaza_start', 'bank_loadlang'); plugins_add_passive_hook('myplaza_wol', 'bank_wol'); plugins_add_passive_hook('plaza_stats_start', 'bank_richestuser'); plugins_add_passive_hook('myplaza_admin_user_users_add_share', 'bank_adduser', 20, true); plugins_add_passive_hook('myplaza_admin_user_users_edit_share_profile', 'bank_edituser', 20, true); plugins_add_passive_hook('admin_user_users_add_commit', 'bank_adduser_new_user', 20, true); plugins_add_passive_hook('admin_user_users_edit_commit', 'bank_edituser_updated_user', 20, true); plugins_add_passive_hook('myplaza_admin_myplaza_reconstruct_templates', 'bank_modify_plaza_templates', 20, true); plugins_add_passive_hook('myplaza_admin_backup_process', 'bank_backup', 10, true); my_rebuild_settings(); } function bank_deactivate() { global $db; bank_remove_templates(); myplaza_remove_module_items(); $db->delete_query(MY_TABLE_PREFIX.'settings', 'name IN (\'bank_interest_rate\', \'bank_interest_period\', \'bank_richest_user\')'); my_rebuild_settings(); db_remove_columns('users', array('bankmoneyoffset', 'bankbasetime')); bank_restore_plaza_templates(); remove_helpdoc(); plugins_remove_passive_hooks(); } function bank_run($item) { global $mybb, $lang, $buyRtnMsg, $buyLogMsg, $db; $amount = floatval($mybb->input['amount']); if($amount <= 0) { $buyRtnMsg = $lang->invalid_amount; return false; } $bankmoney = bank_calcMoney($mybb->user['bankmoneyoffset'], 1 + (floatval($mybb->settings['bank_interest_rate']) / 100), intval($mybb->settings['bank_interest_period'])*3600, $mybb->user['bankbasetime']); switch($item['idname']) { case 'bank_deposit': if($amount > $mybb->user[MYPLAZA_MONEY_COLUMN]) { $buyRtnMsg = $lang->not_enough_money; return false; } user_change_money($mybb->user, -$amount); bank_update_values($bankmoney + $amount, $mybb->user, true); $buyRtnMsg = sprintf($lang->deposit_success, my_format_money($amount)); $buyLogMsg = sprintf($lang->deposit_log, my_format_money($amount)); return true; case 'bank_withdraw': if($amount > $bankmoney) { $buyRtnMsg = $lang->not_enough_money; return false; } user_change_money($mybb->user, $amount); bank_update_values($bankmoney - $amount, $mybb->user, true); $buyRtnMsg = sprintf($lang->withdraw_success, my_format_money($amount)); $buyLogMsg = sprintf($lang->withdraw_log, my_format_money($amount)); return true; default: return false; } } function bank_admin($process) { if($process) { myplaza_process_settings(array('bank_interest_rate', 'bank_interest_period', 'bank_richest_user')); return 1; } else { global $lang; myplaza_langload('bank'); if(substr(MYBB_VERCODE, 0, 2) == '12') { cpheader_myplaza_module(); starttable(); tableheader($lang->bank, "", 2); myplaza_generate_settings_code(array('bank_interest_rate', 'bank_interest_period', 'bank_richest_user')); endtable(); cpfooter_myplaza_module(); } elseif(substr(MYBB_VERCODE, 0, 2) == '14') { global $lang, $plugins, $myplaza_in_module, $page, $mybb; $plugins->run_hooks('myplaza_admin_module_cpheader', $myplaza_in_module); module_tabs(); $form = new Form("index.php?module=myplaza/myplaza&action=do_module", "post", "do_module"); $hiddencode = ""; $hiddencode .= makehiddencode("moduleaction", 'do_options'); $hiddencode .= makehiddencode("modname", $mybb->input['modname']); // Pirata Nervo: hidden code name ("modname") changed since 0.53 as I think it was being used by the Admin CP and I could not get this working with the name being "module" $hiddencode .= makehiddencode('dir', $mybb->input['dir']); /*$hiddencode .= makehiddencode('action', 'index.php?module=myplaza/myplaza&action=do_module');*/ $hiddencode .= makehiddencode("updated", 'yes'); echo $hiddencode; /* Table #1 */ $table = new Table; $setting_array = array(); $setting_array = new_myplaza_generate_settings_code(array('bank_interest_rate', 'bank_interest_period', 'bank_richest_user')); $array_elem = count(array('bank_interest_rate', 'bank_interest_period', 'bank_richest_user'))-1; $table->construct_header("", array('width' => '60%')); $table->construct_header("", array('width' => '40%')); for($i=0;$i<=$array_elem;$i++) { $table->construct_cell("{$setting_array[$i]['title']}
{$setting_array[$i]['description']}", array('wdith' => '60%')); $table->construct_cell($setting_array[$i]['code'], array('wdith' => '40%')); $table->construct_row(); } $table->output($lang->bank); $buttons = ""; $buttons[] = $form->generate_submit_button($lang->submit_changes); $buttons[] = $form->generate_reset_button($lang->reset_button); $form->output_submit_wrapper($buttons); $form->end(); $page->output_footer(); } } } function bank_page() { global $mybb; if(!$mybb->user['uid']) error_no_permission(); if($mybb->input['bankaction'] == 'deposit' || $mybb->input['bankaction'] == 'withdraw') myplaza_standard_buy('bank', "includefile = 'bank' AND idname='bank_{$mybb->input['bankaction']}'"); else { global $db, $templates, $buyRtnMsg, $depositfee, $withdrawfee, $lang, $mymoney, $bankmoney, $title; $mymoney = my_format_money($mybb->user[MYPLAZA_MONEY_COLUMN]); $bankmoney = my_format_money(bank_update_values(false, $mybb->user)); //$bankmoney = my_format_money(bank_calcMoney($mybb->user['bankmoneyoffset'], $mybb->settings['bank_interest_rate'], $mybb->settings['bank_interest_period'], $mybb->user['bankbasetime'])); // search for bank items $query = $db->simple_select(MY_TABLE_PREFIX."plaza_items", "idname,cost", "includefile = 'bank'"); while($item = $db->fetch_array($query)) { $item['cost'] = calcCost($item['cost']); if($item['cost'] != 0) { if($item['idname'] == 'bank_deposit') $depositfee = sprintf($lang->fee, my_format_money(calcCost($item['cost']))); if($item['idname'] == 'bank_withdraw') $withdrawfee = sprintf($lang->fee, my_format_money(calcCost($item['cost']))); } } $title = $lang->bank; return $templates->get('plaza_bank'); } } // because of how the bank works, it's best to recalculate the internal representation // of money every now and then function bank_update_values($cur_amount, &$user, $force_update = false) { global $mybb, $db;//, $bank_updates_shutdown; if(!isset($bank_updates_shutdown)) $bank_updates_shutdown = array(); $period = intval($mybb->settings['bank_interest_period'])*3600; // prevent silly admins from producing divide by zero errors if($period < 1) $period = 24*3600; if($cur_amount === false) $cur_amount = bank_calcMoney($user['bankmoneyoffset'], 1 + (floatval($mybb->settings['bank_interest_rate']) / 100), $period, $user['bankbasetime']); if($force_update) { //$user['bankbasetime'] = time(); //$user['bankmoneyoffset'] = $cur_amount; $user['bankbasetime'] = REQUEST_TIME - (REQUEST_TIME % $period); $user['bankmoneyoffset'] = bank_calcMoneyOffset($cur_amount, 1 + (floatval($mybb->settings['bank_interest_rate']) / 100), $period, $user['bankbasetime']); } elseif((REQUEST_TIME-$period > $user['bankbasetime'])) { $user['bankbasetime'] = REQUEST_TIME - (REQUEST_TIME % $period); $user['bankmoneyoffset'] = $cur_amount; } else return $cur_amount; /*$bank_updates_shutdown[$user['uid']] = array( 'bankmoneyoffset' => $user['bankmoneyoffset'], 'bankbasetime' => $user['bankbasetime'] ); add_shutdown('bank_update_values_shutdown');*/ db_shutdown_update_rows('users', array( $user['uid'] => array( 'bankmoneyoffset' => $user['bankmoneyoffset'], 'bankbasetime' => $user['bankbasetime'] )), 'uid'); return $cur_amount; } /* function bank_update_values_shutdown() { global $bank_updates_shutdown, $db; if(!isset($bank_updates_shutdown) || !is_array($bank_updates_shutdown)) return; db_update_rows('users', $bank_updates_shutdown, 'uid'); } */ function bank_calcMoney($offset, $rate, $period, $baseTime) { // initial value if(!$baseTime) return 0; global $mybb; if($rate && $period && $baseTime) { /* This is a bug fix (never fixed by ZiNgA BuRgA. round() uses '.' as decimal point but the forum might be using other symbols so we replace '.' with 'D' and ',' with 'T' (if the user has '.' for decimal and ',' for thousand it will not work if we don't rename them to D and T(could be Z and A or whatever) and then we replace them with the forum's Decimal Point and Thousands Numeric Separator */ $number = round(pow($rate, floor((REQUEST_TIME-intval($baseTime)) / $period)) * floatval($offset), $mybb->settings['myplaza_money_decimals']); $replace_comma = str_replace(",", "T", $number); $replace_decimal = str_replace(".", "D", $replace_comma); /* replace 'T' and 'D' according to the forum's config */ $replace_comma = str_replace("T", $mybb->settings['thousandssep'], $replace_decimal); $replace_decimal = str_replace("D", $mybb->settings['decpoint'], $replace_comma); return $replace_decimal; } else return $offset; } function bank_calcMoneyOffset($money, $rate, $period, $baseTime) { if(!$baseTime) return 0; global $mybb; if($rate && $period && $baseTime) { /* This is a bug fix (never fixed by ZiNgA BuRgA. round() uses '.' as decimal point but the forum might be using other symbols so we replace '.' with 'D' and ',' with 'T' (if the user has '.' for decimal and ',' for thousand it will not work if we don't rename them to D and T(could be Z and A or whatever) and then we replace them with the forum's Decimal Point and Thousands Numeric Separator */ $number = round(floatval($money) / (pow($rate, floor((REQUEST_TIME-intval($baseTime)) / $period))), $mybb->settings['myplaza_money_decimals']); $replace_comma = str_replace(",", "T", $number); $replace_decimal = str_replace(".", "D", $replace_comma); /* replace 'T' and 'D' according to the forum's config */ $replace_comma = str_replace("T", $mybb->settings['thousandssep'], $replace_decimal); $replace_decimal = str_replace("D", $mybb->settings['decpoint'], $replace_comma); return $replace_decimal; } else return $offset; } function bank_loadlang() { myplaza_langload('bank'); // since we have this hook, load additional stuff for the AJAX bank popout global $mybb; if(!$mybb->user['uid']) return; switch($mybb->input['action']) { case 'stats': case 'history': case 'page': break; default: bank_htmlextra(); global $db, $withdrawfee, $depositfee, $lang; // search for bank items $query = $db->simple_select(MY_TABLE_PREFIX."plaza_items", "idname,cost", "includefile = 'bank'"); while($item = $db->fetch_array($query)) { $item['cost'] = calcCost($item['cost']); if($item['cost'] != 0) { if($item['idname'] == 'bank_deposit') $depositfee = sprintf($lang->fee, my_format_money(calcCost($item['cost']))); if($item['idname'] == 'bank_withdraw') $withdrawfee = sprintf($lang->fee, my_format_money(calcCost($item['cost']))); } } } } function bank_wol(&$text) { global $user, $lang; if(!isset($user['params']['action']) || $user['params']['action'] != 'page' || !isset($user['params']['p']) || $user['params']['p'] != 'bank') return; myplaza_langload('bank'); $text = $lang->bank_wol; } function bank_htmlextra() { global $vars, $mybb; if(!isset($vars['bankmoney']) || !$vars['bankmoney']) $vars['bankmoney'] = my_format_money(bank_update_values(false, $mybb->user)); } function xmlhttp_bank() { global $mybb; if($mybb->input['bankaction'] != 'deposit' && $mybb->input['bankaction'] != 'withdraw') return; myplaza_xmlhttp_buy('do_bank', "includefile = 'bank' AND idname='bank_{$mybb->input['bankaction']}'", 'xmlhttp_bank_buy'); } function xmlhttp_bank_buy() { global $lang, $mybb, $return_messages; $return_messages[] = $lang->sprintf($lang->amount_money_you_have, my_format_money($mybb->user[MYPLAZA_MONEY_COLUMN])); $return_messages[] = my_format_money(bank_update_values(false, $mybb->user)); } function bank_edituser_updated_user() { global $mybb, $user, $db; $user = $db->fetch_array($db->simple_select(MY_TABLE_PREFIX.'users', '*', "uid = '{$user['uid']}'", array('limit' => 1)), '*'); /* This is a bug fix (never fixed by ZiNgA BuRgA. round() uses '.' as decimal point but the forum might be using other symbols so we replace '.' with 'D' and ',' with 'T' (if the user has '.' for decimal and ',' for thousand it will not work if we don't rename them to D and T(could be Z and A or whatever) and then we replace them with the forum's Decimal Point and Thousands Numeric Separator */ $number = round(floatval($mybb->input['bankmoney']), $mybb->settings['myplaza_money_decimals']); $replace_comma = str_replace(",", "T", $number); $replace_decimal = str_replace(".", "D", $replace_comma); /* replace 'T' and 'D' according to the forum's config */ $replace_comma = str_replace("T", $mybb->settings['thousandssep'], $replace_decimal); $replace_decimal = str_replace("D", $mybb->settings['decpoint'], $replace_comma); //bank_update_values(round(floatval($mybb->input['bankmoney']), $mybb->settings['myplaza_money_decimals']), $user, true); bank_update_values($replace_decimal, $user, true); /*$db->update_query(MY_TABLE_PREFIX."users", array($where.'bankmoneyoffset' => floatval($mybb->input['bankmoney'])), "uid='{$user['uid']}'", 1); $money = $db->fetch_field($db->simple_select(MY_TABLE_PREFIX.'users', 'bankmoneyoffset', "uid = '{$user['uid']}'", array('limit' => 1)), 'bankmoneyoffset');*/ /*flash_message($money, 'success'); admin_redirect("index.php?module=user/users");*/ } // update money now that the other user details are updated function bank_adduser_new_user() { global $mybb, $user_info, $db; $user = $db->fetch_array($db->simple_select(MY_TABLE_PREFIX.'users', '*', "uid = '{$user_info['uid']}'", array('limit' => 1)), '*'); /* This is a bug fix (never fixed by ZiNgA BuRgA. round() uses '.' as decimal point but the forum might be using other symbols so we replace '.' with 'D' and ',' with 'T' (if the user has '.' for decimal and ',' for thousand it will not work if we don't rename them to D and T(could be Z and A or whatever) and then we replace them with the forum's Decimal Point and Thousands Numeric Separator */ $number = round(floatval($mybb->input['bankmoney']), $mybb->settings['myplaza_money_decimals']); $replace_comma = str_replace(",", "T", $number); $replace_decimal = str_replace(".", "D", $replace_comma); /* replace 'T' and 'D' according to the forum's config */ $replace_comma = str_replace("T", $mybb->settings['thousandssep'], $replace_decimal); $replace_decimal = str_replace("D", $mybb->settings['decpoint'], $replace_comma); //bank_update_values(round(floatval($mybb->input['bankmoney']), $mybb->settings['myplaza_money_decimals']), $user, true); bank_update_values($replace_decimal, $user, true); } function bank_adduser() { global $lang, $mybb, $form, $form_container; myplaza_langload('bank'); //$form_container = new FormContainer($lang->money_in_bank); $form_container->output_row($lang->money_in_bank, "", $form->generate_text_box('bankmoney', floatval($mybb->input['bankmoney']), array('id' => 'bankmoney')), 'bankmoney'); //$form_container->end(); } function bank_edituser() { global $lang, $user, $mybb, $form, $form_container; if(isset($user['bankmoneyoffset'])) { //$bankmoney = bank_calcMoney($user['bankmoneyoffset'], 1 + (floatval($mybb->settings['bank_interest_rate']) / 100), intval($mybb->settings['bank_interest_period'])*3600, $user['bankbasetime']); $bankmoney = bank_update_values(false, $user); } else $bankmoney = 0; /* This is a bug fix (never fixed by ZiNgA BuRgA. round() uses '.' as decimal point but the forum might be using other symbols so we replace '.' with 'D' and ',' with 'T' (if the user has '.' for decimal and ',' for thousand it will not work if we don't rename them to D and T(could be Z and A or whatever) and then we replace them with the forum's Decimal Point and Thousands Numeric Separator */ $number = round($bankmoney, $mybb->settings['myplaza_money_decimals']); $replace_comma = str_replace(",", "T", $number); $replace_decimal = str_replace(".", "D", $replace_comma); /* replace 'T' and 'D' according to the forum's config */ $replace_comma = str_replace("T", $mybb->settings['thousandssep'], $replace_decimal); $replace_decimal = str_replace("D", $mybb->settings['decpoint'], $replace_comma); $bankmoney = $replace_decimal; myplaza_langload('bank'); //$form_container = new FormContainer($lang->money_in_bank); $form_container->output_row($lang->money_in_bank, "", $form->generate_text_box('bankmoney', $bankmoney, array('id' => 'bankmoney')), 'bankmoney'); //$form_container->end(); } /*function bank_do_addedituser() { global $user, $mybb; if($mybb->input['bankmoney'] != '' && $mybb->input['action'] == 'do_edit') {*/ /* This is a bug fix (never fixed by ZiNgA BuRgA. round() uses '.' as decimal point but the forum might be using other symbols so we replace '.' with 'D' and ',' with 'T' (if the user has '.' for decimal and ',' for thousand it will not work if we don't rename them to D and T(could be Z and A or whatever) and then we replace them with the forum's Decimal Point and Thousands Numeric Separator */ /*$number = round(floatval($mybb->input['bankmoney']), $mybb->settings['myplaza_money_decimals']); $replace_comma = str_replace(",", "T", $number); $replace_decimal = str_replace(".", "D", $replace_comma);*/ /* replace 'T' and 'D' according to the forum's config */ /*$replace_comma = str_replace("T", $mybb->settings['thousandssep'], $replace_decimal); $replace_decimal = str_replace("D", $mybb->settings['decpoint'], $replace_comma);*/ //bank_update_values(round(floatval($mybb->input['bankmoney']), $mybb->settings['myplaza_money_decimals']), $user, true); /*bank_update_values($replace_decimal, $user, true); } elseif(isset($user['bankmoneyoffset'])) { $user['bankmoneyoffset'] = $mybb->input['bankmoney']; $user['bankbasetime'] = REQUEST_TIME; } }*/ function bank_backup() { global $extrafields; $extrafields['users'][] = 'bankmoneyoffset'; $extrafields['users'][] = 'bankbasetime'; } function bank_richestuser() { global $richest_users_fields, $mybb; if($mybb->settings['bank_richest_user'] != MY_YES) return; // find money column, and replace with money + bankvalue foreach($richest_users_fields as $k => $v) if($v == MYPLAZA_MONEY_COLUMN) { if(floatval($mybb->settings['bank_interest_rate']) && intval($mybb->settings['bank_interest_period'])) { $rate = 1+ floatval($mybb->settings['bank_interest_rate']) / 100; $period = intval($mybb->settings['bank_interest_period']) * 3600; $richest_users_fields[$k] = MYPLAZA_MONEY_COLUMN." + ROUND(POW($rate, FLOOR((".REQUEST_TIME."-bankbasetime) / $period)) * bankmoneyoffset, {$mybb->settings['myplaza_money_decimals']}) AS ".MYPLAZA_MONEY_COLUMN; } else $richest_users_fields[$k] = MYPLAZA_MONEY_COLUMN.' + bankmoneyoffset AS '.MYPLAZA_MONEY_COLUMN; } } ?> ℼ佄呃偙⁅瑨汭倠䉕䥌⁃ⴢ⼯㍗⽃䐯䑔堠呈䱍ㄠ〮吠慲獮瑩潩慮⽬䔯≎∠瑨灴⼺眯睷眮⸳牯⽧剔砯瑨汭⼱呄⽄桸浴ㅬ琭慲獮瑩潩慮⹬瑤≤㰾ⴡ‭瑳牡㩴瀠慬慺ⴠ㸭㰊ⴡ‭瑳牡㩴瀠慬慺桟慥敤⁲ⴭਾ格浴浸㩬慬杮∽湥•慬杮∽湥•浸湬㵳栢瑴㩰⼯睷⹷㍷漮杲ㄯ㤹⼹桸浴≬ਾ格慥㹤ऊ琼瑩敬䴾偹慬慺吠牵潢ⴠ倠慬慺⼼楴汴㹥ऊℼⴭ猠慴瑲›敨摡牥湩汣摵⁥ⴭਾ氼湩敲㵬愢瑬牥慮整•祴数∽灡汰捩瑡潩⽮獲⭳浸≬琠瑩敬∽慌整瑳吠牨慥獤⠠卒⁓⸲⤰•牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭祳摮捩瑡潩⹮桰≰⼠ਾ氼湩敲㵬愢瑬牥慮整•祴数∽灡汰捩瑡潩⽮瑡浯砫汭•楴汴㵥䰢瑡獥⁴桔敲摡⁳䄨潴⸱⤰•牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭祳摮捩瑡潩⹮桰㽰祴数愽潴ㅭ〮•㸯㰊敭慴栠瑴⵰煥極㵶䌢湯整瑮吭灹≥挠湯整瑮∽整瑸栯浴㭬挠慨獲瑥唽䙔㠭•㸯㰊敭慴栠瑴⵰煥極㵶䌢湯整瑮匭牣灩⵴祔数•潣瑮湥㵴琢硥⽴慪慶捳楲瑰•㸯㰊捳楲瑰琠灹㵥琢硥⽴慪慶捳楲瑰•牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯樯捳楲瑰⽳牰瑯瑯灹⹥獪瘿牥ㄽ〴∰㰾猯牣灩㹴㰊捳楲瑰琠灹㵥琢硥⽴慪慶捳楲瑰•牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯樯捳楲瑰⽳敧敮慲⹬獪瘿牥ㄽ〴∰㰾猯牣灩㹴㰊捳楲瑰琠灹㵥琢硥⽴慪慶捳楲瑰•牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯樯捳楲瑰⽳潰異彰敭畮樮㽳敶㵲㐱〰㸢⼼捳楲瑰ਾ氼湩祴数∽整瑸振獳•敲㵬猢祴敬桳敥≴栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯振獳瀮灨猿祴敬桳敥㵴∶⼠ਾ氼湩祴数∽整瑸振獳•敲㵬猢祴敬桳敥≴栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯振獳瀮灨猿祴敬桳敥㵴〱•㸯ਊ猼牣灩⁴祴数∽整瑸樯癡獡牣灩≴ਾℼⴭऊ慶⁲潣歯敩潄慭湩㴠∠眮睷洮批楢慴楬⹡潣≭਻瘉牡挠潯楫健瑡⁨‽⼢㬢ऊ慶⁲潣歯敩牐晥硩㴠∠㬢ऊ慶⁲敤敬整癥湥彴潣普物‽䄢敲礠畯猠牵⁥潹⁵慷瑮琠敤敬整琠楨⁳癥湥㽴㬢ऊ慶⁲敲潭敶瑡慴档损湯楦浲㴠∠牁⁥潹⁵畳敲礠畯眠湡⁴潴爠浥癯⁥桴⁥敳敬瑣摥愠瑴捡浨湥⁴牦浯琠楨⁳潰瑳∿਻瘉牡氠慯楤杮瑟硥⁴‽䰧慯楤杮‮戼⁲㸯汐慥敳圠楡⹴✮਻瘉牡猠癡湩彧档湡敧⁳‽匧癡湩⁧档湡敧⹳✮਻瘉牡甠敳硟汭瑨灴敲畱獥⁴‽ㄢ㬢ऊ慶⁲祭灟獯彴敫⁹‽戢㘲㐶ㄱ愱㕡攴㙢昸敢㕣挵扦扦挶晢≢਻瘉牡椠慭敧慰桴㴠∠浩条獥㬢⼊ ⴭਾ⼼捳楲瑰ਾऊउउउऊउउउ猼牣灩⁴祴数∽整瑸樯癡獡牣灩≴猠捲∽獪牣灩獴琯硨樮㽳敶㵲㐱〰㸢⼼捳楲瑰ਾउउउ㰉捳楲瑰氠湡畧条㵥樢癡獡牣灩≴琠灹㵥琢硥⽴慪慶捳楲瑰•牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯樯捳楲瑰⽳祭汰穡彡汧扯污樮≳㰾猯牣灩㹴㰊捳楲瑰氠湡畧条㵥樢癡獡牣灩≴琠灹㵥琢硥⽴慪慶捳楲瑰㸢慶⁲汰穡彡橡硡敟牲浟杳㴠∠⁁潣湮捥楴湯攠牲牯漠捣牵敲Ⅴ㬢⼼捳楲瑰ਾℼⴭ攠摮›敨摡牥湩汣摵⁥ⴭਾ㰉瑳汹⁥祴数∽整瑸振獳㸢ऊ⸉湩楶楳汢॥笉楤灳慬㩹渠湯㭥眠摩桴›瀰㭸栠楥桧㩴〠硰※楶楳楢楬祴›楨摤湥※੽उ摴椮整७उ灻摡楤杮氭晥㩴ㄠ瀰㭸素ऊ琉⹤瑩浥ल笉慰摤湩ⵧ楲桧㩴㔠硰※整瑸愭楬湧›楲桧㭴素ऊ甉⹬汰穡浡湥ॵ瑻硥⵴污杩㩮爠杩瑨※慰摤湩㩧㐠硰※楬瑳猭祴敬›潮敮※慭杲湩›㬰映湯⵴敷杩瑨›潢摬※੽उ汵瀮慬慺敭畮氠३摻獩汰祡›湩楬敮※慰摤湩ⵧ敬瑦›瀵㭸素ऊ甉⹬汰穡浡湥⁵浩筧慰摤湩ⵧ楲桧㩴㔠硰※敶瑲捩污愭楬湧›業摤敬※੽उ洮灹慬慺灟灯灵浟湥⁵灻摡楤杮›㔱硰※慢正牧畯摮›䘣䙆䙆㭆挠汯牯›〣〰〰㬰戠牯敤㩲ㄠ硰猠汯摩⌠〰〰〰※楷瑤㩨ㄠ〵硰※੽उ洮灹慬慺灟灯灵浟湥⁵湩異⹴畢瑴湯笠整瑸愭楬湧›散瑮牥紻ऊ椉杭瀮慬慺瑩浥笉敶瑲捩污愭楬湧›業摤敬※慭杲湩爭杩瑨›瀵㭸素ऊ愉椮整汭湩५笉楤灳慬㩹戠潬正※੽㰉猯祴敬ਾ㰉捳楲瑰氠湡畧条㵥樢癡獡牣灩≴琠灹㵥琢硥⽴慪慶捳楲瑰㸢ऊℼⴭऊ瘉牡瀠慬慺慟慪彸牥彲潦浲瑡整彤獭⁧‽尢♮瑬搻癩猠祴敬尽㉸戲捡杫潲湵㩤⌠䉆䕅ㅆ甠汲栨瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳祭汰穡⽡牥潲⹲湰⥧挠湥整⁲潮爭灥慥㭴戠捡杫潲湵ⵤ潰楳楴湯›瀷⁸瀷㭸琠硥⵴污杩㩮氠晥㭴洠牡楧㩮㔠硰ㄠ瀵⁸瀵⁸㔱硰※慰摤湩㩧ㄠ瀳⁸〲硰ㄠ瀳⁸㔴硰※潢摲牥琭灯›瀲⁸潳楬⁤䘣䅅䉂㬹戠牯敤⵲潢瑴浯›瀲⁸潳楬⁤䘣䅅䉂㬹氠湩ⵥ敨杩瑨›㔱┰※潦瑮眭楥桧㩴戠汯㭤眠摩桴›〹㬥硜㈲朦㭴⁁潣湮捥楴湯攠牲牯漠捣牵敲Ⅴ氦㭴搯癩朦㭴湜㬢ऊ⼯ⴭਾ㰉猯牣灩㹴ऊ猼牣灩⁴慬杮慵敧∽慪慶捳楲瑰•祴数∽整瑸樯癡獡牣灩≴猠捲∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭獪牣灩獴洯灹慬慺樮≳㰾猯牣灩㹴猼牣灩⁴慬杮慵敧∽慪慶捳楲瑰•祴数∽整瑸樯癡獡牣灩≴猠捲∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭獪牣灩獴洯捹浯慰祮樮≳㰾猯牣灩㹴㰊栯慥㹤㰊潢祤ਾℼⴭ猠慴瑲›桰彰慷湲湩獧ⴠ㸭㰊慴汢⁥潢摲牥∽∰挠汥獬慰楣杮∽∱挠汥灬摡楤杮∽∴愠楬湧∽散瑮牥•汣獡㵳琢潢摲牥㸢㰊牴ਾ琼⁤汣獡㵳琢慣≴ਾ猼牴湯㹧桔⁥潦汬睯湩⁧慷湲湩獧漠捣牵敲㩤⼼瑳潲杮ਾ⼼摴ਾ⼼牴ਾ琼㹲㰊摴挠慬獳∽牴睯∱㰾灳湡挠慬獳∽浳污瑬硥≴㰾瑳潲杮圾牡楮杮⼼瑳潲杮‾㉛⁝慣汬畟敳彲畦据慟牲祡⤨嬠愼栠敲㵦昧湵瑣潩⹮慣汬甭敳⵲畦据愭牲祡㸧畦据楴湯挮污⵬獵牥昭湵ⵣ牡慲㱹愯崾›楆獲⁴牡畧敭瑮椠⁳硥数瑣摥琠敢愠瘠污摩挠污扬捡Ⱬ✠慢歮江慯汤湡❧眠獡朠癩湥ⴠ䰠湩㩥ㄠ㄰ⴠ䘠汩㩥椠据振慬獳灟畬楧獮瀮灨倠偈㔠㈮〮㠭攫捴ㅨ‱䰨湩硵㰩牢⼠ਾ琼扡敬猠祴敬∽楷瑤㩨ㄠ〰㬥洠牡楧㩮ㄠ瀰⁸㬰戠牯敤㩲ㄠ硰猠汯摩⌠慡㭡戠牯敤⵲潣汬灡敳›潣汬灡敳※潢摲牥戭瑯潴㩭〠∻挠汥獬慰楣杮∽∰挠汥灬摡楤杮∽∰戠牯敤㵲〢㸢㰊桴慥㹤琼㹲㰊桴猠祴敬∽潢摲牥戭瑯潴㩭ㄠ硰猠汯摩⌠慡㭡戠捡杫潲湵㩤⌠捣㭣瀠摡楤杮›瀴㭸琠硥⵴污杩㩮氠晥㭴映湯⵴楳敺›ㄱ硰∻䘾汩㱥琯㹨㰊桴猠祴敬∽潢摲牥戭瑯潴㩭ㄠ硰猠汯摩⌠慡㭡戠捡杫潲湵㩤⌠捣㭣瀠摡楤杮›瀴㭸琠硥⵴污杩㩮氠晥㭴映湯⵴楳敺›ㄱ硰∻䰾湩㱥琯㹨㰊桴猠祴敬∽潢摲牥戭瑯潴㩭ㄠ硰猠汯摩⌠慡㭡戠捡杫潲湵㩤⌠捣㭣瀠摡楤杮›瀴㭸琠硥⵴污杩㩮氠晥㭴映湯⵴楳敺›ㄱ硰∻䘾湵瑣潩㱮琯㹨㰊琯㹲⼼桴慥㹤㰊扴摯㹹㰊牴ਾ琼⁤瑳汹㵥昢湯⵴楳敺›ㄱ硰※慰摤湩㩧㐠硰※潢摲牥戭瑯潴㩭ㄠ硰猠汯摩⌠捣㭣㸢偛偈㱝琯㹤㰊摴猠祴敬∽潦瑮猭穩㩥ㄠ瀱㭸瀠摡楤杮›瀴㭸戠牯敤⵲潢瑴浯›瀱⁸潳楬⁤挣捣∻☾扮灳㰻琯㹤㰊摴猠祴敬∽潦瑮猭穩㩥ㄠ瀱㭸瀠摡楤杮›瀴㭸戠牯敤⵲潢瑴浯›瀱⁸潳楬⁤挣捣∻放牲牯慈摮敬⵲放牲牯⼼摴ਾ⼼牴ਾ琼㹲㰊摴猠祴敬∽潦瑮猭穩㩥ㄠ瀱㭸瀠摡楤杮›瀴㭸戠牯敤⵲潢瑴浯›瀱⁸潳楬⁤挣捣∻⼾湩⽣汣獡彳汰杵湩⹳桰㱰琯㹤㰊摴猠祴敬∽潦瑮猭穩㩥ㄠ瀱㭸瀠摡楤杮›瀴㭸戠牯敤⵲潢瑴浯›瀱⁸潳楬⁤挣捣∻ㄾ㄰⼼摴ਾ琼⁤瑳汹㵥昢湯⵴楳敺›ㄱ硰※慰摤湩㩧㐠硰※潢摲牥戭瑯潴㩭ㄠ硰猠汯摩⌠捣㭣㸢慣汬畟敳彲畦据慟牲祡⼼摴ਾ⼼牴ਾ琼㹲㰊摴猠祴敬∽潦瑮猭穩㩥ㄠ瀱㭸瀠摡楤杮›瀴㭸戠牯敤⵲潢瑴浯›瀱⁸潳楬⁤挣捣∻⼾汰穡⹡桰㱰琯㹤㰊摴猠祴敬∽潦瑮猭穩㩥ㄠ瀱㭸瀠摡楤杮›瀴㭸戠牯敤⵲潢瑴浯›瀱⁸潳楬⁤挣捣∻㐾㰳琯㹤㰊摴猠祴敬∽潦瑮猭穩㩥ㄠ瀱㭸瀠摡楤杮›瀴㭸戠牯敤⵲潢瑴浯›瀱⁸潳楬⁤挣捣∻瀾畬楧卮獹整⵭爾湵桟潯獫⼼摴ਾ⼼牴ਾ⼼扴摯㹹⼼慴汢㹥㰊猯慰㹮戼⁲㸯⼼摴ਾ⼼牴ਾ⼼慴汢㹥戼⁲㸯戼⁲㸯㰊ⴡ‭湥㩤瀠灨睟牡楮杮⁳ⴭ㰾ⴡ‭瑳牡㩴栠慥敤⁲ⴭਾ搼癩椠㵤挢湯慴湩牥㸢਍उ愼渠浡㵥琢灯•摩∽潴≰㰾愯ാऊ㰉楤⁶摩∽敨摡牥㸢਍उ㰉楤⁶汣獡㵳氢杯≯㰾⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭湩敤⹸桰≰㰾浩⁧牳㵣栢瑴㩰⼯㍩⸹楴祮楰⹣潣⽭橥扤搳瀮杮•污㵴䴢䉹⁂瑉污慩瀭畬楧湡⁤桔浥⁥潦⁲祍䉂•楴汴㵥䴢䉹⁂瑉污慩瀭畬楧湡⁤桔浥⁥潦⁲祍䉂•㸯⼼㹡⼼楤㹶਍उ㰉楤⁶汣獡㵳洢湥≵ാऊउ㰉汵ാऊउउ氼㹩愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯猯慥捲⹨桰≰㰾浩⁧牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳潴汰湩獫猯慥捲⹨楧≦愠瑬∽•楴汴㵥∢⼠匾慥捲㱨愯㰾氯㹩਍उउ㰉楬㰾⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭敭扭牥楬瑳瀮灨㸢椼杭猠捲∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭浩条獥琯灯楬歮⽳敭扭牥楬瑳朮晩•污㵴∢琠瑩敬∽•㸯敍扭牥䰠獩㱴愯㰾氯㹩਍उउ㰉楬㰾⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭慣敬摮牡瀮灨㸢椼杭猠捲∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭浩条獥琯灯楬歮⽳慣敬摮牡朮晩•污㵴∢琠瑩敬∽•㸯慃敬摮牡⼼㹡⼼楬ാऊउउ氼㹩愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯洯獩⹣桰㽰捡楴湯栽汥≰㰾浩⁧牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳潴汰湩獫栯汥⹰楧≦愠瑬∽•楴汴㵥∢⼠䠾汥㱰愯㰾氯㹩਍††††††††††††††††††††਍उउ⼼汵ാऊउ⼼楤㹶਍उ㰉牨挠慬獳∽楨摤湥•㸯਍उ㰉楤⁶摩∽慰敮≬ാऊउ㰉ⴡ‭瑳牡㩴栠慥敤彲敷捬浯扥潬正浟浥敢⁲ⴭਾ㰉灳湡猠祴敬∽汦慯㩴楲桧㭴㸢猼牴湯㹧畃牲湥⁴楴敭㰺猯牴湯㹧ㄠⴲ㔲㈭〰ⰸ〠㨱㤴倠㱍猯慰㹮ऊ㰉瑳潲杮圾汥潣敭戠捡Ⱬ䜠慩杮㥹㰴猯牴湯㹧‮潙⁵慬瑳瘠獩瑩摥›潔慤ⱹ〠㨱㔲倠⁍㰨⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭獵牥灣瀮灨㸢猼牴湯㹧獕牥䌠㱐猯牴湯㹧⼼㹡ℼⴭ猠慴瑲›敨摡牥睟汥潣敭汢捯彫敭扭牥浟摯牥瑡牯ⴠ㸭 洦慤桳※愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯洯摯灣瀮灨㸢潍⁤偃⼼㹡㰊ⴡ‭湥㩤栠慥敤彲敷捬浯扥潬正浟浥敢彲潭敤慲潴⁲ⴭ㰾ⴡ‭瑳牡㩴栠慥敤彲敷捬浯扥潬正浟浥敢彲摡業ⴭਾ☠摭獡㭨㰠⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭摡業⽮湩敤⹸桰≰䄾浤湩䌠㱐愯ਾℼⴭ攠摮›敨摡牥睟汥潣敭汢捯彫敭扭牥慟浤湩ⴠ㸭☠摭獡㭨㰠⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭敭扭牥瀮灨愿瑣潩㵮潬潧瑵愦灭氻杯畯歴祥㜽〲㜰㠳㍣摣㔲搰㔲摦㕦昱ㄱ㥢㤲慤∲䰾杯传瑵⼼㹡㰩牢⼠ਾउउ猼慰汣獡㵳氢湩獫㸢ऊउउ猼牴湯㹧愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯瀯慬慺瀮灨㸢祍汐穡⁡畔扲㱯愯㰾猯牴湯㹧簠ਠउउ㰉⁡牨晥∽∣漠据楬正∽祍䉂瀮灯灵楗摮睯✨瑨灴⼺眯睷洮批楢慴楬⹡潣⽭業捳瀮灨愿瑣潩㵮畢摤灹灯灵Ⱗ✠畢摤䱹獩❴‬㔳ⰰ㌠〵㬩㸢灏湥䈠摵祤䰠獩㱴愯ਾउउ⼼灳湡ਾउउ愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯猯慥捲⹨桰㽰捡楴湯朽瑥敮≷嘾敩⁷敎⁷潐瑳㱳愯‾⁼愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯猯慥捲⹨桰㽰捡楴湯朽瑥慤汩≹嘾敩⁷潔慤❹⁳潐瑳㱳愯‾⁼愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯瀯楲慶整瀮灨㸢牐癩瑡⁥敍獳条獥⼼㹡⠠湕敲摡〠‬潔慴㌷਩ℼⴭ攠摮›敨摡牥睟汥潣敭汢捯彫敭扭牥ⴠ㸭਍उ㰉搯癩ാऊ㰉搯癩ാऊ㰉牨挠慬獳∽楨摤湥•㸯਍उ戼⁲汣獡㵳挢敬牡•㸯਍उ搼癩椠㵤挢湯整瑮㸢਍उഉऊउ਍उഉऊउ਍उഉऊउ਍उ㰉ⴡ‭瑳牡㩴朠潬慢彬敭獳条楧ⴠ㸭ਊउऊਉउ戼⁲㸯㰊ⴡ‭湥㩤朠潬慢彬敭獳条楧ⴠ㸭਍उ㰉ⴡ‭瑳牡㩴渠癡ⴠ㸭ਊ搼癩挠慬獳∽慮楶慧楴湯㸢㰊ⴡ‭瑳牡㩴渠癡扟瑩ⴠ㸭㰊⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭湩敤⹸桰≰䴾䉹⁂瑉污慩瀭畬楧湡⁤桔浥⁥潦⁲祍䉂⼼㹡㰊ⴡ‭湥㩤渠癡扟瑩ⴠ㸭ℼⴭ猠慴瑲›慮彶敳彰捡楴敶ⴠ㸭  㰊ⴡ‭湥㩤渠癡獟灥慟瑣癩⁥ⴭ㰾ⴡ‭瑳牡㩴渠癡扟瑩慟瑣癩⁥ⴭਾ猼慰汣獡㵳愢瑣癩≥䴾偹慬慺吠牵潢⼼灳湡ਾℼⴭ攠摮›慮彶楢彴捡楴敶ⴠ㸭㰊搯癩ਾℼⴭ攠摮›慮⁶ⴭാऊउ਍उ㰉牢⼠ਾℼⴭ攠摮›敨摡牥ⴠ㸭㰊牢⼠ਾ甼汣獡㵳瀢慬慺敭畮㸢ऊ氼㹩愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯瀯慬慺瀮灨㸢椼杭猠捲∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭浩条獥洯灹慬慺栯浯⹥湰≧愠瑬∽•㸯汐穡㱡愯㰾氯㹩ऊ氼㹩愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯瀯慬慺瀮灨愿瑣潩㵮瑳瑡≳㰾浩⁧牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳祭汰穡⽡瑳瑡⹳湰≧愠瑬∽•㸯瑓瑡獩楴獣⼼㹡⼼楬ਾ㰉楬㰾⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭汰穡⹡桰㽰捡楴湯栽獩潴祲㸢椼杭猠捲∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭浩条獥洯灹慬慺栯獩潴祲瀮杮•污㵴∢⼠倾牵档獡⁥楈瑳牯㱹愯㰾氯㹩氼㹩愼栠敲㵦栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯瀯慬慺瀮灨愿瑣潩㵮慰敧愦灭瀻氽瑯整祲㸢椼杭猠捲∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭浩条獥洯灹慬慺氯瑯整祲朮晩•污㵴∢⼠䰾瑯整祲⼼㹡⼼楬㰾楬㰾⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭汰穡⹡桰㽰捡楴湯瀽条♥浡㭰㵰湩敶瑮牯≹㰾浩⁧牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳祭汰穡⽡湩敶瑮牯⹹湰≧愠瑬∽•㸯慬洠慩⁡湩敶瑮牯㱹愯㰾氯㹩㰊楬㰾⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭汰穡⹡桰㽰捡楴湯瀽条♥浡㭰㵰慢歮㸢椼杭猠捲∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭浩条獥洯灹慬慺戯湡⹫湰≧愠瑬∽•㸯⼼㹡⼼楬㰾楬㰾⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭汰穡⹡桰㽰捡楴湯瀽条♥浡㭰㵰祭潣灭湡≹㰾浩⁧牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳祭汰穡⽡祭潣灭湡⹹湰≧愠瑬∽•㸯祍䌠浯慰祮⼼㹡⼼楬㰾楬㰾⁡牨晥∽瑨灴⼺眯睷洮批楢慴楬⹡潣⽭汰穡⹡桰㽰捡楴湯瀽条♥浡㭰㵰汳瑯慭档湩≥㰾浩⁧牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳祭汰穡⽡汳瑯慭档湩⹥湰≧愠瑬∽•㸯汓瑯䴠捡楨敮⼼㹡⼼楬㰾甯㹬ਊℼⴭ攠摮›汰穡彡敨摡牥ⴠ㸭ਊ搼癩ਾ㰉楤⁶摩∽汰穡彡橡硡獟慨敤•瑳汹㵥眢摩桴›〱┰※敨杩瑨›〴瀰㭸戠捡杫潲湵㩤眠楨整※潰楳楴湯›扡潳畬整※敬瑦›瀰㭸琠灯›瀰㭸搠獩汰祡›潮敮※潣潬㩲戠慬正※汦慯㩴爠杩瑨※整瑸愭楬湧›散瑮牥※慰摤湩ⵧ潴㩰㐠瀰㭸㸢ऊ㰉浩⁧牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳灳湩敮彲楢⹧楧≦愠瑬∽•㸯戼⁲㸯牐捯獥楳杮⸮ਮ㰉搯癩ਾ㰉楤⁶摩∽汰穡彡橡硡浟獥慳敧损湯慴湩牥•瑳汹㵥眢摩桴›〱┰※潰楳楴湯›扡潳畬整※潴㩰ㄠ瀰㭸氠晥㩴〠硰※楤灳慬㩹渠湯㭥琠硥⵴污杩㩮挠湥整㭲映潬瑡›楲桧㭴㸢ऊ㰉灳湡椠㵤瀢慬慺慟慪彸敭獳条≥猠祴敬∽楷瑤㩨㐠〰硰※慰摤湩㩧ㄠ瀰⁸〲硰ㄠ瀰⁸〲硰∻㰾猯慰㹮ऊ⼼楤㹶ऊ琼扡敬戠牯敤㵲〢•散汬灳捡湩㵧ㄢ•散汬慰摤湩㵧〢•汣獡㵳琢潢摲牥•瑳汹㵥眢摩桴›〱┰※敨杩瑨›〴瀰㭸瀠摡楤杮›瀰㭸•摩∽汰穡彡潣瑮楡敮≲ਾउ琼敨摡ਾउ㰉牴ਾउउ琼⁨汣獡㵳琢敨摡•潣獬慰㵮㈢•瑳汹㵥瀢摡楤杮›瀴㭸洠牡楧㩮ㄠ硰∻ਾउउ㰉浩⁧牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳祭汰穡⽡潨敭瀮杮•汣獡㵳瀢慬慺瑩浥•污㵴∢⼠㰾瑳潲杮倾慬慺⼼瑳潲杮ਾउउ⼼桴ਾउ㰉琯㹲ऊ㰉琯敨摡ਾउ琼潢祤ਾउ㰉牴ਾउउ琼⁤潲獷慰㵮㈢•汣獡㵳琢潲ㅷ•瑳汹㵥瀢摡楤杮›瀰㭸眠摩桴›〵㬥•慶楬湧∽潴≰ਾउउ㰉慴汢⁥潢摲牥∽∰挠汥獬慰楣杮∽∱挠汥灬摡楤杮∽∴猠祴敬∽楷瑤㩨ㄠ〰㬥洠硡栭楥桧㩴㐠〰硰∻椠㵤瀢慬慺楟整汭獩≴ਾउउउ琼⁲汣獡㵳琢慣≴椠㵤瀢慬慺楟整汭獩彴敨摡㸢ऊउउउ琼⁤楷瑤㵨⨢㸢ऊउउउ㰉瑳潲杮䤾整㱭猯牴湯㹧ऊउउउ⼼摴ਾउउउ㰉摴眠摩桴∽〲∥ਾउउउउ猼牴湯㹧潃瑳⼼瑳潲杮ਾउउउ㰉琯㹤ऊउउउ琼⁤楷瑤㵨ㄢ┵㸢ऊउउउ㰉瑳潲杮匾潴正⼼瑳潲杮ਾउउउ㰉琯㹤ऊउउउ琼⁤楷瑤㵨ㄢ┵㸢ऊउउउ㰉瑳潲杮倾牵档獡獥⼼瑳潲杮ਾउउउ㰉琯㹤ऊउउउ琼⁤汣獡㵳椢癮獩扩敬㸢⼼摴ਾउउउ㰉摴猠祴敬∽楤灳慬㩹愠瑵㭯眠摩桴›〱硰∻椠㵤瀢慬慺损汯浵彮捳潲汬慢≲☾扮灳㰻琯㹤ऊउउ㰉琯㹲ऊउउ㰉牴㰾摴猠祴敬∽楷瑤㩨ㄠ〰㬥瀠摡楤杮›㬰瘠牥楴慣⵬污杩㩮琠灯∻挠汯灳湡∽∶ਾउउउ㰉楤⁶瑳汹㵥栢楥桧㩴㌠〸硰※慭⵸敨杩瑨›㠳瀰㭸漠敶晲潬㩷愠瑵㭯眠摩桴›〱┰∻ਾउउउउ琼扡敬椠㵤瀢慬慺楟整汭獩彴潢祤•潢摲牥∽∰挠汥獬慰楣杮∽∱挠汥灬摡楤杮∽∴眠摩桴∽〱┰㸢ऊउउउउℼⴭ猠慴瑲›汰穡彡敭畮瑩浥ⴠ㸭㰊扴摯㹹琼⁲汣獡㵳琢敨摡•瑳汹㵥栢楥桧㩴ㄠ浥∻ਾ㰉摴挠汯灳湡∽∴ਾउ搼癩挠慬獳∽硥捰汯浩条≥漠据楬正∽慣整潧祲硅慰摮牥琨楨⥳∻㰾浩⁧牳㵣椢慭敧⽳潣汬灡敳朮晩•摩∽慣捴汯慬獰彥∱愠瑬∽ⵛ≝猠祴敬∽畣獲牯›潰湩整㭲•㸯⼼楤㹶ऊ㰉浩⁧牳㵣栢瑴㩰⼯睷⹷祭扢瑩污慩挮浯椯慭敧⽳祭汰穡⽡慣整潧祲瀮杮•瑳汹㵥瘢牥楴慣⵬污杩㩮洠摩汤㭥洠牡楧⵮楲桧㩴㔠硰∻愠瑬∽•㸯猼牴湯㹧猼慰瑳汹㵥✧䴾⁹慃整潧祲⼼灳湡㰾猯牴湯㹧ऊ⼼摴ਾ⼼牴㰾琯潢祤ਾ琼潢祤椠㵤挢瑡潣汬灡敳ㅟ敟㸢㰊ⴡ‭瑳牡㩴瀠慬慺损瑡湟楯整獭ⴠ㸭㰊牴挠慬獳∽牴睯∱猠祴敬∽敨杩瑨›攱㭭∠㰾摴挠汯灳湡∽∴椠㵤椢整彭潮敮ㅟ㸢桔
[/spoiler]


What must I do????????????????
I reuploaded the old files but it remian so. I'm desperate
#43

LOL, nice error Tongue

Can't help you out though :/
#44

(12-25-2008, 10:51 PM)Giangy94 Wrote: I have a big problem, i tried to translate the files in inc/plugin/myplaza folder but now when i go Myplaza appar me this error:

What must I do????????????????

I reuploaded the old files but it remian so. I'm desperate

Try to clean "cache" in Admin Cpanel... I think that will fix it






to Fix your translation

What I know it´s that this can cause problems with your translated files:

1) quotes = " '
must be: \" or \'

2) UTF-8 and BOM

If you translated in Notepad/other text editor and saved the language file in ANSI (Notepad Default) or UTF-8, it will not work - as notepad save its files with BOM and mybb use UTF-8 Without BOM...

One text editor that saves correctly UTF-8 without BOM is Crimson Editor
http://www.crimsoneditor.com/
..
#45

@Giangy, Added [spoiler] tag for your error... Wink
@AglioEoliO, Tnx, I've tried to translate a language file before with Notepad without success... Guess I'll do it with Dreamweaver from now on. Wink
[Center][Image: eiw9hy.png]
[Image: 15re2q8.png]
!Liverpool 4 Life![/Center]
Pirata Nervo Wrote:IE6 is weird and sucks
#46

thanks for answering AglioEolio
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#47

I have installed your fantastic plugin, but, How users can gain money?
#48

By posting & etc.. check this.
http://forums.consoleworld.net/misc.php?...elp&hid=18
Thank you,
- Shadows.
#49

Thanks so much...

How can I edit them?
#50

Go to "Modules" tab and click the optins button which is in the same row as the Income module name
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.




Users browsing this thread: 1 Guest(s)