3.2 & 3.3 Extensions Database 3.2 / 3.3Ultimate Points Extension

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

Joost
Users
Users
Posts: 25
Joined: 11 years ago
    Windows 10 Chrome

Re: Ultimate Points Extension

Post by Joost »

simplejiro wrote: 9 years ago Hi, possible to remove the .00 for the points? I prefer to show it as 10 points instead of 10.00 points.
I have the same question as simplejiro

User avatar

Joost
Users
Users
Posts: 25
Joined: 11 years ago
    Windows 10 Chrome

Re: Ultimate Points Extension

Post by Joost »

simplejiro wrote: 9 years ago Hi, possible to remove the .00 for the points? I prefer to show it as 10 points instead of 10.00 points.
I have found the solution for this question. :D

Go to the folder:
ext/dmzx/ultimatepoints/core

And open the file:
functions_points.php

Search for:
$decimals = 2;

Replace this with:
$decimals = 0;

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6566
Joined: 12 years ago
    Windows 10 Chrome

Re: Ultimate Points Extension

Post by dmzx »

First post updated.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6566
Joined: 12 years ago
    Windows 10 Chrome

Re: Ultimate Points Extension

Post by dmzx »

First post updated.

User avatar

Brunchs
Users
Users
Posts: 16
Joined: 5 years ago
    Windows 10 Edge

Re: Ultimate Points Extension

Post by Brunchs »

Fatal error: Cannot declare class p_master, because the name is already in use in /home/clients/04bba139eb5e41020ef875068f42a5f4/web/includes/functions_module.php on line 25

When I click on the points I can no longer access the lottery or the robbery at all points what :wall:

User avatar

picaron
Users
Users
Posts: 10
Joined: 10 years ago
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by picaron »

Hello, there are several errors that prevent users from viewing the bank balance.

/core/points_bank.php (Lines 211 and 212)

Code: Select all

$fees = (is_array($row) && $row['fees']);
$holding = (is_array($row) && $row['holding']);
Fixed by replacing with

Code: Select all

$fees = (is_array($row) && $row['fees']) ? $row['fees'] : 0;
$holding = (is_array($row) && $row['holding']) ? $row['holding'] : 0;

/core/points_bank.php (Lines 274)

Code: Select all

$holding = (is_array($row) && $row['holding']);
Fixed by replacing with

Code: Select all

$holding = (is_array($row) && $row['holding']) ? $row['holding'] : 0;

/core/points_main.php (Lines 167)

Code: Select all

'L_MAIN_BANK_HAVE'	=>	sprintf($this->user->lang['MAIN_BANK_HAVE'], $this->functions_points->number_format_points(is_array($row) && $row['holding']), $this->config['points_name']),
Fixed by replacing with

Code: Select all

'L_MAIN_BANK_HAVE' => sprintf($this->user->lang['MAIN_BANK_HAVE'], $this->functions_points->number_format_points($row['holding']), $this->config['points_name']),
:beers: :tumbsyes:

User avatar

Brunchs
Users
Users
Posts: 16
Joined: 5 years ago
    Windows 10 Edge

Re: Ultimate Points Extension

Post by Brunchs »

He does not respond to this error :wall:

User avatar

Brunchs
Users
Users
Posts: 16
Joined: 5 years ago
    Windows 10 Edge

Re: Ultimate Points Extension

Post by Brunchs »

I had to remove an extension for my part to correct now it's better you must have an extension conflict

User avatar

faroud
Users
Users
Posts: 141
Joined: 11 years ago
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by faroud »

Brunchs wrote: 5 years ago I had to remove an extension for my part to correct now it's better you must have an extension conflict
your php version may be too high
set it to 7.4.10

User avatar

NAPWR
Donator
Donator
Posts: 50
Joined: 9 years ago
    Linux Chrome

Re: Ultimate Points Extension

Post by NAPWR »

Hi DM,

any chance, we can allow Admin to play Lotto, but cannot win lotto :?:
My name is Dave I, and all things are out there, and we are in here :mml:

User avatar

SpIdErPiGgY
Users
Users
Posts: 123
Joined: 5 years ago
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by SpIdErPiGgY »

When you set the Interest payment time for the bank setting in ACP on 30 days or more, you see this: Period for payout of interests: 1 Array on the /ultimatepoints?mode=bank page. 29 days shows: 4 weeks 1 Array


Also I see Bank information: 1.00 Coins
That's not correct, I have 125.00 Coins on the bank...

Same at the withdraw function, should be "125.00"

Image

Would you please take a look that?
🌐 phpBB Extensions in Dutch
✦ Free translations, updates, support and practical tutorials for phpBB.
💚 Support this project on Ko-fi

User avatar

SpIdErPiGgY
Users
Users
Posts: 123
Joined: 5 years ago
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by SpIdErPiGgY »

I changed:

Code: Select all

<dd><input type="text" tabindex="3" maxlength="10" class="inputbox autowidth" title="{{ lang('POINTS_NUMBER_FORMAT_EXPLAIN') }}" name="withdraw" size="20" value="{{ USER_WITHDRAW }}" /> {{ POINTS_NAME }}{{ S_FORM_TOKEN }}</dd>
Into:

Code: Select all

<dd><input type="text" tabindex="3" maxlength="10" class="inputbox autowidth" title="{{ lang('POINTS_NUMBER_FORMAT_EXPLAIN') }}" name="withdraw" size="20" value="{{ BANK_HOLDINGS }}" /> {{ POINTS_NAME }}{{ S_FORM_TOKEN }}</dd>
That fixed the "withdraw" issue on /ultimatepoints?mode=bank

Now it just needs to be fixed on /ultimatepoints.
I don't know how to fix it there... seems to be this code: <p>{% for has_bank_account in loops.has_bank_account %}{{ has_bank_account.L_MAIN_BANK_HAVE }}{% endfor %}<p>

User avatar

picaron
Users
Users
Posts: 10
Joined: 10 years ago
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by picaron »

Onnozel Manneke wrote: 5 years ago When you set the Interest payment time for the bank setting in ACP on 30 days or more, you see this: Period for payout of interests: 1 Array on the /ultimatepoints?mode=bank page. 29 days shows: 4 weeks 1 Array


Also I see Bank information: 1.00 Coins
That's not correct, I have 125.00 Coins on the bank...

Same at the withdraw function, should be "125.00"

Image

Would you please take a look that?
You need to read here -->> viewtopic.php?p=29628&sid=a517340d81aee ... 653#p29628
That is, five messages before yours. :beers:

User avatar

SpIdErPiGgY
Users
Users
Posts: 123
Joined: 5 years ago
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by SpIdErPiGgY »

F*ck I missed that... Thank you Picaron!

Then there is just this:
Onnozel Manneke wrote: 5 years ago When you set the Interest payment time for the bank setting in ACP on 30 days or more, you see this: Period for payout of interests: 1 Array on the /ultimatepoints?mode=bank page. 29 days shows: 4 weeks 1 Array

User avatar

SpIdErPiGgY
Users
Users
Posts: 123
Joined: 5 years ago
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by SpIdErPiGgY »

picaron wrote: 5 years ago /core/points_main.php (Lines 167)

Code: Select all

'L_MAIN_BANK_HAVE'	=>	sprintf($this->user->lang['MAIN_BANK_HAVE'], $this->functions_points->number_format_points(is_array($row) && $row['holding']), $this->config['points_name']),
Fixed by replacing with

Code: Select all

'L_MAIN_BANK_HAVE' => sprintf($this->user->lang['MAIN_BANK_HAVE'], $this->functions_points->number_format_points($row['holding']), $this->config['points_name']),

Code: Select all

phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/ultimatepoints/core/points_main.php on line 167: Trying to access array offset on value of type bool

Post Reply Previous topicNext topic