vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   uCash & uShop v2.0.0 (https://vborg.vbsupport.ru/showthread.php?t=107233)

Red Blaze 02-06-2006 03:25 PM

I'm running into some problems. Firstly, the bank.

It says I can't deposit more than I have, and I 1,000,000+ points. I deposit at least 1 and it still gives me that.
Also, I noticed that in uShop, under my av, it says:
Quote:

points:
points in bank:
Nothing.

kpr 02-06-2006 03:26 PM

Error in upgrade.
After re uploading then doing install i get this at stage 8 of install

deathemperor 02-06-2006 03:28 PM

Quote:

Originally Posted by mikexxx
Question about displaying the points.

Now I have:

Posts: 3.945 | Points: 12,345.00

My question is how can chance the ?. ? and the ? , ? in the points (Points: 12.345,00)?

that's a vbulletin option I assume.


@Revan: I think the bank got a problem when calculating interests. I got this actually when entering the bank

Fatal error: Maximum execution time of 30 seconds exceeded in forum/ushop/action.bank.php on line 93

which is.
$nextinterest = ($nextinterest + $action['interestincrement']);

Also I can't seem to see where I can set the bank interests.

ThePimp 02-06-2006 03:30 PM

Getting a blank screen when trying to go to the bank. It worked for a little while, then stopped. Any idea as to how to fix this?

Red Blaze 02-06-2006 03:35 PM

XD
I shoulda tried the other shop first. Ah well, I screwed myself over for forgetting to make a backup. L_L

@kpr I had that too. I stopped the installation there, and tried it out. It worked, but I believe that's why I'm getting the other problems.

deathemperor 02-06-2006 03:45 PM

To Revan: You should check this, I think it's a bug:

Firstly, in global_start plugin for Ucash, this line:

$vbulletin->userinfo['points'] = ucash_number_format($vbulletin->userinfo[$vbulletin->options['ucash_pointsfield']], true);

will make $vbulletin->userinfo['points'] become point which has "," , that can't be use to compare in this:

PHP Code:

if ($cost $vbulletin->userinfo['points'] && $cost 0) { 

If I change to (second param to false)

PHP Code:

$vbulletin->userinfo['points'] = ucash_number_format($vbulletin->userinfo[$vbulletin->options['ucash_pointsfield']], false); 

I will not receive the "do not have enough point message" anymore, because that time my point is calculated correctly.

BUT, if I enter the bank, I will get the 30s maximun execution time. On the contrary I set to "true", I can enter the bank but I get the "do not have enough point message".

Could you check that please ?

Iain M 02-06-2006 03:54 PM

Quote:

Originally Posted by kpr
Error in upgrade.
After re uploading then doing install i get this at stage 8 of install

i am getting this also,

except, i get to step 8 then click Next Step (9/10) then i get the "Error in upgrade." message.

Revan 02-06-2006 03:55 PM

Step 8 and onwards is building forum permissions and adding cron job, so that would have no impact.
I just tried a fresh install on a new installation and it went almost without a hitch, gonna update the zip.

Revan 02-06-2006 03:58 PM

Quote:

Originally Posted by deathemperor
To Revan: You should check this, I think it's a bug:

Firstly, in global_start plugin for Ucash, this line:

$vbulletin->userinfo['points'] = ucash_number_format($vbulletin->userinfo[$vbulletin->options['ucash_pointsfield']], true);

will make $vbulletin->userinfo['points'] become point which has "," , that can't be use to compare in this:

PHP Code:

if ($cost $vbulletin->userinfo['points'] && $cost 0) { 

If I change to (second param to false)

PHP Code:

$vbulletin->userinfo['points'] = ucash_number_format($vbulletin->userinfo[$vbulletin->options['ucash_pointsfield']], false); 

I will not receive the "do not have enough point message" anymore, because that time my point is calculated correctly.

BUT, if I enter the bank, I will get the 30s maximun execution time. On the contrary I set to "true", I can enter the bank but I get the "do not have enough point message".

Could you check that please ?

Thank you for the extensive report, I will definetely check this out.
Just let me hotfix the install problem, and Ill get right onto this problem. You have been most helpful :)

Red Blaze 02-06-2006 03:59 PM

I tried to remove the shop completely, now I can't install it anymore.
I get to step 7, and stops there with a vBulletin message saying:

Quote:

Invalid File Specified


All times are GMT. The time now is 09:36 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.02546 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete