Ultimate Points Extension

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

picaron
Users
Users
Posts: 10
Joined: 19 Jul 2016, 15:27

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: 30 Jan 2021, 10:57

Re: Ultimate Points Extension

Post by Brunchs »

he does not respond to this error :wall:

User avatar

Brunchs
Users
Users
Posts: 16
Joined: 30 Jan 2021, 10:57

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 Jul 2015, 11:08

Re: Ultimate Points Extension

Post by faroud »

Brunchs wrote: 22 Apr 2021, 11:42 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: 47
Joined: 21 May 2017, 14:30

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: 116
Joined: 04 Feb 2021, 23:54

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?
Image

User avatar

SpIdErPiGgY
Users
Users
Posts: 116
Joined: 04 Feb 2021, 23:54

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>
Image

User avatar

picaron
Users
Users
Posts: 10
Joined: 19 Jul 2016, 15:27

Re: Ultimate Points Extension

Post by picaron »

Onnozel Manneke wrote: 05 May 2021, 03:49 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: 116
Joined: 04 Feb 2021, 23:54

Re: Ultimate Points Extension

Post by SpIdErPiGgY »

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

Then there is just this:
Onnozel Manneke wrote: 05 May 2021, 03:49 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
Image

User avatar

SpIdErPiGgY
Users
Users
Posts: 116
Joined: 04 Feb 2021, 23:54

Re: Ultimate Points Extension

Post by SpIdErPiGgY »

picaron wrote: 22 Apr 2021, 03:11 /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
Image

User avatar

faroud
Users
Users
Posts: 141
Joined: 11 Jul 2015, 11:08

Re: Ultimate Points Extension

Post by faroud »

[phpBB Debug] PHP Notice: in file [ROOT]/ext/dmzx/ultimatepoints/core/points_bank.php on line 498: Array to string conversion
:whistl:

User avatar

picaron
Users
Users
Posts: 10
Joined: 19 Jul 2016, 15:27

Re: Ultimate Points Extension

Post by picaron »

Onnozel Manneke wrote: 07 May 2021, 20:52

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
$row['holding'] always has to be a numeric value.
Check your database.

Edit....

Or try this.

/core/points_main.php (Line 164)
Select all

Code: Select all

			if ($this->auth->acl_get('u_use_bank'))
			{
				$this->template->assign_block_vars('has_bank_account', array(
					'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']),
And replace with

Code: Select all

			if ($this->auth->acl_get('u_use_bank'))
			{
                		$holding = (is_array($row) && is_numeric($row['holding'])) ? $row['holding'] : 0;
				$this->template->assign_block_vars('has_bank_account', array(
					'L_MAIN_BANK_HAVE' => sprintf($this->user->lang['MAIN_BANK_HAVE'], $this->functions_points->number_format_points($holding), $this->config['points_name']),
:beers: :tumbsyes:

User avatar

miri4ever
Users
Users
Posts: 71
Joined: 22 Jan 2017, 15:39

Re: Ultimate Points Extension

Post by miri4ever »

Thanks Guys I fixed this 1 point issue display everywhere. Working well.

But I still got the problem if I put in 7 days for interest it still shows me: 1 Array instead of week.

User avatar

xMaveeeX
Users
Users
Posts: 5
Joined: 08 May 2021, 00:09

Re: Ultimate Points Extension

Post by xMaveeeX »

Dear dmzx,

I'm really very grateful for this mod. My old childhood days are coming back with it, thank you very much! :buigen:

Would it be possible to include a little push message about how many points the last post earned?
It would be so fantastic and so motivating to keep going!

User avatar

SpIdErPiGgY
Users
Users
Posts: 116
Joined: 04 Feb 2021, 23:54

Re: Ultimate Points Extension

Post by SpIdErPiGgY »

Don't bother asking for support. I removed this ext.
Image

Post Reply