[3.2][3.3][RC] Advanced Points System

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Post Reply
Venatus Vinco
Registered User
Posts: 37
Joined: Wed Sep 26, 2018 12:53 am

Re: [3.2][BETA] Advanced Points System

Post by Venatus Vinco »

3Di wrote:
Thu Oct 10, 2019 11:32 pm
So to verify the fixes. Thank you.
Error

Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in .../ext/phpbbstudio/aps/event/check.php on line 74
User avatar
3Di
Former Team Member
Posts: 16032
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][BETA] Advanced Points System

Post by 3Di »

Venatus Vinco wrote:
Fri Oct 11, 2019 12:08 am
3Di wrote:
Thu Oct 10, 2019 11:32 pm
So to verify the fixes. Thank you.
Error

Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in .../ext/phpbbstudio/aps/event/check.php on line 74
Oops, the power of copy&paste, missing $ on this->

See: https://user-images.githubusercontent.c ... a39718.png

Above post amended.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you! 🚀
User avatar
Dabony
Registered User
Posts: 9
Joined: Tue Oct 01, 2019 3:15 am
Name: Emily Figgins
Contact:

Re: [3.2][BETA] Advanced Points System

Post by Dabony »

Obviously, this is a suggestion. So feel free to ignore it. I'm also unsure how complicated it would be.

Basically, on my forum, to encourage activity, everyone who earned over ~100 points during the week gets an additional 100. And it got me thinking of an automated and better version of something like that:

Rest Points

Each day (or week, or hour, etc.), a user earns X rest points. But, they have a cap of Y rest points. Whenever they would normally gain points, those rest points are also converted into points, meaning they effectively gain double. So if you would earn 100 points from a post, and you have 180 rest points, you instead earn 200 points but your rest points go down to 80. But, say your next post is also worth 100 points. In that case, all your remaining 80 rest points will be converted into points so you'll gain 180 points.

I just figured this was an interesting idea that might not be on your radar.

Secondly, for forums letting people gain points via word/character counts, it would be cool if you could have an option where if a post is permanently deleted, the post writer loses the points they would have gained from the words/characters. And if a post is edited, their points might change depending on if the post size goes up or down. That would be pretty nifty and useful - since right now I just have edits and permanent deletions disabled for users and manually subtract points whenever they want to delete something (since I'm using this on my test forum).
Venatus Vinco
Registered User
Posts: 37
Joined: Wed Sep 26, 2018 12:53 am

Re: [3.2][BETA] Advanced Points System

Post by Venatus Vinco »

Venatus Vinco wrote:
Fri Oct 11, 2019 12:08 am
3Di wrote:
Thu Oct 10, 2019 11:32 pm
So to verify the fixes. Thank you.
Error

Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in .../ext/phpbbstudio/aps/event/check.php on line 74
Fixed. Site is working. Behaviour still appears.

Overview: http://www.nullfactor.net/eu/VV/images/overview.png
ACP Settings: http://www.nullfactor.net/eu/VV/images/acp.png

EDIT: If I set the minimum to 1 the overview will not go into the negatives. So this appears to be an issue with the "zero" setting. In many extensions "zero" is a sign for no limit as opposed to a number. Possibly the case here.

VV
User avatar
mrgoldy
Development Team Member
Development Team Member
Posts: 1392
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][BETA] Advanced Points System

Post by mrgoldy »

The check event listener still needs some work.
I did manage to get the errors to show up locally. There are some missing braces in there aswell.
We know that 0 is considered as false, that's why we use strict checks. This isn't our first rodeo.
Anyways, all of this will be fixed in the next release. Thanks for reporting.

A little more over the current 'checks': There currently are checks for bumping a topic, deleting, posting and voting.
It will only, however check the 'initial' points cost. For example, if creating a topic costs 5 points (-5) but you would get 100 points per character (which will always result in a 'positive gain' for making this topic), it will only use the 'base cost', so you need to have more than 5 points. (If the minimum is set to 0).
Dabony wrote:
Fri Oct 11, 2019 11:00 am
Rest Points

Each day (or week, or hour, etc.), a user earns X rest points. But, they have a cap of Y rest points. Whenever they would normally gain points, those rest points are also converted into points, meaning they effectively gain double. So if you would earn 100 points from a post, and you have 180 rest points, you instead earn 200 points but your rest points go down to 80. But, say your next post is also worth 100 points. In that case, all your remaining 80 rest points will be converted into points so you'll gain 180 points.
This sounds really complicated to implement, especially within this extension. Not sure if I fully understand it even.
However, in the future we will be looking to add a 'Bank' extension, where users can store their earned points and receive interest.
This sounds like it would somewhat be what you're after, encouraging activity. So users can receive more points from their points.
Dabony wrote:
Fri Oct 11, 2019 11:00 am
Secondly, for forums letting people gain points via word/character counts, it would be cool if you could have an option where if a post is permanently deleted, the post writer loses the points they would have gained from the words/characters. And if a post is edited, their points might change depending on if the post size goes up or down. That would be pretty nifty and useful - since right now I just have edits and permanent deletions disabled for users and manually subtract points whenever they want to delete something (since I'm using this on my test forum).
About editing, we have looked into it, but it close to impossible to have a consistent calculation. Not to mention the amount of variables it depends on. Therefor it will not be implemented.
About deleting, I understand that it might be useful to automate the process. I figured it shouldn't be a too common scenario, so moderators could just adjust it manually, if they even wanted to. We will see if we can add a checkbox of sorts. Will bring some questions with it though. For example, if I made a post, edited a couple of times and then later it is deleted, then are only the points removed for the initial post, or also the edits? Cause there might be more actions tied to a post. And those actions did take place, possibly even by other users and not the author. So they lose their points aswell?
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
Dabony
Registered User
Posts: 9
Joined: Tue Oct 01, 2019 3:15 am
Name: Emily Figgins
Contact:

Re: [3.2][BETA] Advanced Points System

Post by Dabony »

Yeah, I figured rest points would probably be complicated. And idk if a bank is what I want. Because I don't like users getting points passively (like with interest).

Right now in my test forum we're just discouraging big edits. And mods are manually subtracting points after post deletions. Also, wow, I never thought about those questions. For my forum the answer would be obvious as points are solely gained based on a mix of character and word count, but I can see how that'd be awkward to figure out if flat points were gained per edit and stuff.

But, thanks for the response, and know that you're doing an awesome job with the extension!
User avatar
Glorio
Registered User
Posts: 13
Joined: Tue Oct 01, 2019 7:29 am
Location: France

Re: [3.2][BETA] Advanced Points System

Post by Glorio »

Good evening,

I would like to know if it is possible to use an image at the dots instead of using the font awesome ?

Exemple :
Image
Kenshin_Takai
Registered User
Posts: 2
Joined: Sat Aug 08, 2009 3:23 pm

Re: [3.2][BETA] Advanced Points System

Post by Kenshin_Takai »

Brilliant extension you have here!

Is there any chance we'll be able to extend this plugin (or have it built in) to define and use multiple currencies concurrently (at the same time)?
I'd love to see that opportunity, even if it means by writing a sub-extension. I checked the current documentation, but am not entirely certain if this is yet possible; I only saw the ability to trigger based on new actions and point management for users.
User avatar
3Di
Former Team Member
Posts: 16032
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][BETA] Advanced Points System

Post by 3Di »

Kenshin_Takai wrote:
Thu Oct 17, 2019 7:53 am
multiple currencies concurrently (at the same time)?
If you mean multiple type of points that's not possible.
Also, developing such a feature would be a PITA. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you! 🚀
User avatar
eunaumtenhoid
Registered User
Posts: 998
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][BETA] Advanced Points System

Post by eunaumtenhoid »

Sorry for the question, but do you have any predictions for the RC version of APS and ASS?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
globetrotting
Registered User
Posts: 198
Joined: Thu Jan 15, 2004 8:14 pm
Location: globetrotting
Contact:

Re: [3.2][BETA] Advanced Points System

Post by globetrotting »

Hi,
and congrats to all your Studio projects and presentations- great things coming!

I'd love to see an action event added for moderators to the Cloning of a post.
In our forum the cloning of posts is one of the moderator's most important and significant tasks, worth to be honored.

Thanks for considering, I guess that wouldn't be too hard to integrate?
Das Sein ändert das Bewußtsein
User avatar
3Di
Former Team Member
Posts: 16032
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][BETA] Advanced Points System

Post by 3Di »

globetrotting wrote:
Fri Oct 25, 2019 3:19 am
I'd love to see an action event added for moderators to the Cloning of a post.
I know is possible to copy (fork, clone) a Topic, not a Post.

Image

How do you do that?
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you! 🚀
User avatar
mrgoldy
Development Team Member
Development Team Member
Posts: 1392
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][BETA] Advanced Points System

Post by mrgoldy »

This action should already be included in the currently available actions.
The copying of a topic is already in the list, for both the moderator who copies the topic and the author of the topic.
Both can receive points. Points are based on the forum from which the topic is created.
So if "An Awesome topic" gets copied from "Forum A" to "Forum B", the points from "Forum A" will determine how many points the users will receive.
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
eunaumtenhoid
Registered User
Posts: 998
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][BETA] Advanced Points System

Post by eunaumtenhoid »

would be a great resource if possible too:
bonus points >> for every X posts the user gets x points (For example, if the user makes 100 posts, he gets 200 extra points. If he makes 1000 posts, he gets 500 extra points...)
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
3Di
Former Team Member
Posts: 16032
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][BETA] Advanced Points System

Post by 3Di »

A new version has been released: 1.0.4-beta
  1. Disable the extension
  2. Do NOT delete data
  3. Delete the phpbbstudio/aps folder
  4. Upload the download to phpbbstudio/aps
  5. Enable the extension
#### v1.0.4-beta

- Major code clean up
- Bumped phpBB version requirement to 3.2.8
- Fixed MCP "Front" missing log language strings
- Fixed ACP "Display" missing language strings
- Fixed ACP setting for "icon position" not taking affect
- Added radio CSS to admin
- Added changing user points for an entire group
- Added the possibility to use an image as icon
- Added to automatically hide display categories without blocks
- Added version checker
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you! 🚀
Post Reply

Return to “Extensions in Development”