UserPoints Support in jDownloads -February 2025

Introduction

The organisation Remositry has a Joomla 4and 5 compatible version of a 'points system', called UserPoints, It is based on the now defunct Alpha User Points and Alta User Points used in Joomla 3. Critically UserPoints uses the same database structure as the Alpha and Alta versions. 

This article just deals with the interaction between jDownloads and UserPoints.  Numerous other aspects of UserPoints are available..
jDownloads 4.0.46 (released 23 Januaryl 2024) and UserPoints 4.2.15 (released 15 Februaryl 2025) are compatible with each other.
This article assumes you are using the above or later versions.
UserPoints has exactly the same database structure as the Joomla 3 versions of  'Alta User Points' or 'Alpha User Points' so upgrading from either of the Joomla 3 User Points versions, that is changing from either 'Alta User Points' or 'Alpha User Points', is staight forward.  It is understood that when Uninstalling them the database is retained. See the Appendix below for details about Joomla 3 versions.

User Points is supported in jDownloads though the use of five jD specific 'rules'.  The User Points component must of course be installed.  The official User Points documentation often refers to these 'rules' as plugins which is very confusing as they are not plugins in the normal Joomla! sense.  However there is no cause for concern as the User Points has a function in its control panel to connect up these rules.

The objective here is to provide a guide on setting up User Points as far as interaction with jDownloads is concerned.  These notes are not a guide to using User Points in other situations.  However it is useful to briefly describe the use of User Points in a jDownloads context.  Basically each time a user downloads then their User Points 'account' is reduced by a certain number of points.  This may be a fixed number of points per download or it may be the amount specified in the jD 'Price' field associated with that Download. Users may gain points by creating a new Download.  Also points may be given to the Download 'owner' each time a user downloads one of their Downloads.

UserPoints often mentions registered users.  If the word 'registered' has a lower case 'r' at the start it means the user is registered in UserPoints. It does not mean that the user is a member of the Joomla Registered User Group

This article assumes you are using jDownloads 4.0.46 or later and UserPoints 4.2.15 or later.

Become a Remository Observer


To Download User Points, you will need to create an Account on Remositry as a Remository Observer. 

Go to Remository Membership (opens in a new tab/window).

Then Click on button sign upThis takes you to a New User form.  So fill in the relevant details when done click on the button proccess subscription.
Remository Observer

Installation


Installation, and updating, of the User Points component is quite straight forward and is similar to installing  jDownloads.

To get User Points go to
 https://remository.com/downloads/A-Place-for-User-Points/ (opens in a new window/tab).

Scroll down to the 'Files in A Place for User Points' and click on 'User Points 4.2.5' or later.

The latest release of User Points from Remositry at the time of updating this article is version 4.2.5 .

files in a place
After installing User Points and before using it there are a few things to set up in both jDownloads and User Points configurations.

Setup jDownloads for User Points

In jDownloads click on the V4 button control panel and select button options, which is top right, then go to the tab specials tab. 
Then scroll down to  section "Settings for 'User Points' support (formerly: AlphaUserPoints/AltaUserPoints)" which needs completing.  Set  "Use 'User Points' Rules " to Yes. This reveals two further settings as shown below.
1. Use 'User Points rules?'  Set to Yes if you want to use in conjunction with jD. When set to Yes it reveals the next two settings.

2. Use files price field for points?  Select No to use a fixed number of points per download or Yes to use the number of points per download as specified in the jD Price field associated with every Download individually.

3. The final item is setting the 'hint' that is shown to the user if they do not have enough points.
User Points 41
For initial testing it is simplest to use No for the 'Use Downloads Price Field for Points' option.  This means that every Download will be affected, which may be inconvenient.  For serious use of the system using Yes is better as you can then have a mixture of 'free' and different charge rates for downloads.

Please note we have not tested the UserPoints 'Purchase Points for money' as that is not related to jDownloads.

Price Field For Points

This section is only relevant when you have set when you have set 'Use Downloads Price Field for Points' to Yes.
There are three stages to setting up price/download. The first step is to set the 'Use Downloads Price Field for Points' to Yes in the button specialstab as noted above.
V4 UserPoints Yes
The second step is to go again to the jDownloads jD Control Panel, and select V4 button user groups setting.  Next we select which User Group whose members will, in principle, be charged for a Download.  Generally I use the 'Registered' User Group. Repeat for other User Groups as may be required. For example click on Registered to select all users in that Group.  Next after selecting  the V4 tab groupcreate edit tab,scroll down to the 'tick box' region. In the V4 button additrional tab section. Ensure that option Price is set
V4 additionalTab Price

Set Download file Pricing

USERPOINTS has a pair of  'Rules' to govern how pricing for Downloads are actioned. Both maybe used.
There are two options here: one is to use a fixed price for a Download, the other is to use the Price field in the Download itself so it is specific for individual Downloads. If the price field in the Download is empty then the Fixed Price rule is used, otherwise the Price Field rule is used.  Just for clarity a price of 0.00 is not empty, it signifies a 'free' Download file.
To set the price field in a Download, the field  is the first item in the V4 button Additional data tab of each Download.

The Downloads list shows the Price in UserPoints. You are also able to sort by price as shown on the far right. To avoid potential 'confusion' always include two decimal places, even if they are both zero when setting an integer number of points..
V4 SetPriceV4 DownloadsListPrice

Viewing User Points





The User Points points dialogue is shown by the Summary Layout through the place holder {aup_points_info}.

This is already present in the Standard Summary layout as illustrated opposite.
V4 summary view




The next jD item to set is to ensure that the Summary page will be shown so that the user knows the number of points they are "paying".
This is set in jDownloads V4 button control button-V4 button optionsV4 tab frontend tab.  Scroll down to the Download Sequence.

Set  'Activate Direct Downloading' to No as shown opposite.  The other three fields may be set as required.  For more information please see the article Download actions: Direct, via Summary Page or via Download Details (opens in new widow/tab).
User Points 43
As noted above, the Summary page will inform the user of the cost of the Download in points.  In this example, as shown opposite, the cost is 1.75 points and the user's 'credit' is 5.00 points.  The Download button is shown.

Note: jDownloads shows a maximum of 2 decimal places.
User Points 65

However if the user does not have sufficient points then an advisory 'error' message shows the shortfall.

Also, of course, no Download button is present.
User Points 67C


Another situation is where users are not logged in or they have not yet been registered with UserPoints but the Download appears downloadable as a Download button is being shown. 

In this case because User Points is active and set up so that only registered users, who are also known as members, may download. This is detected and jD generates a message such as the one opposite.
User Points 77
There is one more aspect of jDownloads that may need to be considered. This is the 'Download Duration Restriction' in the V4 button limits tab02 tab of  V4 button user groups setting.  This setting allows a grace perod in which a user may make multiple downloads of the same item without incurring additional 'charges'. The default period is 60 minutes.  The objective of this parameter is to cover situations where a download may fail and may need to be repeated with no further points being charged.  You need to set this for each User Group that is allowed to Download from the front end. Typically this would be the Registered and Super User Groups.

See the note below about Download Managers.  In practice it means that if you are testing do not download the same Download each time as it will seem that the system is faulty!  Also do not confuse with the 'Activate Waiting Time' value in the 'Group Settings' tab of User Groups Settings.  The 'Activate Waiting Time' merely introduces a count down time before downloading starts.

Rules added by jDownloads

UserPoints operates by using a series of "Rules".  There are  five specific rules related to using jD with UserPoints as noted below.

This is a simple rule aimed to encourage users to add files for Downloading. The number of points added to the users account is specified as either fixed or in the Download price field.
V4 jD rules01
This pair of Rules basically 'charges' the user for each file downloaded. The rule pair are 'intelligent'. If the price field is found to have a value then the uses price rule is used.  Otherwise the regular 'User downloads a file' is used.

As discussed earlier the downloading only occurs if the user has a sufficient number of points.

Recall that if the word 'registered' begins with a lower case 'r' it is a UserPoints 'registered user' who is in the UserPoints list of Users as shown by theV4 button userslist.

It does NOT mean they are members of the Joomla Registered User Group
V4 jD rules02



This pair of rules is interesting as they give points to the user who originally uploaded the file now being Downloaded Download.  It could be thought of as a 'royalty' or 'fee'.

As above one uses fixed points and the other uses the points in the Download 'price' field.

Again the software is 'intelligent' as it checks if the Download price field is empty or has a value. It then selects the appropriate rule, with the price field assignment taking peference if it is not null.
V4 jD rules03

Setting Up UserPoints

After installing UserPoints you may also have a message about Synchronising Users with User Points. But do not do this now.  Please first read the notes below.
After installing V4 button user points go to the  userPointsControlPanelButton.  This has a large number of icons to give access to individual rules as illustrated opposite.

If you click on the Rules icon as indicated opposite, or simply on the  you will see the detailed list.  Also note that jDownloads has added 5 specific jDownload related rules have been added.
A better way of accesing the Detailed Rules is to click on the V4 rules list03 Button.
V4 user points control panel
The first thing to do with UserPoints is to click on the userPointsControlPanelButtonand then use the button options button which, in common with other Components, is located at the top righthand side of the Control Panel.
NB The images shown on the right are actually shown as one long form!

Select the V4 tab generaltab as it allows setting the Points Format, and whether accounts are allowed to go negative.

Allowing negative accounts is generally a poor idea as it can lead to users being able to download multiple items at no cost to themselves!

Setting the default format is sensible if you are equating points to a financial charge.

Note that jDownloads only shows 2 decimal places with UserPoints items.

v4 general settings01
V4 general settings02
At the top of the General tab you may also set your Update Key.  User Points does not use the Regular Joomla update mechanism.
V4 update key
User Points actions are controlled by a set of Rules which give it a very wide variety of uses.

To access these click on the V4 button User Points control panelthen on V4 button rules02at the top.

There are presently 23 rules in UserPoints, initially many are 'Unpublished

To modify the rule parameters click on the Rule name.
 
UP rules01

Give Existing registered users Points


Click on V4 button users list01 to show existing users.

As would be expected they have no points.
V4 userpoints initial users01

To add points select one of the users, jdx45-admin as shown below. 
V4 userpoints initial users02
Then click on the Custom Points button and enter the number of point to allocate to that user. V4 userpoints initial users03
Now click on the Save & Close button.
As shown opposite jdx45-admin now has 15 points.

Of course one could have selected all of the existing users and given each the same number points.

V4 userpoints initial users04
TEXTIMAGE

Give New User 'starter' points

In order to give new users an initial grant of starter points then it is necessary to edit the appropriate rule.
To do this select the V4 button control panel and click on the on either V4 button rules02or  V4 button rules.
There are 22 rules when jDownloads is installed.   Note that many of the rules are initially unpublished.

Scroll down the list of rules until you find the 'New User' Rule as illustrated below.  Make sure it is Published, that is it shows the UserPoints published icon User Points 69.  If it shows 'Unpublished' UP 69A then click on the icon to change status to published.
User Points00B

Next click on the New User link which brings up the the details section of the New User rule as shown opposite.

So if you are going to give all new users a starter number of points then edit the Points field as appropriate, say set to 5.00 as a 'welcome'.

Note this field has two decimal places like most "currencies".

When done click on V4 button save close.

User Points00C
UserPoints searches automatically for all users who are able to login and creates a report as shown opposite.

Before stating it gives a warning, as shown below, about the time it might take. Click on OK to acknowledge

V4 warning adding users
V4 report afteruser points added

Add Users




When UserPoints was installed the Joomla test site had 3 users as shown opposite. Each had been given 5 new 'welcome' points.
V4 userpoints initial users01
Later another user was added to Joomla.
The extra user was added immediately to UserPoints without any action except to click onV4 button userslist.

Note that the new user, jdx45-supervisor, has the 5 welcome points added.

As users are added to Joomla then they are automaticaly added to UsePoints if the New User Rule is enabled.  To inhibit this automatic action then disable the rule.

Of curse if some users have been added in error the disable them in UserPoints.
V4 user points existing users01A

Give Users Bonus Points

There are a variety of ways to give users points.  One simple method is to add 'Bonus' points after setting some value, 3.00 in this example, in the Bonus rule as shown opposite.
V4 add bonus01
To give bonus Points to a user goto the V4 button userslist and select the users by clicking on the 'tick' box. Then click on the V4 button bonus button at the top of the view.
V4 add bonus02
If you click on V4 button userslist again it shows that user jdx46-uploader now has 7.30 points, that is 3.00 more. You may of course select multiple users.
V4 add bonus03

Using a Download Manager


If you are using a download manager on your local machine then you might find that multiple 'charges' are being made against the user points. 

This is because many 'download managers' open multiple 'streams'.   Unless you set things up in an appropriate manner then each 'stream' appears as if it were a fresh downloading of the original file. 

Hence there is a danger of multiple download charges! 

The solution is to change the Method field of the 'User downloads a file (uses price)' rule so that the user is only charged once/day for downloading that file, or another appropriate selection, such as illustrated below. 

UserPoints14A
Note the 'charge once/day' attribute is applicable to each download individually. 

That is if a user makes multiple downloads of the same Download they will only be charged once that day for that Download.

If that user downloads another Download then they will be charged for the second Download.  If the user downloads multiple times in the selected period then these do not create an User Points event.

Other options include 'once per user' meaning that file is free for that user forever after.  Further choices include once/week, once/month and once/year.  This period could be the duration of free updates after the initial purchase.

Example


When you get to the Summary view, there is now an additional message "This Download costs 1.70 points. You currently have 5 points."

As we have sufficient points then the download can proceed.
example01

When you do not have suficient points Then a message appears advising you about the situation as illustrated opposite. 

There is of course no Download button.


example02

Updating UserPoints

Get update key

There are two stages, the first is getting your personal update Key - this Stage is a one time activity. The key is located in UserPoints profile on the Remository web site.
The second Stage is the usual Joomla update.
 So after logging in to Remository, the Main Menu will show 'My Account' as illustrated in the first image opposite.  Click on Profile as indicated.
This will then show your personal update server key - which is in this example is partially blocked out!
Use Cntl-V or similar to take a copy  of the key.
V4 profile02V4 profile03
Next  click on the UserPoints button AUP control panel.  Next click on thebutton optionsbutton which is at top right.

Then in the General tab copy your personal key into the Update Key field as illustrated opposite. 
V4 profile05

UserPoints Update

Click on the V4 button system button then in the V4 update section section.  Wait while Joomla searches if there are any Extension updates outstanding.

In this example there is one extension that has an outstanding Extension update available.

V4 update01
Click on V4 button update extensions which in this example shows that there is an updated version of UserPoints.

So click on the tick and then on the link as indicated opposite.
V4 update02
Then click on the V4 update03 button, which, if all is OK, will give a message such as shown opposite.
V4 update04
Joomla only checks for updates periodically, so if no update is indicated then as a double check click on V4 button update extensions button.
This will take you to the Check for Updates page as indicated opposite.

So click on V4 button check for updates Button.
V4 check for updates01

Appendix - Uninstalling User Points

To uninstall all of UserPoints then, like jDownloads, just uninstall the Component.
First click on V4 button system, then in the V4 button manage tab section click on the V4 button Extensions.  Then in the Search field enter userpoints as shown below and click on the search button.
V4 userpoints searchThis shows a view as illustrated opposite.
UserPoints Uninstall01
1.Select the component
2.Click on the V4 button uninstall inactive button which turns red V4 button uninstall when you hover over it.

After accepting an 'Are you sure' message, all parts of UserPoints, except the database, will be uninstalled.
uninstall done message

Appendix - User Points for Joomla 3

The original User Points developers, Alphauserpoints, are no longer active.

A free Joomla V3 version of AltaUserPoints is supported by Nordmograph who are specialist Joomla Extension Suppliers,  www.nordmograph.com/extensions/  (opens in a new window/tab). There is a Tag Cloud on the page so click on either the FREE or the ALTAUSERPOINTS tag.  Nordmograph also have some free and paid extensions for extra User Points facilities if you should wish to use elsewhere.

An alternative and simpler methodto get AltaUserPoints for Joomla 3 by Nordmograph is to use the Joomla Extensions Directory (JED) at http://extensions.joomla.org/extensions/extension/e-commerce/credits-a-point-systems/altauserpoints (opens in a new window/tab). Nordmograph do not have a Joomla 4 version.

Changing to UserPoints in Joomla 4 and above

The actual change is really simple because:
  1. AltaUserPoints, Alppha UserPoints and User Points all use the same database structure;
  2. Also they do not remove the database tables when they are uninstalled.
The procedure is:
  1. Make a site backup just in case!
  2. Uninstall Alpha/Alta user Points whilst still on Joomla 3 as below
    1. Go to Joomla! Extensions - Manage, and then select Manage on the pulldown.
    2. Search for Alpha, which will list the AlphaUserPoints Component and several plugins and modules.
    3. Select All and then Uninstall.  You should get messages for the component uninstall and for multiple plugin and module uninstalls.
  3. Now convert to Joomla 4/5.
  4. Use normal sequence to install UserPoints, this will pick up the previous entries from the database.

ColinM Rewritten September 2019 updated August 2021, restructured July 2023, revisedV4 January 2024, March 2024, June 2024, November 2024, February 2025

Print Email

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.