11 十二 2009, 11:32下午
不明白:
by 摇光

4 comments
333 views

CMS:Content Management System

Ten Simple Rules for Choosing the Perfect CMS + Excellent Options,Plidezus推荐的一篇文章。

之前一直是使用Windows Live Writer写日志,今天在公司突然想更新一篇,新建博文居然遇到这囧事。
14551
Google一下,没有看到类似问题,那就先覆盖一下原文件试试吧。然后就OK了。
more »

23 十 2009, 9:18下午
收藏分享:
by 摇光

1 comment
309 views

按时间显示提示语

<script Language="Javascript">
  var text="";   day = new Date( );  time = day.getHours( );
  if (( time>=0) && (time < 7 ))
    text="夜猫子,要注意身体哦!"
  if (( time >= 7 ) && (time < 12))
    text="早上好啊,今天心情不错吧!"
  if (( time >= 12) && (time < 14))
    text="午休时间,要保持睡眠哦!"
  if (( time >=14) && (time < 18))
    text="祝您下午工作愉快!" 
  if ((time >= 18) && (time <= 22))
    text="您又来了,可别忘了多回帖哦!"
  if ((time >= 22) && (time < 24))
    text="朋友,您应该休息了!"
  document.write(text)
</script>
26 七 2009, 12:44上午
不明白:
by 摇光

leave a comment
368 views

备忘:如何在Zencart中添加Product Type

添加Product Type并不是新建文件就可以的,同时还需要配合数据库。可以参考product_music。不过通常一个Product Type会涉及到这些目录下的文件,以product_music为例:

./admin/product_music.php
./admin/includes/languages/english/product_music.php
./admin/includes/languages/english/extra_definitions/product_music.php
./admin/includes/boxes/extra_boxes/product_music_extras_dhtml.php
./admin/includes/modules/product_music
./admin/includes/functions/extra_functions/product_music_functions.php
./includes/languages/english/product_music_info.php
./includes/languages/english/extra_definitions/product_music.php
./includes/modules/pages/product_music_info
./includes/templates/template_default/templates/tpl_product_music_info_display.php
./includes/templates/custom_template/templates/tpl_product_music_info_display.php

更多的内容Zencart论坛

25 七 2009, 11:11下午
不明白:
by 摇光

1 comment
859 views

备忘:如何在zencart中添加Define Pages

默认的Zencart安装包中居然没有About US页面,于是就想尝试通过新建Define pages About US页。开始模仿着contact_us页在includes/english文件夹中添加相应的About页,结果并未成功,只能Google一下,找到这篇关于添加Want to Add More Custom Pages into Zen Cart?的文档。简单的说就是通过一个小程序生成所有需要的文件列表(无需修改数据库)。

generator

more »