105 Commits

Author SHA1 Message Date
bleistivt
2bd781d250 Move ksort out of the inner loop
This was the culprit for the timeout reported in #116.
2016-03-25 08:01:27 +01:00
Zachary Doll
2236baa758 Update doc blocks to mark new functionality as since 1.1 2016-01-27 15:06:30 -06:00
Zachary Doll
c3f5057a2e Only set rank if it is a new rank 2016-01-27 08:24:05 -06:00
Zachary Doll
4e864d55aa Merge pull request #85 from bleistivt/ExtensibleReactions
Make Reactions extensible

Closes #75
2015-06-29 09:27:55 -05:00
bleistivt
b512096196 New event names 2015-06-23 18:41:40 +02:00
bleistivt
d373e5b11c Improve reaction caching
The ReactionModel::Prefetch() method now also calls UserModel::GetIDs()
to fill the user cache with the associated UserIDs because the render
methods need these anyway.
2015-05-30 10:11:21 +02:00
bleistivt
b9211d3172 Make Reactions extensible 2015-04-23 23:15:29 +02:00
bleistivt
d025166280 ReactionModel: Remove check for allowed reaction types
- The checks are not needed
- Returning NULL throws a notice in foreach when passed into RenderReactionList/RenderReactionRecord
- This makes the ReactionModel more generic so it can be used with custom reaction types
2015-03-14 15:22:50 +01:00
Zachary Doll
6f7bbb00bc Always return an array for perks. 2015-02-19 15:56:09 -06:00
Zachary Doll
c665938d3d Typo in rank model prevented removal of existing ranks. 2015-02-10 14:08:45 -06:00
Zachary Doll
02fca4f476 Activities should use absolute paths
This is for interoperability of the notifications popin.
2015-01-31 09:53:46 -06:00
Zachary Doll
57ffd7d9f1 Forgot the badge ID 2015-01-27 10:28:38 -06:00
Zachary Doll
29a98591d0 Merge branch 'master' of https://github.com/hgtonight/Application-Yaga 2015-01-27 10:25:43 -06:00
Zachary Doll
e5e8e262d1 Add badge enable event to allow for analysis when enabling/disabling. 2015-01-27 10:25:29 -06:00
bleistivt
455d04ced3 Limit discussion columns fetched for comments 2015-01-25 23:38:11 +01:00
bleistivt
8c2a0aa1c5 GetRecent() required fields only, wrapper function 2015-01-25 23:18:57 +01:00
bleistivt
fd19180825 Reduce memory consumption of ActedModel
This patch makes the ActedModel only fetch columns that are needed for
sorting and security. All content is separately fetched by Prepare()
which I put at a later place.
2015-01-25 02:10:55 +01:00
bleistivt
82cafd9e60 Add BeforeReactionSave event
This could be useful to prevent reaction from being saved. Also closes #64
2015-01-20 02:08:51 +01:00
Zachary Doll
952f02f16e Merge pull request #72 from bleistivt/Patch-ReactionCache
Implement Reaction memory cache

Thanks for such a great contribution!
2015-01-19 09:46:28 -06:00
Zachary Doll
39f55f6803 Return an object from ActedModel instead of an array.
This object contains the total record count after a security check. This ensures the pager gets the right data while preventing a duplicate query.
2015-01-19 09:44:19 -06:00
bleistivt
f7639841e5 Add GetRecord() result to cache 2015-01-18 22:10:51 +01:00
bleistivt
f4c67afe73 Implement Reaction memory cache 2015-01-18 21:03:22 +01:00
bleistivt
e2fb4fe5c5 Correct BadgeDetail links in some more places 2015-01-15 18:20:50 +01:00
Zachary Doll
91ba64f7a2 Remove - prefix from acted model 2015-01-14 15:43:07 -06:00
Zachary Doll
85ba364f79 Change ActedModel::GetRecent() to order by reaction date. 2015-01-14 15:42:30 -06:00
Zachary Doll
148d671739 Badges are sortable in the backend. 2015-01-12 11:37:50 -06:00
Zachary Doll
e2cab91767 Removed GetNewestAction method on the ActionModel.
Closes #57
2015-01-12 09:20:39 -06:00
Zachary Doll
1fba6bd61a Switch models over to Yaga::GivePoints 2014-12-24 08:56:33 -06:00
Zachary Doll
bb20ebeb03 Add points to the event arguments for the after reaction save event. 2014-12-21 11:55:22 -06:00
Zachary Doll
21642f0040 Update and clean up translation codes
Closes #36
2014-08-26 15:49:47 -05:00
Zachary Doll
e5e67dd0cb Check for perks before parsing for role IDs 2014-08-26 10:39:14 -05:00
Zachary Doll
c055cca224 Updated model documentation 2014-08-25 16:32:30 -05:00
Zachary Doll
8f28b7fbed Remove some unneeded todos 2014-08-25 15:53:51 -05:00
Zachary Doll
8b8a0de34d Do not qualify disabled ranks... ever 2014-07-11 10:38:09 -05:00
Zachary Doll
970cb63d64 Move Rank progression check to a generic event
Rank progression can now occur on post count change, point change, or
length of service change. The rank progression will be executed when the
UserModel sets the 'Points', 'CountDiscussions', or 'CountComments'
field for a specific user.

Additionally, the rank model now qualifies the user against the point,
post, and age requirements.
2014-07-10 09:07:53 -05:00
Zachary Doll
9668aeb840 Update rank model to use the simpler perk system 2014-07-08 14:49:58 -05:00
Zachary Doll
167d0838f2 More Rank Perks work 2014-06-27 16:22:14 -05:00
Zachary Doll
ed7c0a43a1 Update model to use new db structure 2014-06-26 13:12:26 -05:00
Zachary Doll
9765137bf3 Add rank sorting 2014-06-04 15:22:44 -05:00
Zachary Doll
3e59ab713f Fix action sorting bug
Introduced in 810d07ce2df80faaf1c5a9665cb6d5f6d09f6d55 when refactoring
the views to use functions.render.php

Thanks to DoyceT for finding this.
2014-06-04 08:55:25 -05:00
Zachary Doll
19f0744b62 Use a default badge photo if one is not uploaded
Fixes broken image links on the activity record. Also uses relative urls
for activity feeds now.
2014-05-14 11:45:50 -05:00
Zachary Doll
6283ae3356 Add default rank promotion image
Closes #31
2014-05-13 15:30:38 -05:00
Zachary Doll
9e6bd014d7 Add in ability to query a user's actions
Will be useful for plugins. Closes #28
2014-05-13 10:19:47 -05:00
Zachary Doll
e3de046b8b Allowing move on delete for actions
Closes #22
2014-04-28 11:03:31 -05:00
Zachary Doll
b5eb0792c0 Add Counts method to BadgeAwardModel
Hooks into the DBA controller to update the denormalized BadgesCounts
column on the user table. Closes #24
2014-04-25 09:13:08 -05:00
Zachary Doll
8390b3e972 Add best controller and related modules
This adds a link on the discussion filter module and the profile filter
box. The new views show content based on it's aggregate Yaga score as
well as the reaction type. Closes #19
2014-04-24 17:19:53 -05:00
Zachary Doll
9193d0f20e Don't reward reflexive comments on your own discussions 2014-04-16 11:15:12 -05:00
Zachary Doll
2bce8f9dda Manual badge awarding now notifies the proper user. 2014-02-08 11:42:35 -06:00
Zachary Doll
2d66f1fe64 Streamline activity and preferences for badges/ranks 2014-01-30 16:04:29 -06:00
Zachary Doll
03f505413b Add basic dashboard statistics 2014-01-09 16:30:34 -06:00