Remository
  • Home
  • Downloads
  • Pricing and Registration
    • Questions & Answers
    • Support Tickets
    • Remository Documentation
    • UserPoints Documentation
    • Flarum Documentation
    • Changelogs
  • Login
  1. You are here:  
  2. Home
  3. FAQ
  4. UserPoints FAQ

UserPoints FAQ

Getting points with the step value

If somebody is asking how to add points for some rule multiple times and every time different amount of point then first please check the needed code changes explained here:

http://www.alphaplug.com/index.php/forum.html?func=view&catid=12&id=7672

and then AFTER particular rule is already installed use the back end of the MySql database and in the rule table update columns:

isdeductable
stepvalue
maxmin

with values which fulfill your requirements.

 

Lets say you already have the rule enabled for the commenting the article. Rule is set to add the 10 points. Rule also has the ref code to preserve and keep giving same user 10 points next time when he again comment same article. Then you decide to let the same user to get extra 2 points for one more comment. To have the rule ready for that you need to update columns as:

isdeductable = 1
stepvalue = -8
maxmin= 2

Lets say you want to download DocMan document. Rule on downloading is set to take 10 points. Rule also has the document id as ref code to prevent substract of the points for future downloading (so user normally can download multiple times same document without loosing the points). But somehow you decided to 'charge' downloading even next 3 times. Each time 3 points less.To have the rule ready for that you need to update columns as:

isdeductable = 1
stepvalue = 3
maxmin= -1

This is because -10 is the starting points already defined. So step value need to be +3 and maximum value to where rule can apply is -1 (this will be the last amount to charge upon downloading same document - all future downloads will be free).

I hope you understood the logic. 

Details
Hits: 2427

How can I give or remove custom points to/from a specific users?

Step 1: Components -- UserPoints -- Rules -- Custom -- Published: Yes

First of all you have to publish the rule. See above

Step 2: Components -- UserPoints -- Users -- Select user -- button "Custom points" -- Give/remove custom points...

When you give or remove points there come two field "Points" and "Description". If you want to give points, just write the number of points, for example 10. If you want to remove points from the user then use negative value, for example -10. You can also write short reason these custom points in description field if you want to. Last but not least remember Save all this, just press the button Save in the top right corner.

For example

Points:10
Description: Very active role in Community

Save

Step 3: Components -- UserPoints (Control Panel) -- Latest activity

If you want to check immediately those points what you just give or remove, see above. There you should see those custom points.

Details
Hits: 2510

Explore Repository

open all | close all

Fighting Spam

We run our own mail server, but we have front ended it with a spam blocker by MX Guard Dog. This enables us to run our mail server with much lower resources, because it does not need anti-spam or anti-virus software. If you want help to do the same, get in touch.

  • Need help? Let's Chat
  • Support Martin Brampton Online

Martin Brampton

Support

Martin Brampton

Is there anything I can help you with?.

00:01