The assumption being, that we know the topic author is Online. We, as moderators, may also know via Who Is Online that they are "reading" a topic in the forum where their authored topic resides. However, is there a way to test if they're actually viewing the topic that they have authored that "I am" currently also viewing?
Our users and moderators have expressed interest in this capability so they know whether there's value in putting forth the immediate effort to reply quickly (as in a live chat session) or not. If the topic author has moved on to reading other forum topics, also in the same forum as the one their authored topic is in, there's less value in replying to the author's topic immediately; like the OP has closed their chat session.
That result is currently correct.cabot wrote: Sun Dec 22, 2024 9:55 amYou won't see any difference in other users' mini-profiles, but in your own. ^^
Look at your own posts. If you're logged in, the contact link is replaced by a link to the PM inbox.
However, I've tested having the original topic author, another user, login to one of their own authored topics to test the badge change and I think the first IF test only recognizes me as currently logged in,
Code: Select all
{% if S_REGISTERED_USER and S_DISPLAY_PM and (postrow.POST_AUTHOR_FULL is same as (CURRENT_USERNAME_FULL)) %}
Code: Select all
<a href="{{ U_PRIVATEMSGS }}"><i class="icon fa-inbox fa-fw" aria-hidden="true"></i> {L_PM}{% if PRIVATE_MESSAGE_COUNT %}{L_COLON} <strong>[{{ PRIVATE_MESSAGE_COUNT }}]{% endif %}</strong>
</a>
Code: Select all
<a href="{{ U_PRIVATEMSGS }}"><span>{{ lang('PRIVATE_MESSAGES') }}</span>{% if PRIVATE_MESSAGE_COUNT %} <strong class="badge">{{ PRIVATE_MESSAGE_COUNT }}</strong>{% endif %}</a>
Thus, I am seeing a slight change, but I think the first row IF test isn't testing for the OP topic author in the right way still. Instead, it seems to be looking to identify if "I am" currently viewing a topic that I am currently viewing. The If condition being true, it changes my profile PM badge to something else that the OP topic author can see, but the 'replying' public is left in the dark still. We want the original topic author's badge to change if true.
So, I think we're very close. If the first IF conditional could tell potential "replying" members if the original topic author was reading/viewing the same topic we're both in at the moment, then I too could say that it has been solved.
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)