Advertisement:

Author Topic: How to show who is answering a topic?  (Read 713 times)

Offline PaperseraNet

  • Semi-Newbie
  • *
  • Posts: 10
How to show who is answering a topic?
« on: December 04, 2018, 09:31:50 AM »
Hello,

I's now almost an year my forum moved from YaBB to SMF, and I'm really happy with it.

Trying to customize some stuff, I'd like to have some help in knowing if it is possible to show on the Display page who is answering the topic, just after the list of persons who are viewing it.

Maybe I'll explain myself better by code...

In Display.template.php I have the following lines (slightly edited for readability):

Code: [Select]
if (!empty($settings['display_who_viewing'])) {
echo '<p id="whoisviewing" class="smalltext">';
[...]
echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');

echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '</p>';
}

Besides $context['view_members_list'] is there something like this to show the users who are answering to the topic?

Thank you,

  - Paolo

Offline live627

  • Development Contributor
  • SMF Hero
  • *
  • Posts: 5,620
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: How to show who is answering a topic?
« Reply #1 on: December 04, 2018, 12:18:00 PM »
Would Active Members In Topic be close to what you seek?
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,650
    • StoryBB/StoryBB on GitHub
Re: How to show who is answering a topic?
« Reply #2 on: December 04, 2018, 01:32:55 PM »
No, because there’s no way to see who is typing, unless it sent that back to the server every few seconds, and then updated you every few seconds. Unless on a very large server, the extra load would be a huge problem.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,286
  • Gender: Female
Re: How to show who is answering a topic?
« Reply #3 on: December 04, 2018, 04:43:52 PM »
No, because there’s no way to see who is typing, unless it sent that back to the server every few seconds, and then updated you every few seconds. Unless on a very large server, the extra load would be a huge problem.
What about those viewing the reply page? Wouldn't be accurate depending on the situation, but neither is the viewing list for some.
What is real?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,560
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: How to show who is answering a topic?
« Reply #4 on: December 04, 2018, 04:44:28 PM »
Fairly unless they are using quick reply. Like I am doing now.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline PaperseraNet

  • Semi-Newbie
  • *
  • Posts: 10
Re: How to show who is answering a topic?
« Reply #5 on: December 04, 2018, 04:51:12 PM »
First of all thanks for your replies!

What about those viewing the reply page? Wouldn't be accurate depending on the situation, but neither is the viewing list for some.

Good idea.... but...

Fairly unless they are using quick reply. Like I am doing now.

soon "destroyed" by vbgamer45 ;D

BTW, maybe I'll use it at the same. Its goal is to avoid moderatros moving topics while users are writing their replies, so I think this could be an acceptable solution: it gives more information than nothing at all...

Thanks,

  - Paolo

Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,286
  • Gender: Female
Re: How to show who is answering a topic?
« Reply #6 on: December 05, 2018, 02:42:36 AM »
Fairly unless they are using quick reply. Like I am doing now.
Yep. And viewing list also doesn't help for people who open more than one tab. Both depend on how users use it to be of any use. Probably quick reply would be a more common offender though :P
What is real?