-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update valine comment system version #345
Conversation
Can this share the same class |
@sli1989
|
@sli1989 , |
that's because i clicked the post. I mean the view=0 situation. |
@sli1989 |
@xCss So, Valine will count visitors? It's current visitors counting (like was in HyperComments) or total counting for post (this function already exists in NexT, right?) |
@ivan-nginx Yes, Valine has been able to count visitors, But this feature is optional. The original NexT already contains this method, I think we need to give users more choices. |
@xCss so, for count visitors option user need to be loggen in Valine? I mean how about LC Security Plugin? |
@ivan-nginx Sorry, Valine can't call |
@ivan-nginx And the count visitors of the Valine is a private method, no external calls are provided. |
That's the problem, the view of new post is blank not the '0'... |
@sli1989 , Sorry, the bug has been reproduced, this is my logical error. |
@ivan-nginx For now, it's the same function for leancloud counter without security setting. don't need to be logged. the same appid and appkey, the same steps to add Lines 635 to 645 in ec18888
@xCss thanks. But for next user not use the integrated |
@sli1989 In fact, the number of visits in the Valine will automatically create the class, and you don't need to manually create the There are no conflicts between the two methods, and - {% if theme.leancloud_visitors.enable %}
+ {% if theme.leancloud_visitors.enable and !theme.valine.visitor %} |
Oh, U mean valine visitor automatically creates the class |
Maybe not, it's the way provided by valine comments. We cannot force users to use valine. But some intructions needed to be added in valine setting section in By the way, there seems a conflict about the sdk version (reinitiating problem with two version) when use |
@sli1989 @ivan-nginx Don't force users to choose. Other comment systems still need In fact, the Valine uses the same class |
I mean that's cases:
|
There seems a conflict about the sdk version (reinitiating problem with two version, don't how to solve) when using internal leancoud_visitors and valine comment at the same time. So we maybe suggest users turn off the internal leancoud_visitors when using valine comment.
As said before, there are no conflicts between Counter class introduced by the two methods. This can be seen as redundant.
Need @xCss to develop maybe. |
If it's possible, yes. |
@xCss |
* Update valine comment system version * Update valine visitor annotation * Update valine instruction
* Update valine comment system version * Update valine visitor annotation * Update valine instruction
Docs updated in 8c1b655
|
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number(s): N/A
What is the new behavior?
Description about this pull, in several words...
How to use?
In NexT
_config.yml
:Does this PR introduce a breaking change?