zingysaturn wrote: How do i uninstall Store Mod without destroying all my other mods?
-Zingysaturn
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
cash.php
#
#-----[ FIND ]------------------------------------------
#
$exchanger->give_by_id_array(array($c_cur_to->id() => $converted_amount));
#
#-----[ AFTER, ADD ]------------------------------------------
#
$userdata[$c_cur_from->db()] = $exchanger->amount($from_id);
$userdata[$c_cur_to->db()] = $exchanger->amount($to_id);
shi wrote: I've searched for more than an hour before posting. And then I decided to post since nothing was found. If it has been fixed I'd like to say sorry.
My friend told me a bug with Cash MOD 2.2.1. The issues was experienced during exchanging. The amount of each currency displayed on the exchanging page won't be updated after submiting. Actually the database has been updated at that moment, but user may think there's something wrong and then press refresh. The result is another exchanging was proceeded. I read the codes and did some change for it.If you have the same problem, try it. And I hope to get Xore's validating.Code: Select all
# #-----[ OPEN ]------------------------------------------ # cash.php # #-----[ FIND ]------------------------------------------ # $exchanger->give_by_id_array(array($c_cur_to->id() => $converted_amount)); # #-----[ AFTER, ADD ]------------------------------------------ # $userdata[$c_cur_from->db()] = $exchanger->amount($from_id); $userdata[$c_cur_to->db()] = $exchanger->amount($to_id);
Code: Select all
$headercash = $c_cur->display($userdata[$c_cur->db()]);
Code: Select all
$headercash = $c_cur->display($exchanger->amount($c_cur->id()));
Code: Select all
$exchanger = new cash_user($userdata['user_id'],$userdata);
Code: Select all
if ( isset($HTTP_POST_VARS['exchange']) &&
There's one more question about the different version of cash mod since version 2.0. I'm trying to make my mod Advanced Hide Post supporting cash mod better. The following is my guess:Am I right? Is there any other version disobey the rules? (Seems version 2.1.x have never been mentioned.)
- For all versions like 2.0.x
- The field cash_enabled in cash table is used to control enabling or disabling the currency.
- The currency settings are done in admin_cash_settings.php
- For all versions like 2.2.x
- The lowest bit of the field cash_settings in cash table to control enabling or disabling the currency.
- The currency settings are done in cash_settings.php
Code: Select all
Fatal error: Call to a member function on a non-object in /home/mysite/public_html/forum/cash.php on line 563
TimeVirus wrote: Xore, I was just trying your new line mentioned above for the exchange headers to update and I get this error from it:Is there another step as well?Code: Select all
Fatal error: Call to a member function on a non-object in /home/mysite/public_html/forum/cash.php on line 563
I will use Shi's fix if you say it's ok to, but I didnt want to confuse myself later applying new updates or something like that by using a fix you didn't consider standard.
Alias2345 wrote: i get following errors:(
Fatal error: Class template_plus: Cannot inherit from undefined class template in /home/rlrl/domains/rap-legends.com/public_html/battleboard/includes/classes_cash.php on line 40
Fatal error: Call to a member function on a non-object in /home/rlrl/domains/rap-legends.com/public_html/battleboard/includes/functions_cash.php on line 655