-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Comment turned off #3680
Comments
@fizi Which LAN is supposed to display? I can only find LAN_THEME_1 which is specific to the _blank theme |
If I disable the comment example on the nesw item - "Comments are locked" - not appears the text on the News. If I enable the comment the number of comments appears. |
I found the reason why, but question (perhaps also for @Jimmi08): when comments on news items are disabled, do you really want to show the text that comments are locked? I can make it like this for example: BUT, I can also imagine that you may want to display nothing at all... Ideally, this should be defined by templating but as far as I can see, this method is called anyway regardless of the template. |
The same situation applies to custom pages. Self note: news: |
@Moc
OR Allow users to post comments NO - no message (general off, commenting is not available) I have no idea (no tested) what happens if there are already comments and you change post/page settings. |
@Jimmi08 Yeah I would agree with your second option. I am not a fan of option 1 because it would require storing the 'history' of news items. |
I test it...the shortcode |
Done. Please test and let me know if this is how you want it. |
@fizi Well this doesn't look good haha. Which theme are you using in the screenshot? What is the shortcode that is used in the news template to display that bit that you circled? |
I see this is your own theme. Does it use a custom news template? If yes, can you share that news template code with me please? You can send it by email or on Gitter. |
@fizi can you please give me some feedback on this? :) What is the shortcode that is used to display the text that you circled in your screenshot? |
I use {NEWSCOMMENTS} shortcode. |
@fizi I cannot reproduce this at all. The {NEWSCOMMENTS} will output ''Disabled" when the comments are disabled. I do not see why it would output "Comments are turned off for this item" in that place. What are your settings for:
|
@fizi Do you still experience this issue with the latest files? |
Reminder: add pref to enable/disable showing the comments locked message. Or debug message? Admin only? |
@Moc It is something different than for news. So part solution is changing only cpagecomments() for now.
|
Reminder for myself. Make this a debug message. |
Changed the message to a debug message which is shown to admins only. I think this issue can now be closed. Please let me know if there are any questions or suggestions related to this issue. @fizi If you can still reproduce the issue you posted in your screenshot, let me know and I'll figure it out. |
@Moc Why don't you test e_DEBUG? It is annoying for admins too... |
It should only display when debug mode is enabled (because of It may occur on non-bootstrap themes though, you have point there. |
Done |
@Moc there is code for comments off:
but comment_class uses (for not to display comment form)
It could be confusing because comment manager uses this in inverse way... That shortcode should maybe look like this:
Or like with news (there is different logic/order of checks)
|
If I turned off the comment (cpage) the comment turned off message not appears ("comment rurned off for this item").
The text was updated successfully, but these errors were encountered: