使用 Imagecache 的评论中用户个人资料图片无法正确显示

发布于 2024-09-12 14:05:30 字数 227 浏览 0 评论 0原文

我有一个 Drupal 设置,并为用户配置文件创建了一个 Imagecache 预设来创建缩略图。

我在节点注释上启用了用户图片,但图片无法正确显示

当我查看源代码时,它显示正确的路径是“sites/default/files/pictures”等,但因为节点路径类似于 /node/9图片的输出路径不正确

我可以更改 comment.tpl 文件并添加绝对路径,但我不确定这是否是最好的做法

I have a Drupal setup, and have created an Imagecache preset for the user profile to create a thumbnail picture.

I have enabled user pictures on node comments, but the picture is not displaying correctly

When I view the source, it shows the correct path being "sites/default/files/pictures" etc but ecause the node path is something like /node/9 the path being output for the picture is incorrect

I could change the comment.tpl file and add in the absolute path, but im not sure if this is the best thing to do

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风追烟花雨 2024-09-19 14:05:30

您是否使用ImageCache 配置文件模块?如果没有,我建议启用它。此外,最近对用户图片正在使用的上下文的检测进行了一些改进,因此您可能想尝试最新的开发版本。有关详细信息,请参阅 nid 760900。

Are you using the ImageCache Profiles module? If not, I'd recommend enabling it. Also, there were some recent improvements to it's detection of what context the user picture is being used, so you may want to try the latest dev release. See nid 760900 for more info.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文