BB’s Blog
Photo Gallery:创建MT图片博客
前天在BBS有人向我咨询了MovableType 架设的一些问题。这个人满喜欢摄影的,于是就想向他推荐使用Photo Gallery 插件。 这个插件很适合喜欢在博客上存放图片的人使用,具体效果可以查看本站的猫盖网 。该插件其实是通过MT 平台进行图片发布,并结合一模版使其动态化。 安装说明:下载解压插件,将其中的photogallery目录上传到Plugins目录中。 然后进入单博客的主菜单在“Plugin Actions”中“Create Photo Gallery”,然后系统会开设该Photo博客。 重建全站后,每当你要更新Photo博客,你需要从“Plugin Actions”中点入“Upload Photo to Gallery”进行新增日志。使用方法简单,大家随便点点就知道了。 注:该插件有个细节的地方没有做好,如果你的博客和MT操作平台不在同个目录,你则需要将plugins/PhotoGallery/templates/中的meta 目录复制到生成的博客中去。否则会出现显示错误: Warning: main(e:\\web\\zhongjia\\web/meta/functions/all.php) [function.main]: failed to open stream: No such file or directory in e:\web\zhongjia\web\bblog\maogai\index.php on line 9 Warning: main(e:\\web\\zhongjia\\web/meta/functions/all.php) [function.main]: failed to open stream: No such file or directory in e:\web\zhongjia\web\bblog\maogai\index.php on line 9 Warning: main() [function.include]: Failed opening 'e:\\web\\zhongjia\\web/meta/functions/all.php' for inclusion (include_path='.;c:\php4\pear') in e:\web\zhongjia\web\bblog\maogai\index.php on line 9 Fatal error: Call to undefined function: dochead() in e:\web\zhongjia\web\bblog\maogai\index.php on line 11 如果是多用户使用该插件,你可以进入PhotoGallery\templates\meta\templates 目录中的general-html和general-php目录,并将其中文件的 meta 标签全部替换为plugins/PhotoGallery/templates/meta 。这样就无须将meta 目录复制到相关博客中去了。 当然如果你不想让所有的博客都有开通Photo 博客的权限,你可以进入plugins\PhotoGallery\tmp 编辑edit_blog.tmpl 文件。在: <TMPL_IF NAME=CAN_EDIT_AUTHORS> <h2><MT_TRANS phrase="New Photo Gallery Settings"></h2> <p class="page-desc"><MT_TRANS phrase="From this screen you can specify the basic information needed to create a weblog. Once you click the save button, your weblog will be created and you can continue to customize its settings and templates, or just simply start posting."></p> <TMPL_IF NAME=SAVED> <div class="message"><MT_TRANS phrase="Your photo gallery configuration has been saved."> <TMPL_INCLUDE NAME="rebuild-stub.tmpl"></div> </TMPL_IF> …… <div style="text-align: center;"> <input type="submit" value="<MT_TRANS phrase="Save Changes">" /> </div> </form> </div> </TMPL_IF> 添加红字部分。这样只有拥有管理员权限的用户才可以开设PHoto博客。 注:该插件需要Image::Magick 模块的支持,并且博客名必须有英文,否则无法在IE7下显示。
Comments(0)
BB’s Blog: version mobile