User Points Integration with Membership Pro

Submitted On: 12 Aug 2024
File Size: 2
Downloads: 27
File Version: 1.1.1
File Author: Martin Brampton

Install this plugin using the usual Joomla install facility . It will integrate UserPoints and Membership Pro. After you have installed it, go to the UserPoints admin control panel and run "Auto detect new rules". You should then find two new rules in UserPoints. The plugin also provides the referral function where points will be awarded to the user who referred the person buying a Membership Pro Plan.

One of the new rules relates to these referral points. You must check the "Unique function name" carefully - it ends with a number. Make sure the number corresponds to the ID number of the Membership Pro Plan for which you want to award referral points. If you want to award points to more than one plan, make copies of this rule, changing the "Unique function name" so that the number at the end matches the ID in Membership Pro. Set the number of points to be awarded. Normally, you would leave "Allow referral points" as "no" - so that the referral points do not trigger further awards. Carefully check all the other parameters for the rule.

The other rule relates to accepting points as payment for a Membership Plan. Check all the fields, but you should not need to make any changes. What you must do for payment by points to work is to install the "Payment Plugin to pay for Membership Pro subscriptions with points" into Membership Pro. NOTE: It is not a Joomla plugin, but must be installed using the Membership Pro facility for adding payment methods.

File Rating (0/0)
Log in to cast your vote
Be the first to comment! Please sign in or register.

RELATED DOCUMENTS

This report falls under the following categories. Click on a link below to explore similar documents.

ProductLines: UserPoints
Martin Brampton

Offline

Sorry, but we're currently offline. Please fill out the form below, and we will get back to you as soon as possible.

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.

3.748MBMemory Usage175msRequest Duration
Joomla! Version5.2.5
PHP Version8.2.28
Identityguest
Response200
Templatecassiopeia
Database
Server
mysql
Version
10.11.11-MariaDB-0+deb12u1-log
Collation
utf8mb4_unicode_ci
Conn Collation
utf8mb4_general_ci
$_GET
array:2 [ "view" => "fileinfo" "id" => 738 ]
$_POST
[]
$_SESSION
array:2 [ "aliro_auth" => array:5 [ "subj_found" => & array:1 [ "remosFolder" => array:2...
$_COOKIE
array:1 [ "d5da79bc0b36f7f37f1d1beb5d2efb16" => "pnc2hrvdtglipbl8ab7ii24qog" ]
$_SERVER
array:55 [ "USER" => "remos" "HOME" => "/var/www/remos" "SCRIPT_NAME" => "" "REQUEST_URI" =>...
session
array:3 [ "counter" => 2 "timer" => array:3 [ "start" => 1742078944 "last" => 1742078944...
registry
array:3 [ "data" => [] "initialized" => false "separator" => "." ]
user
array:21 [ "id" => 0 "name" => null "username" => null "email" => null "password" => "***r...
gtag
false
  • afterLoad (73.79KB) (1.44ms)
  • afterInitialise (1.04MB) (35.05ms)
  • afterRoute (347.37KB) (15.8ms)
  • beforeRenderComponent com_remository (46.16KB) (2.84ms)
  • afterRenderComponent com_remository (1.21MB) (75.49ms)
  • afterDispatch (2.27KB) (420μs)
  • beforeRenderRawModule mod_menu (Main Menu) (59.41KB) (6.57ms)
  • afterRenderRawModule mod_menu (Main Menu) (188.33KB) (7.02ms)
  • beforeRenderRawModule mod_login (Login Form) (976B) (298μs)
  • afterRenderRawModule mod_login (Login Form) (38.06KB) (2.57ms)
  • beforeRenderRawModule mod_remositorytree (Explore Repository) (704B) (65μs)
  • afterRenderRawModule mod_remositorytree (Explore Repository) (10.34KB) (5.13ms)
  • beforeRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (4.79KB) (561μs)
  • afterRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (44.58KB) (1.68ms)
  • beforeRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (736B) (15μs)
  • Before Access::preloadComponents (all components) (12.5KB) (1.7ms)
  • After Access::preloadComponents (all components) (114.68KB) (2.09ms)
  • Before Access::getAssetRules (id:1 name:root.1) (536B) (49μs)
  • After Access::getAssetRules (id:1 name:root.1) (7.05KB) (102μs)
  • afterRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (520B) (363μs)
  • beforeRenderModule mod_menu (Main Menu) (12.26KB) (225μs)
  • afterRenderModule mod_menu (Main Menu) (4.19KB) (478μs)
  • beforeRenderModule mod_login (Login Form) (640B) (50μs)
  • afterRenderModule mod_login (Login Form) (6.47KB) (255μs)
  • beforeRenderModule mod_remositorytree (Explore Repository) (5.86KB) (36μs)
  • afterRenderModule mod_remositorytree (Explore Repository) (4.48KB) (171μs)
  • beforeRenderRawModule mod_breadcrumbs (Breadcrumbs) (7.02KB) (292μs)
  • afterRenderRawModule mod_breadcrumbs (Breadcrumbs) (12.23KB) (2.87ms)
  • beforeRenderModule mod_breadcrumbs (Breadcrumbs) (704B) (19μs)
  • afterRenderModule mod_breadcrumbs (Breadcrumbs) (3.94KB) (280μs)
  • afterRender (77.42KB) (9.42ms)
  • 1 x afterRenderComponent com_remository (1.21MB) (43.07%)
    75.49ms
    1 x afterInitialise (1.04MB) (20%)
    35.05ms
    1 x afterRoute (347.37KB) (9.02%)
    15.80ms
    1 x afterRender (77.42KB) (5.37%)
    9.42ms
    1 x afterRenderRawModule mod_menu (Main Menu) (188.33KB) (4.01%)
    7.02ms
    1 x beforeRenderRawModule mod_menu (Main Menu) (59.41KB) (3.75%)
    6.57ms
    1 x afterRenderRawModule mod_remositorytree (Explore Repository) (10.34KB) (2.93%)
    5.13ms
    1 x afterRenderRawModule mod_breadcrumbs (Breadcrumbs) (12.23KB) (1.64%)
    2.87ms
    1 x beforeRenderComponent com_remository (46.16KB) (1.62%)
    2.84ms
    1 x afterRenderRawModule mod_login (Login Form) (38.06KB) (1.47%)
    2.57ms
    1 x After Access::preloadComponents (all components) (114.68KB) (1.19%)
    2.09ms
    1 x Before Access::preloadComponents (all components) (12.5KB) (0.97%)
    1.70ms
    1 x afterRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (44.58KB) (0.96%)
    1.68ms
    1 x afterLoad (73.79KB) (0.82%)
    1.44ms
    1 x beforeRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (4.79KB) (0.32%)
    561μs
    1 x afterRenderModule mod_menu (Main Menu) (4.19KB) (0.27%)
    478μs
    1 x afterDispatch (2.27KB) (0.24%)
    420μs
    1 x afterRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (520B) (0.21%)
    363μs
    1 x beforeRenderRawModule mod_login (Login Form) (976B) (0.17%)
    298μs
    1 x beforeRenderRawModule mod_breadcrumbs (Breadcrumbs) (7.02KB) (0.17%)
    292μs
    1 x afterRenderModule mod_breadcrumbs (Breadcrumbs) (3.94KB) (0.16%)
    280μs
    1 x afterRenderModule mod_login (Login Form) (6.47KB) (0.15%)
    255μs
    1 x beforeRenderModule mod_menu (Main Menu) (12.26KB) (0.13%)
    225μs
    1 x afterRenderModule mod_remositorytree (Explore Repository) (4.48KB) (0.1%)
    171μs
    1 x After Access::getAssetRules (id:1 name:root.1) (7.05KB) (0.06%)
    102μs
    1 x beforeRenderRawModule mod_remositorytree (Explore Repository) (704B) (0.04%)
    65μs
    1 x beforeRenderModule mod_login (Login Form) (640B) (0.03%)
    50μs
    1 x Before Access::getAssetRules (id:1 name:root.1) (536B) (0.03%)
    49μs
    1 x beforeRenderModule mod_remositorytree (Explore Repository) (5.86KB) (0.02%)
    36μs
    1 x beforeRenderModule mod_breadcrumbs (Breadcrumbs) (704B) (0.01%)
    19μs
    1 x beforeRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (736B) (0.01%)
    15μs
32 statements were executed, 4 of which were duplicates, 28 unique29.82ms86.7KB
  • SELECT @@SESSION.sql_mode;236μs968B/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:308Copy
  • SELECT `data` FROM `jos_session` WHERE `session_id` = ?310μs1KBParams/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:250Copy
  • SELECT `session_id` FROM `jos_session` WHERE `session_id` = :session_id LIMIT 1351μs1.31KBParams/libraries/src/Session/MetadataManager.php:187Copy
  • UPDATE `jos_session` SET `guest` = :guest , `time` = :time , `userid` = :user_id , `username` = :username , `client_id` = :client_id WHERE `session_id` = :session_id4.16ms992BParams/libraries/src/Session/MetadataManager.php:316Copy
  • SELECT `extension_id` AS `id`,`element` AS `option`,`params`,`enabled` FROM `jos_extensions` WHERE `type` = 'component' AND `state` = 0 AND `enabled` = 1854μs17.69KB/libraries/src/Component/ComponentHelper.php:399Copy
  • SELECT `id`,`rules` FROM `jos_viewlevels`257μs656B/libraries/src/Access/Access.php:955Copy
  • SELECT `b`.`id` FROM `jos_usergroups` AS `a` LEFT JOIN `jos_usergroups` AS `b` ON `b`.`lft` <= `a`.`lft` AND `b`.`rgt` >= `a`.`rgt` WHERE `a`.`id` = :guest245μs1.33KBParams/libraries/src/Access/Access.php:868Copy
  • SELECT `folder` AS `type`,`element` AS `name`,`params` AS `params`,`extension_id` AS `id` FROM `jos_extensions` WHERE `enabled` = 1 AND `type` = 'plugin' AND `state` IN (0,1) AND `access` IN (:preparedArray1,:preparedArray2) ORDER BY `ordering`1.27ms4.48KBParams/libraries/src/Plugin/PluginHelper.php:294Copy
  • SET sql_mode=(SELECT REPLACE(@@sql_mode,'STRICT_TRANS_TABLES',''));126μs640B/administrator/components/com_osmembership/loader.php:95Copy
  • SELECT `m`.`id`,`m`.`menutype`,`m`.`title`,`m`.`alias`,`m`.`note`,`m`.`link`,`m`.`type`,`m`.`level`,`m`.`language`,`m`.`browserNav`,`m`.`access`,`m`.`params`,`m`.`home`,`m`.`img`,`m`.`template_style_id`,`m`.`component_id`,`m`.`parent_id`,`m`.`path` AS `route`,`e`.`element` AS `component` FROM `jos_menu` AS `m` LEFT JOIN `jos_extensions` AS `e` ON `m`.`component_id` = `e`.`extension_id` WHERE ( (`m`.`published` = 1 AND `m`.`parent_id` > 0 AND `m`.`client_id` = 0) AND (`m`.`publish_up` IS NULL OR `m`.`publish_up` <= :currentDate1)) AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= :currentDate2) ORDER BY `m`.`lft`1.04ms19.8KBParams/libraries/src/Menu/SiteMenu.php:166Copy
  • SHOW TABLES LIKE 'jos_downloads_repository'1.1ms520B/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:143Copy
  • SELECT `path`, `link` FROM `jos_menu` WHERE `link` LIKE '%remository%' AND `published` > 0 AND `client_id` = 0511μs608BsameCopy
  • SELECT f.id, f.containerid, f.filetitle, f.realname FROM jos_downloads_files AS f WHERE f.containerid = 128455μs720BsameCopy
  • SELECT `config_key`,`config_value` FROM jos_osmembership_configs514μs3.06KB/administrator/components/com_osmembership/libraries/mpf/config/config.php:42Copy
  • SELECT * FROM `jos_languages` WHERE `published` = 1 ORDER BY `ordering` ASC350μs1.59KB/libraries/src/Language/LanguageHelper.php:177Copy
  • SELECT `id`,`home`,`template`,`s`.`params`,`inheritable`,`parent` FROM `jos_template_styles` AS `s` LEFT JOIN `jos_extensions` AS `e` ON `e`.`element` = `s`.`template` AND `e`.`type` = 'template' AND `e`.`client_id` = `s`.`client_id` WHERE `s`.`client_id` = 0 AND `e`.`enabled` = 1442μs832B/administrator/components/com_templates/src/Model/StyleModel.php:775Copy
  • SELECT role, subject_id, action FROM jos_permissions WHERE subject_type = 'remosFolder' AND action IN('download','edit')444μs2.38KBsameCopy
  • SELECT NOW()676μs536B/components/com_userpoints/src/Problems/SQL.php:31Copy
  • SELECT UNIX_TIMESTAMP(NOW())240μs536B/components/com_userpoints/src/Problems/SQL.php:74Copy
  • SELECT COUNT(`id`) FROM `jos_usergroups`213μs536B/libraries/src/Helper/UserGroupsHelper.php:207Copy
  • SELECT * FROM `jos_usergroups` ORDER BY `lft` ASC337μs976B/libraries/src/Helper/UserGroupsHelper.php:266Copy
  • SELECT NOW()391μs536BsameCopy
  • SELECT f.*, AVG(l.value) AS vote_value, COUNT(l.value) AS vote_count, CASE WHEN fv.user_id IS NULL THEN 0 WHEN fv.user_id = 0 THEN 0 ELSE 1 END AS favourite FROM jos_downloads_files AS f LEFT JOIN jos_downloads_log AS l ON l.type=3 AND l.fileid=f.id LEFT JOIN jos_downloads_favour AS fv ON fv.file_id = f.id AND fv.user_id = 0 WHERE f.id = 738 AND published=1 GROUP BY f.id1.19ms9.72KBsameCopy
  • SELECT c.*, CASE WHEN c.type = 'ProductLines' THEN 0 WHEN c.type = 'Services' THEN 1 ELSE 9 END AS typseq FROM jos_downloads_classify AS c INNER JOIN jos_downloads_file_classify AS fc ON c.id = fc.classify_id WHERE c.published != 0 AND c.hidden = 0 AND fc.file_id = 738 ORDER BY typseq, c.name2.86ms1.44KB/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:173Copy
  • SELECT COUNT(*) FROM jos_downloads_log WHERE type=3 AND ipaddress='18.190.159.202' AND fileid=7381.58ms536B/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:143Copy
  • SELECT COUNT(*) FROM jos_downloads_log WHERE type=3 AND ipaddress='18.190.159.202' AND fileid=7381.35ms0BsameCopy
  • SELECT c.id, c.title, c.comment, c.date, c.imgcount, u.id as userid, u.name, u.username FROM jos_downloads_reviews AS c INNER JOIN jos_users AS u ON c.userid=u.id WHERE c.itemid=738 ORDER BY c.date DESC1.31ms912B/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:173Copy
  • SELECT `m`.`id`,`m`.`title`,`m`.`module`,`m`.`position`,`m`.`content`,`m`.`showtitle`,`m`.`params`,`mm`.`menuid` FROM `jos_modules` AS `m` LEFT JOIN `jos_modules_menu` AS `mm` ON `mm`.`moduleid` = `m`.`id` LEFT JOIN `jos_extensions` AS `e` ON `e`.`element` = `m`.`module` AND `e`.`client_id` = `m`.`client_id` WHERE ( ( (`m`.`published` = 1 AND `e`.`enabled` = 1 AND `m`.`client_id` = :clientId AND `m`.`access` IN (:preparedArray1,:preparedArray2)) AND (`m`.`publish_up` IS NULL OR `m`.`publish_up` <= :publishUp)) AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= :publishDown)) AND (`mm`.`menuid` = :itemId OR `mm`.`menuid` <= 0) ORDER BY `m`.`position`,`m`.`ordering`1.96ms1.89KBParams/libraries/src/Cache/Controller/CallbackController.php:51Copy
  • SELECT `id`,`name`,`rules`,`parent_id` FROM `jos_assets` WHERE `name` IN (:preparedArray1,:preparedArray2,:preparedArray3,:preparedArray4,:preparedArray5,:preparedArray6,:preparedArray7,:preparedArray8,:preparedArray9,:preparedArray10,:preparedArray11,:preparedArray12,:preparedArray13,:preparedArray14,:preparedArray15,:preparedArray16,:preparedArray17,:preparedArray18,:preparedArray19,:preparedArray20,:preparedArray21,:preparedArray22,:preparedArray23,:preparedArray24,:preparedArray25,:preparedArray26,:preparedArray27,:preparedArray28,:preparedArray29,:preparedArray30,:preparedArray31,:preparedArray32,:preparedArray33,:preparedArray34,:preparedArray35,:preparedArray36,:preparedArray37,:preparedArray38,:preparedArray39,:preparedArray40,:preparedArray41,:preparedArray42,:preparedArray43,:preparedArray44)966μs7.81KBParams/libraries/src/Access/Access.php:357Copy
  • SELECT SUM(CASE WHEN `a`.`next_execution` <= :now THEN 1 ELSE 0 END) AS due_count,SUM(CASE WHEN `a`.`locked` IS NULL THEN 0 ELSE 1 END) AS locked_count FROM `jos_scheduler_tasks` AS `a` WHERE `a`.`state` = 1597μs1.37KBParams/administrator/components/com_scheduler/src/Model/TasksModel.php:517Copy
  • SELECT `session_id` FROM `jos_session` WHERE `session_id` = ?461μs1KBParams/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:277Copy
  • UPDATE `jos_session` SET `data` = ? , `time` = ? WHERE `session_id` = ?3.02ms592BParams/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:301Copy