Ultimate Points Extension

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

exemplary
Users
Users
Posts: 4
Joined: 03 Mar 2024, 11:09

Re: Ultimate Points Extension

Post by exemplary »

Great extension. Right now trying out on localhost and works perfectly on version 3.3.11.
I have a question : How do I hide THE RICHEST BANKER in user's Points control panel under Bank Name option ?

User avatar

exemplary
Users
Users
Posts: 4
Joined: 03 Mar 2024, 11:09

Re: Ultimate Points Extension

Post by exemplary »

Another question : how do you hide bank name balance on user profile shown on forum topics ?

User avatar

schupacek
New user
New user
Posts: 1
Joined: 27 Mar 2024, 11:10

Re: Ultimate Points Extension

Post by schupacek »

is it possible for a user to pay (points) to join a group? autogroup accept the user automatically when you reach a certain number of points, but the points will remain, I would like users to be able to pay for a group .. so that I can set which groups and which points in acp

I hope you understand what I mean, sorry for my english

User avatar

Azaman
Users
Users
Posts: 4
Joined: 15 Apr 2023, 20:22

Re: Ultimate Points Extension

Post by Azaman »

Dear users, in case you desire to have the GLOBAL TOTAL NUMBER OF POINTS IN HAND HELD BY your members, use the following code:

Open: .../points_main.php

Find: // Generate richest users

Add Before:

Code: Select all

		// Generate total users points - CUSTOM
		$sql_array = [
			'SELECT' => 'SUM(user_points) AS total_users_points',
			'FROM' => [
				USERS_TABLE => 'u',
			],
			'WHERE' => 'user_points > 0',
		];
		$sql = $this->db->sql_build_query('SELECT', $sql_array);
		$result = $this->db->sql_query_limit($sql, $limit);
        $total_users_points = (int) $this->db->sql_fetchfield('total_users_points');
		$this->db->sql_freeresult($result);

Find: 'POINTS_MOST_RICH_USERS' => sprintf($this->user->lang['POINTS_MOST_RICH_USERS'], $points_values['number_show_top_points']),
Add After (New line):

Code: Select all

'TOTAL_USERS_POINTS' => sprintf($this->functions_points->number_format_points($total_users_points)),
And finally, in your html template, you can insert {{ TOTAL_USERS_POINTS }} anywhere to display the global total points in hand.

Cheers.

User avatar

Azaman
Users
Users
Posts: 4
Joined: 15 Apr 2023, 20:22

Re: Ultimate Points Extension

Post by Azaman »

miri4ever wrote: 18 Jul 2021, 23:12
picaron wrote: 22 Apr 2021, 03:11 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:
Those changes seems first to be working fine and all the display was correct and working. But now we reset everything and needed to open new bank accounts. And with the orginal 1.26 Version all is fine if we overlook this wrong display of money inside the bank. But if those modifications inside it's not possbiel to open new Bank Accounts.

I just got a ! display if wanted to open new accountsa and nothing is done. I could reproduce this error on two boards and with the original files all was working normal.
SOLVED"

Do not do the edit for line 274. Not necessary. It is whats blocking account creation.

Ignore or undo this edit:
/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;
You will be able to create new bank accounts while still displaying bank balances.

Cheers

User avatar

fastgil.com
Users
Users
Posts: 20
Joined: 17 Sep 2019, 19:10

Re: Ultimate Points Extension

Post by fastgil.com »

fastgil.com wrote: 01 Mar 2024, 16:16 Good morning,
I have the points that are taken away from all forum administrators instead of giving them.
For members it works correctly.
But in my ACP even if I have the Fr language file, it appears like this, see below

edit
I corrected the bug of the points which are withdrawn from the administrators, it was a bad configuration because of the misunderstanding of the forum ACP file


Paramètres généraux du forum
FORUM_POINT_SETTINGS

FORUM_POINT_SETTINGS_EXPLAIN

FORUM_PERTOPIC :
FORUM_PERTOPIC_EXPLAIN

FORUM_PERPOST :
FORUM_PERPOST_EXPLAIN

FORUM_PEREDIT :
FORUM_PEREDIT_EXPLAIN

FORUM_COST :
FORUM_COST_EXPLAIN

FORUM_COST_TOPIC :
FORUM_COST_TOPIC_EXPLAIN

FORUM_COST_POST :
FORUM_COST_POST_EXPLAIN

Thank you for your help

forum phpbb 3.3.11
extension 1.2.7
I'm updating this message a little, and I'm taking advantage of it because I have another problem and it may be related to permissions, administrators lose points when they post in all the forums, but not members

Thanks for your help

User avatar

Midway
Translators
Translators
Posts: 115
Joined: 08 Dec 2014, 10:27

Re: Ultimate Points Extension

Post by Midway »


User avatar

fastgil.com
Users
Users
Posts: 20
Joined: 17 Sep 2019, 19:10

Re: Ultimate Points Extension

Post by fastgil.com »

Midway wrote: 06 Apr 2024, 09:59 see this topic

viewtopic.php?p=31696#p31696
Thank you so much :buigen:

if you can also tell me, why do administrators lose points when they post a message?
Thanks again to you

User avatar

Midway
Translators
Translators
Posts: 115
Joined: 08 Dec 2014, 10:27

Re: Ultimate Points Extension

Post by Midway »

it depends on your configration in the acp


User avatar

Robbie626
Users
Users
Posts: 12
Joined: 14 Jan 2018, 10:25

Re: Ultimate Points Extension

Post by Robbie626 »

Quick question about a setting
Chance to win the Jackpot:
Here you can set the percentage to win the Jackpot. (the higher the value, the bigger the chance to win)

Does this setting mean a user has 50% of winning the base jackpot and 50% of winning the big jackpot based on ticket purchases? If I want to user to win the collective jackpot based on ticket purchases, do I need to set it to 100%? I am not sure if this setting is implying to bonus points higher than the big jackpot.

User avatar

Tiger21820
Users
Users
Posts: 13
Joined: 24 May 2020, 21:00

Re: Ultimate Points Extension

Post by Tiger21820 »

There's only one jackpot, and the setting is as it says: The higher the percentage, the more likely any one user who purchases at least one ticket will be chosen as the jackpot winner for that round! If set to 100%, every single round will have a jackpot winner! As far as I can tell, buying more than one ticket DOES NOT increase a user's chance of winning! Ticket purchases ONLY add the amount of points spent on those tickets to the progressive jackpot, and give the purchaser a chance of winning the jackpot for the current round, nothing more!

User avatar

zhangla
New user
New user
Posts: 3
Joined: 04 Nov 2023, 13:44

Re: Ultimate Points Extension

Post by zhangla »

Hello all,

Is there a way to display donation/distribution of points by a user to the post author on the bottom of that post? Assuming the donation/distribution is initiated by clicking on the "Donate" button below the author's profile while viewing the post?

Thanks.

User avatar

Dead Man
Users
Users
Posts: 19
Joined: 07 Jul 2024, 17:08

Re: Ultimate Points Extension

Post by Dead Man »

Installed this but I noticed that When one creates a Bank.
The BANK statistics button in the UCP makes that specific PAGE crash.

This is the path that crashes

Code: Select all

ucp.php?i=-dmzx-ultimatepoints-ucp-ucp_ultimatepoints_module&mode=bank
If you don't create a bank that Bank Option for statistics page works which I am guessing is because there's still no data to try and load.

SORT OF TEMP FIX encase others have same issue. So far only thing I could do was to HIDE the BANK MODULE from displaying in the Users UCP that way they never get the change to Press the Button. This way the BANK still stays enabled.

Path ACP>>SYSTEM>>MODULE MANAGEMENT>> USER CONTROL PANEL
Find the ULTIMATE POINTS module and CLICK IT and you will get this
Image
Next click the GEAR ICON to get to this page
Image

Change this to NO
Image

Now users should no longer have the Button in there UCP settings TAB
Image

User avatar

zhangla
New user
New user
Posts: 3
Joined: 04 Nov 2023, 13:44

Re: Ultimate Points Extension

Post by zhangla »

I set an individual forums with 10 points to pay to start a new topic, but this setting is never respected. When I posted a new topic using my test account, no point is being deducted.

Any suggestions?

Image

Post Reply