Plogger gallery -- simple customization question
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 开发者_如何学JAVAadd 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.
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 :)
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:
<input type="text" size="60" style="width: 95%;" name="captions['.$file_key.']" /><br />
to:
<input type="text" size="60" style="width: 95%;" name="captions['.$file_key.']" value="'.substr(basename($files[$i]), 0, -4).'" /><br />
精彩评论