Thanks for the addon. Very usefull!
I need to translate all dates (january, etc)? Why don´t you use XF phrase dates?
added phrases for short month names to allow translations.
1. Coming from ubb over vbulletin to XF, the generated milestones start with every product change from zero. That leads to a weird history. Is there anything that you could do on your end, so the addon is taking care of this
2. What would be use case of a history addon, when not informing users and to engage them: are there user alerts for the new milestones? Else, I´ld have to ask - "Heck, why not?!"![]()
Indeed you have to or I have to spank youI wrote the history add-on for the owner/admins can keep a record of how their forum has changed over the years. And for members to see how their contributions have added to thread counts, message counts etc. Later, I felt there was a need for members to visually see how close a milestone was to be achieved, so I added a widget (when hovering over the number, the amount remaining is shown in a tooltip), hoping it will get members to post more, create more threads, and so on.
In a later version I could add alerts if you like,
@Lawrence great add-on, thank you for publishing it.
I have a support request: I made the mistake of not setting my milestones as I wanted and now the history has been populated with a lot of milestones which I don't want to be displayed. (My forum is 15 years old with close to a million posts). Specifically I changed the "base marker" numbers but the milestones from the old base marker numbers are still there. How can I delete the milestones and re-populate the history with milestones based on the current base marker number settings, please?
Thank you for the quick reply. I realized I didn't have the permissions to delete entries in-line so once I fixed that I was able to edit the history directly.Thank-you,
From the AdminCP ([EAE] History menu), remove each milestone type you want to change, then set the new markers in the options, and then re-add each milestone type. Note that this may just pick up where it left off for each marker (I'd have to verify that), if so, then uninstall the add-on and re-install it (then set your markers to the values you want, and then re-add each marker).
else if ($display == 'onthisday')
{
$title = \XF::phrase('eae_htr_on_this_day');
$limit = $options['limit'];
$repo = $this->repository('EAEAddons\History:History');
$finder = $repo->findHistoryItemsForList();
$d = new \DateTime('now', \XF::language()->getTimeZone());
list($this->entryYear, $this->entryMonth, $this->entryDay) = explode(' ', $d->format('Y M d'));
$finder->with('User')
->where('event_type', 'event')
->where('event_state', 'visible')
->where('event_month', '=',$this->entryMonth)
->where('event_day', '=', $this->entryDay)
->limit($limit)
->order('event_date', 'DESC');
$data = $finder->fetch();
}