[EAE] Bumper

[EAE] Bumper 1.2.1

No permission to buy (CA$19.95)
Bumper v1.2.0 was an internal release only. This update includes 1.2.0 and 1.2.1 changes.
Note: If you are updating, you will need to reset the Thread bumps per day permission as it is now a node permission.

Bug fixes
  • fixed a bug that prevented threads with an unexpected view class from being bumped
  • fixed a bug that caused a bumper entity error when trying to view bumper statistics if BumperRM was uninstalled
  • fixed a Call to undefined method XF\Mvc\Reply\Redirect::getViewClass() bug
Changes
  • thread bumps per day permission is now a forum permission. As a result of this change the Thread bumps per day permission needs to be set for each forum that allows threads to be bumped. This adds more flexibility assigning bumps per day (see first option below).
  • the info/feedback messages bumper generates now use the blockStatus classes for it's styling instead of using the blockMessage classes. This change makes bumper messages more subtle and less intrusive on forum view and thread view pages. The templates changed are: eae_bp_forum_view_messages_insert, and eae_bp_bumper_macros templates.
New options
  • added an option to have Thread bumps per day count bumps made in each child node when calculating how many bumps per day a user has left for that parent forum and it's sub forums. Enter parent forum id's separated by a comma. If you leave this blank, or leave out a parent forum id that you may not want this behaviour for, the thread bumps per day value will be inherited by each child forum from it's parent forum (if higher). See example below.
  • added options to change the last message date, and last post date in node extras to the bump date. Note, that the new date cannot be changed back to the threads original last message date when the bump expires, so it is not recommended. By selecting the option, bumped threads will show on the what's new areas
  • added a widget option that when selected will only display the latest bump made by a member, this should allow bumps made by different members to be displayed in the widget.
Option Include bumped thread counts for child forums of: example usage:

You have a forum with an id of 14 named Pets. Pets has three sub-forums: Cats, Dogs, and Birds. The Pets forum also has it's own threads. All four of these forums allow bumping of threads, and the Thread bumps per day permission for the Pets forum is set to 5.

Include bumped thread counts for child forums of: is left blank:
5 threads in each of Cats, Dogs, Birds, and Pets can be bumped. You can of course over-ride this value per forum, i.e.: You set Thread bumps per day for Dogs to 7.

Include bumped thread counts for child forums of: 14
If a member bumps two threads in Cats, then they will only have three thread bumps left to use in Dogs, Birds, Pets, or Cats. If you set that the Dog forum can have 8 bumps, and five threads were bumped in the Dog forum, the other forums can not have their threads bumped (as the max of 5 was reached, but the Dog forum can have three more threads bumped). If five bumps were used in the other forums, the Dog forum (which can have 8) can only now have three threads bumped (8 - 5 = 3).

As you can see, moving Thread bumps per day permission from General to Nodes, and with this new option, gives you much more flexibility and control over the bumping of threads.

Attachments

  • member_feedback_1.png
    member_feedback_1.png
    46.3 KB · Views: 8
  • member_feedback_2.png
    member_feedback_2.png
    45.6 KB · Views: 8
  • new_options.png
    new_options.png
    77.7 KB · Views: 8
  • Like
Reactions: Sunka
- fixed a bug that may throw a server error with respect to rss under certain circumstances.
  • Like
Reactions: Sunka
Options
  • added a Unit option for the Time limit for re-bumping content option. Possible choices are Minutes, Hours, and Days. Defaulted to Hours on install/upgrade
  • added the option Count re-bumps against a members total bumps per day. This should only be selected if the permission Bump xxxx content by others is set to 'No'
  • added the option Display members remaining bump count when viewing a forum. If checked, the members' remaining bump count will be displayed above the list of threads. This will cause one additional query for forum view. Defaulted to not checked
  • added the option Display members remaining bump count when viewing a thread. Defaulted to checked
Permissions
  • added permission Bump locked threads. Default to No on install/upgrade
  • added permission A thread can be bumped this many times per day. Set to 1 to disable multi-bumping of threads
  • added permission Maximum times a thread can be bumped in it's lifetime. Once a thread has this many bumps, it can never be bumped again unless a member has a higher amount set by another user group (node->user group)
Permission changes
  • removed permission Multi-bump threads. It has been replaced by a numerical permission: A thread can be bumped this many times per day. Set to a value higher than 1 to allow multi-bumping
  • renamed permission Number of threads that a member can bump per day to Thread bumps per day (this is still for the member)
  • renamed permission Can bypass re-bump active minutes setting to Can bypass time limit to re-bump content
  • Bumper now utilizes two permission interface groups: [EAE] Bumper general permissions and [EAE] Bumper forum permissions. The new interface groups have been moved towards the bottom of the permissions page
Cron changes
  • changed cron entry [EAE] Expire bumps to run from every hour to every 30 minutes
  • added a new cron entry [EAE] Reset bumps. This cron entry runs every 20 minutes to reset total bumps per day to 0 when the first bump of the day is older than 24 hours
Other changes
  • added feedback on thread view page. The feedback displays to the member a threads maximum lifetime bumps, bumps to date, and when the thread can be bumped again. If the thread can be bumped, the date is not shown (the bump button is displayed)
  • when hovering over the bump icon when viewing a forum, the tooltip now displays the bump expiry date instead of the date the thread was bumped
  • added new templates to reduce the size of template modifications
  • cleaned up some code
Updating from 1.0.X to 1.1
  1. upload Bumper v1.1 files as per normal. If you have BumperRM installed, upload BumperRM v1.1 files.
  2. upgrade Bumper to 1.1. If you have BumperRM installed, upgrade BumperRM to 1.1.
  3. go to Options-> [EAE] Bumper and reset Time limit for re-bumping content option (be sure to set the Unit you want to use as well). Save.
  4. go to Groups & permissions -> User group permissions, and for the registered group scroll down to Bumper forum permissions and set the numeric permissions that you want to use as default. If you have BumperRM installed, set those as well. Save.
  5. go to Forums -> Node permissions, and for any node that you allow bumps in and you have made changes to the bumper permissions (i.e. not set to Inherent) make those changes for the pertinent user group(s), and save.
  • Like
Reactions: Sunka
- fixed a template issue that prevented bumped media items and albums from displaying, when viewing the bumper statistics in the AdminCP.
Top