Introduction
This article just deals with the interaction between jDownloads and UserPoints. Numerous other aspects of UserPoints are available.
Tests were carried out using Joomla 5.2.4
This article assumes you are using the above or later versions.
User Points is supported in jDownloads though the use of five jD specific 'rules'. 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 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. 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 'creator' 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.
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

UserPoints 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 .

Add jDownloads Rules
To install these then click on
.The five jDownloads rules are noted below:
Setup jDownloads for User Points
Now scroll down to section
2. With option 'Use Downloads 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 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 to actually download.

Publish Rules
. Before you are able to use a rule it must be published. As indicated in the image below click on the 
Set Price in a Download
The Administration Downloads list shows the Price, which is in User Points. You are also able to sort by price as shown on the far right.


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.

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
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).

Note: jDownloads shows a maximum of 2 decimal places.

Also, of course, the Download button is not present.


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.
Setting Up UserPoints
If you click on the Rules icon as indicated opposite, you will see the detailed list of rules. Also note that the five specific jDownload related rules have been added.
An alternative way of accesing the Detailed Rules is to click on the

NB The images shown on the right are actually shown as one long form!
Select the


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.

To access these click on the
There are presently 23 rules in UserPoints, initially many are 'Unpublished".
To modify the rule parameters click on the Rule name.
Note the jDownloads rules do nor]t have an icon but they do of course appear in the detailed rule list.

Give Existing Members Points
Click on
As would be expected they have no points.


Then click on the
Now click on the

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

Give New User 'starter' points
To do this select the
. 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

Next click on the New User link, as indiated above. This 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 the

to find the list of users, often referred to a registered or members.UserPoints searches automatically for all users who are able to login in to Joomla. It creates a report such as shown opposite.

Because a site may have many users who are able to login then before stating the very first time it gives a warning, as shown opposite, about the time it might take.
Click on OK to acknowledge

Add Users
When UserPoints was installed the Joomla test site had 3 users as shown opposite. Each had been given 5 new 'welcome' points.

The user was added to UserPoints without any action.
Note that the new user, jdx45-reg, has the 5 welcome points added.
As users are added to Joomla then they are automatically added to UsePoints if the New User Rule is enabled. To inhibit this automatic action then disable the rule.
Of course if some users have been added in error then disable them in UserPoints.

Give Users Bonus Points



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.


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

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.

Updating UserPoints
Get update key
The second Stage is the usual Joomla update.
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.


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

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

So click on the tick and then on the link as indicated opposite.


This will take you to the Check for Updates page as indicated opposite.
So click on

Appendix - Uninstalling User Points
. Then in the Search field enter userpoints as shown below and click on the search button.
Scroll down to find the UserPoints Component.Select the Component
This shows a view as illustrated opposite.



Appendix - User Points for Joomla 3
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.
Changing from AltaUserPoints or Alpha UserPoints to UserPoints in Joomla 4 and above
- AltaUserPoints, Alpha UserPoints and User Points all use the same database structure;
- Also they do not remove the database tables when they are uninstalled.
- Make a site backup just in case!
- Uninstall Alpha/Alta user Points whilst still on Joomla 3 as below
- Go to Joomla! Extensions - Manage, and then select Manage on the pulldown.
- Search for Alpha, which will list the AlphaUserPoints Component and several plugins and modules.
- Select All and then Uninstall. You should get messages for the component uninstall and for multiple plugin and module uninstalls.
- Now convert to Joomla 4/5.
- Use normal sequence to install UserPoints, this will pick up the previous entries from the database.
