• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

As designed Inconsistent Resource Activity

Brogan

XenForo moderator
Staff member
#4
It's the same for the tab on the profile page.

Edit: I originally thought it was referring to the resource count but after Chris' edit I now see it's related to the resource being viewed.
 

Chris D

XenForo developer
Staff member
#5
Sometimes displays a resource, sometimes doesn't. Not sure exact reproce cases, but it's happening here.
I think the simple answer is, I wasn't viewing a resource.


I was on the resource index.

The getSessionActivityDetailsForList function in the Resource controller checks the current activity params for a resource ID. If there isn't one (such as being on the resource index) or you don't have permission to view the resource then the phrase returned is simply "Viewing resource".
 

Jeremy

Well-known member
#6
Yeah, sorry guys, was on the phone. Phrase duplication seems slightly off here to me.
(And I apologize to Mike for the vague report. I personally hate those when I get 'em.)
 

Mike

XenForo developer
Staff member
#7
Chris's analysis is correct - we could potentially try to do more detailed analysis in the future, though the code may not totally support it (I'd have to check). I'd recommend suggesting that if it's important.
 

xf_phantom

Well-known member
#8
[offtopic]
It wasn't useless IMO:p
It is inconsistent, that messages, likes etc is shown, even the user has 0
But resources is shown only if the count is >1
[/offtopic]
 

Jeremy

Well-known member
#9
Chris's analysis is correct - we could potentially try to do more detailed analysis in the future, though the code may not totally support it (I'd have to check). I'd recommend suggesting that if it's important.
Its not that important (AKA, I'll forget about it for a while until I notice it again).