Former Member
inherit
guest@proboards.com
253222
0
Nov 21, 2024 18:00:34 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Sept 17, 2019 16:03:52 GMT -8
Basically on the user's page it shows the 5 latest posts' thread names that the user has last liked, as well as the creator of the post which was liked. Is this possible, and if so can someone make something like it?
|
|
Former Member
inherit
guest@proboards.com
253222
0
Nov 21, 2024 18:00:34 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Sept 19, 2019 12:16:51 GMT -8
bump
|
|
Former Member
inherit
guest@proboards.com
253222
0
Nov 21, 2024 18:00:34 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Sept 20, 2019 14:10:13 GMT -8
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,322
January 2004
todge
|
Post by Todge on Sept 21, 2019 7:49:38 GMT -8
It is possible.. It will need a user key, obviously. But it is quite an involved piece of code, so I doubt anyone will take this on until V6 is here, as there may need to be quite a bit of rewriting to keep it working.
|
|
Former Member
inherit
guest@proboards.com
253222
0
Nov 21, 2024 18:00:34 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Sept 21, 2019 16:07:50 GMT -8
That sucks. It's too bad that a bunch of things have to go on hold because v6 is coming.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Sept 21, 2019 16:28:21 GMT -8
(function () {
if (pb.data('route').name === 'show_user_activity') { $(function () { const $activities_container = $('.activities-container'); const $filter_container = $('<div/>', { align: 'center' }).appendTo($('<thead \/>').insertBefore($activities_container).append($activities_container.find('tr:first td').clone().empty()).find('.main'))
function createFilter() { let verb = {} $activities_container.find('.activity-item').each(function (i, e) { let txt = $('.italic', e).text().split(/\s+/)[0]; verb[txt] = (verb[txt] || []); verb[txt].push('.activity-' + $(e).closest('.activity-item').idFromClass('activity')) }) let $sel = $('<select><option>ALL<\/option><option>' + Object.keys(verb).join('<\/option><option>') + '<\/option><\/select>'); $sel.find('option').each((i, e) => { e.value = $(e).text() }) $sel.on('change', function () { if (this.options.selectedIndex === 0) { $('.activity-item').show(); } else { $('.activity-item').hide(); $(verb[this.value.trim()].join(',')).show(); } }) return $sel }
$filter_container.html("Show: ").append(createFilter()) pb.events.on('moreActivity', function () { $filter_container.html("Show: ").append(createFilter()); }) }) } })()
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Sept 23, 2019 15:17:51 GMT -8
Edits:
- v0.0.2 - Updated plugin to retain selection when clicking "Show More"
- v0.0.3 - Added a mutation observer to catch events not covered by 'moreActivity' such as deletions and status changes
- v0.0.4 - added support for activities on the following tab and ability to filter down by user in addition to activity
- v0.0.5 - Fixed filtering should also apply to new entries from "get more" (moreActivity)
- v0.0.6 - Added per day statistics calculations for each activity
- v0.0.7 - Rephrased stats sentences
- v0.0.8 - Recalculate stats on Following tab when new user selected
- v0.0.9 - Disable stat calc for special verbs such as "registered"
- v0.1.0 - Stats younger than a avg_threshold setting given as simple count rather than average
- v0.1.1 - Added minimum days (min_threshold) before avg calculations.
- v0.2.0 - Added support for notification tab and fix for deleted users
- v0.2.1 - Added secondary show more link to top of form
|
|
Former Member
inherit
guest@proboards.com
253222
0
Nov 21, 2024 18:00:34 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Sept 23, 2019 17:47:59 GMT -8
Edits:
- v0.0.2 - Updated plugin to retain selection when clicking "Show More"
Huh, cool. Is there a way to get the user activity on the summary page by any chance?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Sept 23, 2019 17:49:47 GMT -8
no
|
|
Former Member
inherit
guest@proboards.com
253222
0
Nov 21, 2024 18:00:34 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Sept 23, 2019 17:54:54 GMT -8
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Nov 17, 2019 3:51:46 GMT -8
Chrisjust wanted to say this is a seriously awesome plugin!
|
|