是否可以只发布 fxml 评论而不让用户自己输入评论?
我想让用户看到对某个主题的评论,而不给他机会输入自己的评论!这可以用 fxml 实现吗? canpost="false" 出于任何原因都不起作用...
这可能吗?
谢谢 马库斯
Im want to let the user to see the comments done to a topic without giving him the opportunity to enter a comment by his one! Is this possible with fxml? canpost="false" doesn't work for any reason...
Is this possible at all?
Thanks
Markus
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,让我们看一下来源。如果我们打开 http://connect.facebook.net/en_US/all.js ,它会包含以下代码:
它是传递给实际小部件 iframe 的参数列表。
坏消息是,尽管它仍然列在他们的文档中(有人感到惊讶吗?),但不再有像
canpost
这样的参数了,所以它只是被忽略了。好消息是
css
参数仍然受支持。在过去的美好时光,他们允许您传递自定义 css(以绝对 url 的形式,http://mysite.com/style.css
),但我怀疑它是否仍然有效。尝试创建隐藏注释框的自定义 css 样式(检查注释 iframe 以获得所需的类名)并通过它。如果这不起作用,那么恐怕你也无能为力。Well lets take a look at sources. If we open
http://connect.facebook.net/en_US/all.js
it has the following piece of code:It is a list of parameters that are getting passed to actual widget iframe.
Bad news is that there is no such parameter as
canpost
anymore even though it is still listed in their docs (anyone surprised?), so it just getting ignored.Good news is that
css
parameter could be still supported. In good old days they allowed you to pass custom css (in a form of absolute url,http://mysite.com/style.css
), but I doubt it still works. Try to create your custom css style with comment box hidden (check comments iframe for required class name) and pass it. If that doesn't work then there is nothing else you can do I'm afraid.