Plogger 图库 -- 简单的定制问题
我想知道是否可以通过对 Plogger 模板进行简单编辑来在缩略图下显示文件名而不是默认的“标题”?我正在创建一个大型画廊,需要在拇指下有一个描述性名称,此时必须手动为每个画廊添加标题。可以在此处查看示例(请注意,拇指下方没有出现任何文本(b/c 标题未添加)。
感谢您在这里提供的任何帮助。
I'm wondering if it's possible via a simple edit to the Plogger template to display filenames under thumbnails instead of the default "caption"? I'm creating a large gallery and need to have a descriptive name under the thumbs and at this point must manually add a caption for each. An example can be viewed here (note that no text appears under the thumbs b/c captions were not added).
Thanks for any assistance here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我觉得很傻,但这都是一个学习过程......对于那些在修改 Plogger gallery 脚本时可能遇到同样问题的人,我在深入研究源代码后发现我可以简单地将“plogger_get_picture_caption”更改为“plogger_get_picture_filename” " 在相应主题目录中的 album.php 文件中。相当合乎逻辑的解决方案:)
well I feel silly, but it's all a learning process... to those on here who might encounter the same question in modifying the Plogger gallery script, I discovered after some digging through the source that I could simply change "plogger_get_picture_caption" to "plogger_get_picture_filename" in the album.php file within the appropriate theme directory. rather logical solution :)
导入脚本不存储原始文件名的大小写,因此获取它的最佳方法是在导入时。
您可以修改 /plog-admin/plog-import.php 以在导入时将文件名放在标题字段中,方法是将行(315?)更改
为:
The import script does not store the case of the original filename, so the best way to get it is while importing.
You can modify /plog-admin/plog-import.php to put the filename in the caption field when importing by changing the line (315?) that reads:
to: