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

SupplyNDemand
Users
Users
Posts: 2
Joined: 07 Mar 2017, 00:50
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by SupplyNDemand »

Its def worth the wait thanks for the reply

User avatar

simplejiro
Users
Users
Posts: 7
Joined: 10 May 2017, 13:11
    Windows 7 Chrome

Re: Ultimate Points Extension

Post by simplejiro »

Hi, possible to remove the .00 for the points? I prefer to show it as 10 points instead of 10.00 points.

User avatar

v1rtu0so
Users
Users
Posts: 15
Joined: 28 May 2016, 00:23
    Mac OS X Chrome

Re: Ultimate Points Extension

Post by v1rtu0so »

Hey dmzx, you had helped me on the previous version of phpbb and extension 3.1.x of this mod. I am hoping I might get your help once more. I am looking to add a couple of custom user fields to my points_list.html. I would also like to directly modify the users coin balances from within this list as well. Here are snippets of the old code you helped me with

controller/userlist.php

Code: Select all

		$sql = 'SELECT *
			FROM ' . USERS_TABLE . '
			WHERE user_points > 0
			ORDER BY user_points DESC';
		$result = $this->db->sql_query_limit($sql, $limit, $start);

		while ($row = $this->db->sql_fetchrow($result))
		{
			$grab         	= $phpbb_container->get('profilefields.manager');
			$profile_fields = $grab->grab_profile_fields_data($row['user_id']);
			$ark_name 		= $profile_fields[$row['user_id']]['ark_ingamename']['value'];
			$ark_id 		= $profile_fields[$row['user_id']]['ark_specimenid']['value'];
			
			$this->template->assign_block_vars('ultimatelist', array(
				'USERNAME'		=> get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
				'AVATAR'		=> phpbb_get_user_avatar($row),
				'POINT'			=> sprintf($this->functions_points->number_format_points($row['user_points'])),
				'U_ARK_NAME'	=> $ark_name ? $ark_name : false,
				'U_ARK_ID'		=> $ark_id ? $ark_id : false,
				'L_DONATE'				=> ($auth->acl_get('a_') || $auth->acl_get('m_chg_points')) ? sprintf($this->user->lang['POINTS_DONATE']) : '',
				'U_POINTS_DONATE'		=> ($auth->acl_get('a_') || $auth->acl_get('m_chg_points')) ? $this->helper->route('dmzx_ultimatepoints_controller', array('mode' => 'transfer', 'i' => $row['user_id'], 'adm_points' => '1')) : '',
				'L_MOD_USER_POINTS'		=> ($auth->acl_get('a_') || $auth->acl_get('m_chg_points')) ? sprintf($this->user->lang['POINTS_MODIFY']) : '',
				'U_POINTS_MODIFY'		=> ($auth->acl_get('a_') || $auth->acl_get('m_chg_points')) ? $this->helper->route('dmzx_ultimatepoints_controller', array('mode' => 'points_edit', 'user_id' => $row['user_id'], 'adm_points' => '1')) : '',
				)
			);
		}
styles/.../template/points/points_list.html

Code: Select all

<div class="forumbg forumbg-table">
	<div class="inner">
		<table class="table2">
			<thead>
				<tr>
					<th class="name">{L_USERNAME}</th>
					<th class="joined">{L_COIN_BALANCE}</th>
					<th class="joined">{L_ARK_NAME}</th>
					<th class="joined">{L_ARK_ID}</th>
					<!-- IF MODIFY --><th class="joined">modify</th><!-- ENDIF -->
				</tr>
			</thead>
			<tbody>
				<!-- BEGIN ultimatelist -->
				<tr class="<!-- IF ultimatelist.S_ROW_COUNT is even -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
					<td><!-- Comment out Avatar
						<div class="rich-user-avatar">
							<!-- IF ultimatelist.AVATAR -->{ultimatelist.AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" width="60px;" height="60px;" alt="" /><!-- ENDIF -->
						</div> -->
						<b>{ultimatelist.USERNAME}</b>
					</td>
					<td>{ultimatelist.POINT}</td>
					<td>{ultimatelist.U_ARK_NAME}</td>
					<td>{ultimatelist.U_ARK_ID}</td>
					<!-- IF MODIFY --><td><a href="{ultimatelist.U_POINTS_DONATE}" style="font-size:0.875em; font-weight:500;">{ultimatelist.L_DONATE}</a> <a href="{ultimatelist.U_POINTS_MODIFY}" style="font-size:0.875em; font-weight:500;">{ultimatelist.L_MOD_USER_POINTS}</a></td><!-- ENDIF -->
				</tr>
				<!-- BEGINELSE -->
				<tr class="bg1">
					<td colspan="4">{L_POINTS_LIST_NO_USER}</td>
				</tr>
				<!-- END ultimatelist -->
			</tbody>
		</table>
	</div>
</div>
I would love to get this working again. I have the custom user fields in my ACP both set as text fields with the names/ids of: ark_ingamename and ark_specimenid

Thank you so much!

User avatar

JustAlpha
Users
Users
Posts: 1
Joined: 26 May 2017, 10:49
    Windows 7 Chrome

Re: Ultimate Points Extension

Post by JustAlpha »

Hey, is it Possible to Change the Language of this extension?

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Ultimate Points Extension

Post by martin »

Create a new lang file in the lang you need and it should detect it within your browser.

(hate this ext :rolling: )
Image

User avatar

Vito875
Users
Users
Posts: 3
Joined: 06 Jun 2017, 21:45
    Windows 10 Chrome

Re: Ultimate Points Extension

Post by Vito875 »

Hi, first sorry for my really bad english!
I´ve have found a bug in this extension.

In my forum, guests can create and reply to posts.
If a guest writes something and the extension is activated, the group "Anonymous" gets some points.

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Ultimate Points Extension

Post by martin »

Disallow guests in the points ext settings.

User avatar

Vito875
Users
Users
Posts: 3
Joined: 06 Jun 2017, 21:45
    Windows 10 Chrome

Re: Ultimate Points Extension

Post by Vito875 »

martin wrote: 09 Jun 2017, 17:17 Disallow guests in the points ext settings.
sorry can´t find it
Image
Image

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Ultimate Points Extension

Post by martin »

I shall install it and take a look at i cant read the images you have posted.

Your right guests are involved in the points system i'l see if there is a simple and fast fix like kill the user id 1.


Hartenheer
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by Hartenheer »

Vreemd, ik wil het op mijn testforum om het uit te proberen.
Heb geïnstalleerd met ftp zoals het geschreven staan.
Maar zie het nog steeds niet


Strange, I want it on my test forum to try it out.
Have installed with ftp as it is written.
But still do not see it

User avatar

Solidjeuh
Donator
Donator
Posts: 348
Joined: 13 Dec 2014, 02:40
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by Solidjeuh »

Hartenheer wrote: 10 Jun 2017, 17:45 Vreemd, ik wil het op mijn testforum om het uit te proberen.
Heb geïnstalleerd met ftp zoals het geschreven staan.
Maar zie het nog steeds niet


Strange, I want it on my test forum to try it out.
Have installed with ftp as it is written.
But still do not see it
heb je de juiste map structuur?
/ext/dmzx/ultimatepoints
Forum voor NL Extensie vertalingen ---> https://www.supportforum.be
----------------------------------------------------------------------------


Hartenheer
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by Hartenheer »

Solidjeuh wrote: 13 Jun 2017, 16:08
Hartenheer wrote: 10 Jun 2017, 17:45 Vreemd, ik wil het op mijn testforum om het uit te proberen.
Heb geïnstalleerd met ftp zoals het geschreven staan.
Maar zie het nog steeds niet


Strange, I want it on my test forum to try it out.
Have installed with ftp as it is written.
But still do not see it
heb je de juiste map structuur?
/ext/dmzx/ultimatepoints
Ja, ik snap echt niet wat ik fout doe.
Heb het nog eens opnieuw gebrobeert, maa helaas zie ik het niet verschijnen.
Image

User avatar

Solidjeuh
Donator
Donator
Posts: 348
Joined: 13 Dec 2014, 02:40
    Android Firefox

Re: Ultimate Points Extension

Post by Solidjeuh »

En ben je zeker dat alles goed geupload is?
Are you sure everything is uploaded correctly?

[ Post made via Android ] Image


Hartenheer
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by Hartenheer »

Solidjeuh wrote: 13 Jun 2017, 17:06 En ben je zeker dat alles goed geupload is?
Are you sure everything is uploaded correctly?

[ Post made via Android ] Image
Het enige in je leven is dat je ooit dood gaat.
Zal het nog een keer opnieuw uploaden van deze site, uitpakken en uploaden.
als het dan nog niet lukt geeft ik het op.


Hartenheer
    Windows 10 Firefox

Re: Ultimate Points Extension

Post by Hartenheer »

Hartenheer wrote: 13 Jun 2017, 17:22
Solidjeuh wrote: 13 Jun 2017, 17:06 En ben je zeker dat alles goed geupload is?
Are you sure everything is uploaded correctly?

[ Post made via Android ] Image
Het enige in je leven is dat je ooit dood gaat.
Zal het nog een keer opnieuw uploaden van deze site, uitpakken en uploaden.
als het dan nog niet lukt geeft ik het op.
Helaas hetzelfde, geen resultaat. :oops:

Post Reply Previous topicNext topic