user-pic

Photo Gallery:创建MT图片博客

Vote 0 Votes

前天在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目录,并将其中文件的 <$MTBlogRelativeURL$>meta 标签全部替换为<$MTCGIPath$>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下显示。

Add a Reply

Forum Groups

Blogcs 基于MT平台的BSP

MovableType 中文化

1 0

Last Topic: Movable Type 中文化 - 平生一笑 by bb on 2008年10月11日

1 0

Last Topic: Zhu8's Weblog:猪八的网:浮生志 by Zhu8 on 2008年10月16日

MovableType 问题咨询

Be the first to post a topic in this forum

MovableType 使用

16 11

Last Topic: Image::Magick 模块的安装 by bb on 2008年11月 9日

30 35

Last Topic: MT-Twitter:将MT文章同步到Twitter by bb on 2008年3月 9日

22 1

Last Topic: 修改MT的作者归档路径 by bb on 2008年10月25日

MovableType 模板

Be the first to post a topic in this forum

22 17

Last Topic: MovableType评论格式化 replies-to-replies by bb on 2008年10月15日

MovableType 延伸

14 17

Last Topic: 从Wordpress转移到Movabletype by bb on 2007年5月12日

2 2

Last Topic: 最新版MovableType 4.22 已经发布 by bb on 2008年11月19日