歡迎光臨, 訪客. 請先 登入註冊一個帳號.
五月 04, 2024, 08:47:46 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: 1 [2] 3
16  開發 / 模版設計 / 请教一下模版中使用资源文件的方法 於: 五月 21, 2006, 09:47:57 下午
我想在模版中引用用户在资源文件中上传的文件,不知道是否有办法:
1. 根据文件名判断是否存在某个文件? (包含路径,如果麻烦的话,只能判断跟文件夹中也可)
2. 根据文件名获得资源对象($res)或者资源url?


17  支援 / 使用與操作 / Re: 很多垃圾逆向链接,有没有办法屏蔽 於: 五月 21, 2006, 12:17:11 上午
to oldwain

逆向链接跟trackback不是一回事吧。另外我觉得直接关闭trackback不是明智的方法,那叫因噎废食,呵呵。

还有个很奇怪的问题。
1.我是备受垃圾引用困扰的。现在关闭了逆向链接,垃圾引用也没有了。

如果我理解的不错的话,你说的逆向链接就是别人向你发出的trackback.

如果理解不一致的话,不知道你所说的"关闭了逆向链接"指的是关闭哪个选项? 难道不是"trackback_server_enabled"?

18  支援 / 使用與操作 / Re: 很多垃圾逆向链接,有没有办法屏蔽 於: 五月 18, 2006, 10:00:47 上午
在没有更好的解决办法情况下, 也许比较好的做法应该是Lifetype把是否启用Trackback的功能放到每个blog来控制, 而不是像现在这样只能整个系统统一启用/停用.

不知1.1版是否对这个有改进?
19  開發 / 模版發表 / Re: [LifeType 模版]介绍一下我的可动态改变布局和配色的模板ow_ms_v12 於: 五月 18, 2006, 12:00:15 上午
v1.3 发布
http://oldwain.itpub.net/post/6/96314

功能:
  • 真正的多语言支持
  • 更快的页面显示速度
  • 更方便快捷的定制功能
  • 更好的coComment支持
  • 对ma.gnolia CSS的支持
  • 对authimage(回复验证码)插件的支持(new!)
  • 对stickypost(置顶公告)插件的支持(new!)
20  開發 / 模版發表 / Re: [LifeType 模版]介绍一下我的可动态改变布局和配色的模板ow_ms_v12 於: 四月 13, 2006, 12:49:56 下午
受wordplog模板的启发, 正在全面改进我的ow_ms模板.
  • 真正的多语言支持
  • 更快的页面显示速度
  • 更方便快捷的定制功能
  • 更好的coComment支持
  • 对ma.gnolia CSS的支持
  • ......

简体中文(gb2312)测试页面: http://oldwain.itpub.net/
英文测试页面: http://tmplttest.itpub.net/
繁体中文(utf8)测试页面: http://www.cnplog.com/blog/78
21  開發 / 模版發表 / Re: [LifeType 模版]介绍一下我的可动态改变布局和配色的模板ow_ms_v12 於: 四月 13, 2006, 12:46:20 下午
你可以參考一下在 svn templates repository 下有一個叫做 wordplog 由 bcse 開發的模板,就是用 smarty 的 config file 來作。
回想起來,這個 wordplog 模版制做時,bcse 為了 config file 目錄的問題搞了很久很複雜。
lss

确实如此。
前段时间好好琢磨了一下这个wordplog模板。发现在使用二级域名的情况下还是有问题:
程式碼:
{assign var="baseUrl" value=$url->getBaseUrl()}
这行代码在二级域名下,会得到二级域名的url (比如在我的blog中,会得到: http://oldwain.itpub.net/)
但随后的:
程式碼:
{assign var="configFilepath" value=$url->getTemplateFile("settings.conf")|replace:"$baseUrl":"$rootPath"}
由于$url->getTemplateFile得到是bsp的域名(http://blog.itpub.net), 导致replace不能起作用。

解决方法: 在$url->getBaseUrl()时不使用二级域名(加入参数false)
程式碼:
{assign var="baseUrl" value=$url->getBaseUrl(false)}
22  建議 / 發表與交流 / Re: 为什么demo和dev两个站点都不支持上传模板了 於: 四月 12, 2006, 12:12:04 下午
谢谢mark!

还是有问题:
Exception message: mkdir(./templates/blog_33): Permission denied
Error code: 2
-- Backtrace --
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/file/file.class.php(307): mkdir
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/template/templatesets/templatesetstorage.class.php(317): file.createdir
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/action/admin/adminaddblogtemplateaction.class.php(104): templatesetstorage.createblogtemplatefolder
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/action/admin/adminaddblogtemplateaction.class.php(211): adminaddblogtemplateaction._performuploadtemplate
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/controller/controller.class.php(309): adminaddblogtemplateaction.perform
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/admin.php(39): admincontroller.process


还要继续麻烦你。
23  建議 / 發表與交流 / Re: 为什么demo和dev两个站点都不支持上传模板了 於: 四月 09, 2006, 09:42:37 下午
因為 exec 被關起來了!我等一下去修改成使用 php_zip 的設定吧!

Mark

期待中。

希望能早日在1.1环境下测试模板。
24  建議 / 發表與交流 / 为什么demo和dev两个站点都不支持上传模板了 於: 四月 06, 2006, 10:37:15 下午
错误信息:

Exception message: exec() has been disabled for security reasons
Error code: 2
-- Backtrace --
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/file/unpacker/zipunpacker.class.php(62): exec
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/file/unpacker/unpacker.class.php(136): zipunpacker.unpack
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/template/templatesandbox.class.php(91): unpacker.unpack
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/action/admin/adminaddblogtemplateaction.class.php(85): templatesandbox.checktemplateset
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/action/admin/adminaddblogtemplateaction.class.php(211): adminaddblogtemplateaction._performuploadtemplate
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/controller/controller.class.php(309): adminaddblogtemplateaction.perform
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/admin.php(39): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/object/exception.class.php:37)
Error code: 2
-- Backtrace --
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/view/view.class.php(316): header
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/view/admin/adminview.class.php(106): view.render
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/view/admin/admintemplatedview.class.php(36): adminview.render
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/view/admin/adminblogtemplatesetslistview.class.php(27): admintemplatedview.render
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/controller/controller.class.php(329): adminblogtemplatesetslistview.render
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/admin.php(39): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/object/exception.class.php:37)
Error code: 2
-- Backtrace --
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/view/view.class.php(177): header
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/view/view.class.php(318): adminblogtemplatesetslistview.sendcontenttype
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/view/admin/adminview.class.php(106): view.render
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/view/admin/admintemplatedview.class.php(36): adminview.render
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/view/admin/adminblogtemplatesetslistview.class.php(27): admintemplatedview.render
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/class/controller/controller.class.php(329): adminblogtemplatesetslistview.render
/raid/apache2/htdocs/plog/demo.lifetype.org.tw/admin.php(39): admincontroller.process
25  支援 / 使用與操作 / Re: 隱藏某個文章分類 於: 三月 16, 2006, 01:47:21 下午
在建立分類的時候,不是可以點選不要顯示在首頁上 這個選項嗎?

不過自從1.02以後的版本,這裡面的文章不會在blog首頁顯示,可是卻會在summary.php這頁顯示出來阿@@


以前没注意这个选项, 又学习了。
 吐舌頭
26  支援 / 使用與操作 / Re: 隱藏某個文章分類 於: 三月 16, 2006, 10:57:53 上午
没有针对分类的功能。

但可以将单独的文章隐藏。 编辑文章,将文章状态设为"草稿"即可。
27  開發 / 模版發表 / Re: [LifeType 模版]介绍一下我的可动态改变布局和配色的模板ow_ms_v12 於: 三月 09, 2006, 02:43:16 下午
Hi oldwain:

你可以整理出一個沒有 GB2312 的模版嗎?我覺得這個 idea 太棒了!我想把他 submit 到 litype 的 模版 repository 中。

Mark

请问在哪里submit呢?
28  開發 / 模版發表 / Re: [LifeType 模版]介绍一下我的可动态改变布局和配色的模板ow_ms_v12 於: 三月 09, 2006, 02:39:28 下午
去掉了中文字符的通用语言版本

demo: http://www.cnplog.com/blog/78

29  開發 / 模版發表 / Re: [LifeType 模版]介绍一下我的可动态改变布局和配色的模板ow_ms_v12 於: 三月 09, 2006, 01:45:27 下午

你可以參考一下在 svn templates repository 下有一個叫做 wordplog 由 bcse 開發的模板,就是用 smarty 的 config file 來作。

Mark

谢谢!
我去看看。
30  開發 / 模版發表 / Re: [LifeType 模版]介绍一下我的可动态改变布局和配色的模板ow_ms_v12 於: 三月 09, 2006, 12:40:31 下午
谢谢mark

一直没有找到模板如何定义自己的locale的方法。 不知有没有什么好的解决方法?

我先试着把这个模板中所有中文都改成英文,提交上来吧。

頁: 1 [2] 3