#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 14, 2016 8:53:16 GMT -8
Can you please post a link to your forum, hopefully if there's two forums with the same problem I can find a common problem. The one in my siggy Here's a link to a thread about/by one of the members it's happening to: 2peasrefugees.boards.net/thread/46405/why-message-thread-count-resetand another affected member: 2peasrefugees.boards.net/user/3988There are at least a couple more. I've reset the count for the first person more than once - it seems to reset to a correct figure when I do it. Not sure what the trigger is for it to go back to 1000 but it always does. So, in your case, the threads are updating correctly when you visit a member's profile page, but are then resetting to 1000 later on?
|
|
inherit
210984
0
Oct 5, 2024 1:27:59 GMT -8
Ghost77
148
July 2014
fairypodmother
|
Post by Ghost77 on Sept 14, 2016 11:40:21 GMT -8
Yep, exactly.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 15, 2016 11:25:36 GMT -8
Do you have any idea whet you did right before the thread count jumps?
I have scanned the code several times and I can't see anything that would make the count 1000, so right now I'm stumped.
|
|
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 15, 2016 12:09:58 GMT -8
Do you have any idea whet you did right before the thread count jumps? I have scanned the code several times and I can't see anything that would make the count 1000, so right now I'm stumped. Todge , I took a look myself yesterday and the only thing that jumped out at me was the use of pb.data('route') in a few functions that run waaay after DOMContentLoaded. This is important because any AJAX operation will overwrite the route with a new one reflecting what just happened, so someone whose timezone has changed for example and the elapsed time script shoots off an AJAX to update that info or another plugin that ran before yours shooting off some update would mean the data you are expecting in the route is no longer there. This is why it is recommended that the route be saved in a variable on initial code execution then referenced via that variable when testing for something later on. I personally however could not connect the dots that would then lead to an explanation of someone having started 56 * threads somehow getting 1000 . This however doesn't mean it couldn't be the cause and I am somehow not seeing the entire chess board to backtrace the moves that got that piece into that position.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 15, 2016 16:26:43 GMT -8
Ghost77, can you please try this version (0.1.45)... Thanks Chris, I have updated the plugin linked above to grab pb.data('route') on page-load now, fingers crossed that will fix it, but... If I set a variable, for example, MTCpbData = pb.data('route'), doesn't that just set a reference for pb.data('route')? so that whenever I look at the content of MTCpbData it is still looking at the pb.data('route')? Also, the only time that pb.data('route') is used to grab the thread count is on the Recent Threads page, which, from what I understand, is updating correctly, there after it is the key content being counted up on 'thread-new'. I don't know... This 'simple' plugin is making my head hurt.
|
|
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 15, 2016 17:15:22 GMT -8
If I set a variable, for example, MTCpbData = pb.data('route'), doesn't that just set a reference for pb.data('route')? so that whenever I look at the content of MTCpbData it is still looking at the pb.data('route')? Correct, only primitives are passed byVal in javascript, everything else is passed byRef so when you call pb.data("route") it passes a reference to the object back to you. Once that object gets replaced by a new object however the reference is lost unless you have saved your own reference to it, pb.data("route") would be passing you reference to a brand new object since it has been replaced. If nothing holds reference to the old object then garbage collection clears it from memory so keep your references close to the vest. [Edit]: The answer was apparently in this thread all the time EDIT: I then went to my account's personal recent threads and nothing happened. Then I went to the site's overall recent threads and the popup happened that's supposed to recount the threads, so I hit OK, and now it's back to 1,000 recent_threads_created vs recent_threads and the line else if(proboards.data('route').name.match(/recent_threads/) && (pb.plugin.get('member_thread_count').settings.member_change == 'y' || proboard.data('user').is_staff == 1)) I was able to duplicate this and it grabbed the thread starter of the first thread in the forum's overall recent threads list and asked to reset the count for that poor guy If I was not paying attention I would have simply hit "do it" or whatever the button said which would have then reset my counter to 1000 since var mid = proboards.data('route').params.user_id; evals to undefined on that page and an undefined object_id for a user key resolves to the user id of the current user.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 16, 2016 8:50:34 GMT -8
That was it?? I forgot to take the Forum's recent threads page into account???Ghost77 , ₪» ⅀ ƪ Ƒ «₪ and to whoever else this concerns, please use version 0.1.45.
And a massive thanks to Chris who has saved me from going bald yet again.
|
|
inherit
210984
0
Oct 5, 2024 1:27:59 GMT -8
Ghost77
148
July 2014
fairypodmother
|
Post by Ghost77 on Sept 16, 2016 12:09:10 GMT -8
Have installed the new version, big thanks to you both
|
|
inherit
210984
0
Oct 5, 2024 1:27:59 GMT -8
Ghost77
148
July 2014
fairypodmother
|
Post by Ghost77 on Nov 18, 2016 3:42:01 GMT -8
Todge a couple of us are having problems with this plugin, just suddenly seemed to stop updating, and everywhere except the profile page it shows the thread count as zero. I'm not sure exactly when it happened, but the first report I had about it was 12 Nov. I hadn't made any changes to the forum for quite a while before that.
Thread with more details is here: support.proboards.com/thread/604435/member-thread-suddenly-stopped-working
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 18, 2016 14:10:04 GMT -8
Todge a couple of us are having problems with this plugin, just suddenly seemed to stop updating, and everywhere except the profile page it shows the thread count as zero. I'm not sure exactly when it happened, but the first report I had about it was 12 Nov. I hadn't made any changes to the forum for quite a while before that.
Thread with more details is here: support.proboards.com/thread/604435/member-thread-suddenly-stopped-working Can you please try version 0.1.6.
|
|
inherit
210984
0
Oct 5, 2024 1:27:59 GMT -8
Ghost77
148
July 2014
fairypodmother
|
Post by Ghost77 on Nov 18, 2016 14:33:03 GMT -8
Todge a couple of us are having problems with this plugin, just suddenly seemed to stop updating, and everywhere except the profile page it shows the thread count as zero. I'm not sure exactly when it happened, but the first report I had about it was 12 Nov. I hadn't made any changes to the forum for quite a while before that.
Thread with more details is here: support.proboards.com/thread/604435/member-thread-suddenly-stopped-working Can you please try version 0.1.6. That looks to have done the trick, have only done a couple of quick checks but I'm seeing realistic numbers in my member list instead of a whole column of red zeros, so an instant improvement! I'll look more thoroughly tomorrow, but I think that has solved it. Thanks for for a super quick response!
|
|
inherit
224078
0
Mar 29, 2023 13:18:57 GMT -8
suzukirider
27
August 2015
suzukirider
|
Post by suzukirider on Nov 18, 2016 17:57:54 GMT -8
Just wanna say a humongous thank you Todge for helping out with this... all seems to be working again Thanks also to Ghost & MSG for directing me here, when I messed-up and posted in the wrong place....doh! All the Best SR
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 18, 2016 18:20:51 GMT -8
No worries..
|
|
inherit
236019
0
Sept 12, 2021 21:41:52 GMT -8
johnwalkerq
22
August 2016
johnwalkerq
|
Post by johnwalkerq on Nov 21, 2016 4:01:24 GMT -8
The plugin isn't working 100% on my forum. In the Members navigation it says 0 with a red color.
Can you help me find out what the problem is?
I also tried deleting the plugin and download it again but it's still not working.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 21, 2016 13:57:07 GMT -8
The plugin isn't working 100% on my forum. In the Members navigation it says 0 with a red color. Can you help me find out what the problem is? I also tried deleting the plugin and download it again but it's still not working. A red ' 0' means that that member's threads have not been counted yet. Clicking on the red 0 should take you to the member's thread list so that they can be counted and the key updated. If this is not the case, can you please post a link to your forum so I can take a look. Thanks.
|
|