Topic Visitors Counter Plugin

Hi
I’ve made a simple plugin to display how many visitors are visiting a topic.

https://github.com/saiqulhaq/tvc

This plugin calculates visitors based on session id, so it will not increment the total viewer data if there is multiple browser tabs opening same topic.
It will track user when entering or leaving to another topic, but it can’t update the data if user close the browser tab. However it’s not a big issue, I already have plan for that, I can set expire time for each tracked session and use heartbeat system to check that user still viewing the topic.

I will start to add that functionality and some test after GSOC student apply deadline, so the background of why I create this plugin is because I need more familiarize my self with Discourse.
Few days ago I sent a GSOC Proposal for ‘Webhook for Discourse events’, but I still have no feedback from mentors, and I can’t find who is the mentor, so please let me know who is the mentor so I can contact with him.
Based on this groundwork, I want to propose ‘See who’s writing’ GSOC idea.

I know it’s not useful plugin, but I will very appreciate every feedbacks for this plugin.

6 个赞

I don’t know why you got no feedback, @erlend_sh is in charge of that.

2 个赞

oh okay, I am still waiting patiently
I’m just worrying because the deadline is less than 3 days away

2 个赞

抱歉 Saiqul,审核回复迟了。不过我昨天在评论部分提交了一条评论;GSoC 申请系统不会发送任何相关的通知吗?

为了展示你的能力而开发这样一个插件,这是一个非常好的方法!:thumbsup: 如果你能把插件调试到可以运行的状态,建议将其提交到 Customization > Plugin 目录。

6 个赞

It’s OK, I understand you must have been busy. I want to say thanks to you of your time for reviewing my proposal.
I just checked my email, my proposal file on google docs, and GSoC site, but I can’t find your review. Could you tell me more where you submitted your comment please?

OK absolutely will do.

1 个赞

D’oh! I posted in the admin-only comments section. Sent you a message on Meta instead.

1 个赞

Oh man! Good!
Maybe, finally, we will enjoy a lot of features that have many forums!

You’re going to expand this features?

好的,没问题。我很快会完成基础功能,并提交到 Customization > Plugin 目录,这样如果你不介意的话,我就能收到你的审查意见和反馈了。

6 个赞

Hi @sam

I have read your message_bus library to complete the basic functionality of this plugin
I’ve tried some ways, but the way that works is by add some method on MessageBus middleware
please take a look at this gist.
how do you think? Would it be a problem for MessageBus performance or something awful?

我想看看当前有多少访客(包括登录用户和匿名用户)正在浏览我的论坛。
这个插件能实现这个目的吗?
或者您知道其他方法吗?

如果有一个选项可以显示(或隐藏)该数字给用户,那就太好了。