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>
Previous topicNext topic
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

exemplary
Users
Users
Status: Offline
User theme: Dark
Posts: 4
Joined: Mar 3rd, '24, 10:09
    Windows 8.1 Firefox

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 ?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

exemplary
Users
Users
Status: Offline
User theme: Dark
Posts: 4
Joined: Mar 3rd, '24, 10:09
    Windows 8.1 Firefox

Re: Ultimate Points Extension

Post by exemplary »

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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

schupacek
New user
New user
Status: Offline
User theme: Dark
Posts: 1
Joined: Mar 27th, '24, 10:10
    Windows 10 Chrome

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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Azaman
Users
Users
Status: Offline
User theme: Dark
Posts: 4
Joined: Apr 15th, '23, 18:22
    Windows 10 Chrome

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.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Azaman
Users
Users
Status: Offline
User theme: Dark
Posts: 4
Joined: Apr 15th, '23, 18:22
    Windows 10 Chrome

Re: Ultimate Points Extension

Post by Azaman »

miri4ever wrote: Jul 18th, '21, 21:12
picaron wrote: Apr 22nd, '21, 01: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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

fastgil.com
Users
Users
Status: Offline
User theme: Dark
Posts: 20
Joined: Sep 17th, '19, 17:10
    Windows 7 Firefox

Re: Ultimate Points Extension

Post by fastgil.com »

fastgil.com wrote: Mar 1st, '24, 15: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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Midway
Translators
Translators
Status: Offline
User theme: Dark
Posts: 115
Joined: Dec 8th, '14, 09:27
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by Midway »


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

fastgil.com
Users
Users
Status: Offline
User theme: Dark
Posts: 20
Joined: Sep 17th, '19, 17:10
    Windows 10 Chrome

Re: Ultimate Points Extension

Post by fastgil.com »

Midway wrote: Apr 6th, '24, 07:59 see this topic

Ultimate Points Extension
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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Midway
Translators
Translators
Status: Offline
User theme: Dark
Posts: 115
Joined: Dec 8th, '14, 09:27
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by Midway »

It depends on your configration in the acp

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

SpIdErPiGgY
Users
Users
Status: Offline
User theme: Dark
Posts: 120
Joined: Feb 4th, '21, 22:54
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by SpIdErPiGgY »

🌐 phpBB Extensions in Dutch
✦ Free translations, updates, support and practical tutorials for phpBB.
💚 Support this project on Ko-fi

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Robbie626
Users
Users
Status: Offline
User theme: Dark
Posts: 12
Joined: Jan 14th, '18, 09:25
    Windows 10 Chrome

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.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Tiger21820
Users
Users
Status: Offline
User theme: Dark
Posts: 13
Joined: May 24th, '20, 19:00
    Windows 10 Firefox

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!

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

zhangla
New user
New user
Status: Offline
User theme: Dark
Posts: 3
Joined: Nov 4th, '23, 12:44
    Windows 10 Chrome

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.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Dead Man
Users
Users
Status: Offline
User theme: Dark
Posts: 19
Joined: Jul 7th, '24, 15:08
    Windows 10 Chrome

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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

zhangla
New user
New user
Status: Offline
User theme: Dark
Posts: 3
Joined: Nov 4th, '23, 12:44
    Windows 10 Chrome

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

Previous topicNext topic

Subscribers

User avatar
AlvoErrado2
User avatar
Anders
User avatar
artplat17
User avatar
Azaman
User avatar
benchess
User avatar
Bingo
User avatar
Brunchs
User avatar
capalex65
User avatar
cemorhon
User avatar
cgartfactory
User avatar
CharLee
User avatar
chrisc93
User avatar
Coryu
User avatar
Crajkaro
User avatar
cyberpaul
User avatar
dani50
User avatar
darkz
User avatar
dathwerth
User avatar
Dead Man
User avatar
ditch
User avatar
dmzx
User avatar
Dopply
User avatar
EaglesTruth
User avatar
Emmer
User avatar
Encule
User avatar
eunaumtenhoid
User avatar
exemplary
User avatar
faroud
User avatar
fastgil.com
User avatar
Fredisland
User avatar
g0lang
User avatar
gamestnforum
User avatar
Ghost
User avatar
Gratiano
User avatar
Hareon
User avatar
Herman
User avatar
heyokajan
User avatar
hiriu
User avatar
Hitomi
User avatar
hungnhhn
User avatar
Interesting
User avatar
iosis7613
User avatar
ironside
User avatar
ivailo95
User avatar
jan_2017
User avatar
Joost
User avatar
Josephpo
User avatar
JustAlpha
User avatar
Kakagawa
User avatar
Kami-sama
User avatar
kangeroe
User avatar
kaspir
User avatar
kel
User avatar
Ketchup
User avatar
kikuya
User avatar
killfrenzy
User avatar
LegendPH
User avatar
lenz
User avatar
lgmf
User avatar
lichang422
User avatar
limp8976
User avatar
little
User avatar
Lonson
User avatar
luca17000
User avatar
Maclobster
User avatar
martin
User avatar
mati4458
User avatar
Merlino
User avatar
Micha
User avatar
Midway
User avatar
Mike.RO
User avatar
miri4ever
User avatar
mortalites
User avatar
mulano77
User avatar
muzair
User avatar
Naija
User avatar
NAPWR
User avatar
ninouee
User avatar
nncuong
User avatar
odpro
User avatar
oronzocanà
User avatar
Patitoloko
User avatar
petejb
User avatar
picaron
User avatar
ramboagent
User avatar
ramp
User avatar
Red777
User avatar
redragon
User avatar
Restless Rancor
User avatar
riofriz
User avatar
Robbie626
User avatar
roiebh
User avatar
Rootzilla
User avatar
RTI kartname
User avatar
SalyaDarken
User avatar
schupacek
User avatar
scriptman
User avatar
seacoast
User avatar
Shyuan
User avatar
simplejiro
User avatar
skuadsco
User avatar
Sniper_E
User avatar
SpIdErPiGgY
User avatar
spiritatbay
User avatar
Stellarfriend
User avatar
Stine
User avatar
SupplyNDemand
User avatar
Tarantino
User avatar
theia
User avatar
tiboo55
User avatar
tnt
User avatar
umi
User avatar
v1rtu0so
User avatar
Venatus Vinco
User avatar
Vito875
User avatar
Voice4Vision
User avatar
weblord
User avatar
WildestDrake
User avatar
WISHEXEC
User avatar
xMaveeeX
User avatar
xvi
User avatar
Yemmy
User avatar
YoOoster
User avatar
zhangla
User avatar
[Mikk]