联系QQ:
最近一直有好多人加我,由于时间问题没法一一回复,抱歉,请加群:112499653,到时有问题群里面交流,谢谢大家对本博的支持!!!
Zen Cart的模板设计说简单其实也挺简单的说复杂也比较复杂,需要一定的时间来熟悉。一旦你了解了它的结构,就会慢慢习惯了。
首先要阅读常见问答部分的:如何添加、制作新模板。 Zen Cart的设计没有什么特别,与以前设计HTML页面是一样的。只是整个页面分成了好几个部分,并加入了php代码。
通常,页面分为页眉(header),页脚(footer),边框(sideboxes)。所以设计页面的时候,要记住Zen Cart是如何组织这些页面的。
页面是通过CSS样式表来控制的。样式表控制表格单元的背景图案、字体的颜色和样式等等。所以,假如你需要修改边框标题栏的字体,那么查看样式表文件。
Zen Cart在页面添加图像有两种方式。可以使用图像目录的相对路径,或者在模板中用php变量定义图像。如果你使用https服务器,并且采用相对图像路径,那么https的图像目录下也要有同样的图像,否则https服务器很可能会给出警告提示。
Zen Cart可以设置成任意的html/flash的界面,只是比通常的html页面的设计费时。你可以从修改缺省的模板开始,先修改CSS文件和三栏格式的界面。开始先采用不同的颜色,很快就可以设计出完全不同的风格。
最后,在设计模板前要先计划好你网页的内容,事半功倍。
下面是zen cart页面各部分相对应模板文件的一个列表:
| 文件路径 | 注释 |
| index.php | 主文件 |
| includes/templates/[custom template folder]/common/html_header.php | 页面的head部分 |
| includes/templates/[custom template folder]/common/tpl_main_page.php | 页面的body部分 |
| includes/templates/[custom template folder]/common/tpl_header.php | 所有页面的页眉 |
| (column left) | |
| includes/templates/[custom template folder]/common/main_template_vars.php | 决定页面的内容部分,缺省为 ‘tmp_index_default.php’ |
| 首页 – 缺省 | |
| includes/templates/[custom template folder]/templates/tmp_index_default.php | 首页模板文件 |
| 首页 – 显示分类 | |
| includes/templates/[custom template folder]/templates/tpl_index_categories.php | 首页上显示分类时的模板文件 |
| includes/modules/[custom template folder]/pages/index/category_row.php | 选择要显示的分类 |
| includes/templates/[custom template folder]/templates/tpl_index_category_row.php | 显示分类 |
| 首页 – 显示指定分类 | |
| includes/templates/[custom template folder]/templates/tpl_index_product_list.php | 首页上显示指定的分类时采用的模板文件 |
| includes/modules/[custom template folder]/product_listing.php | 将商品数据添加到数组 |
| includes/templates/[custom template folder]/templates/tpl_modules_product_listing.php | 显示商品数量和商品导航菜单 |
| includes/templates/[custom template folder]/common/tpl_list_box_content.php | 显示商品数组 |
| 商品信息页面 | |
| includes/templates/[custom template folder]/templates/tpl_product_info_display.php | 显示单件商品信息 |
| 购物车页面 | |
| includes/templates/[custom template folder]/templates/tpl_shopping_cart_default.php | 购物车页面 |
| (column right) | |
| includes/templates/[custom template folder]/common/tpl_footer.php | 所有页面的页脚 |
有2篇文档很有参考价值:
http://www.zen-cart.com/modules/ipb/index.php?showtopic=9912
http://www.zen-cart.com/modules/xoopsfaq/index.php?cat_id=3#14
做外贸的都知道 要推一个站很难,而且外链大部分都是靠写博客,速度慢而且工作量大,选择一些PR高的高质量的外链很有必要,
下面是一些我常用的seo外链论坛,希望对做外贸推广的同行有些帮助!
http://www.adobe.com/support/forums/ 9
http://chronicle.com/forums/ 8 http://chronicle.com/forums/ 8
http://codingforums.com/ 8 http://codingforums.com/ 8
http://forum.joomla.org/ 8 http://forum.joomla.org/ 8
http://forum.mambo-foundation.org/ 8 http://forum.mambo-foundation.org/ 8
http://forums.techcrunch.com/ 8 http://forums.techcrunch.com/ 8
http://mathforum.org/ 8 http://mathforum.org/ 8
http://www.accessibilityforum.org/ 8 http://www.accessibilityforum.org/ 8
http://www.bungie.net/Forums/default.aspx 8 http://www.bungie.net/Forums/default.aspx 8
http://www.flickr.com/help/forum/ 8 http://www.flickr.com/help/forum/ 8
http://www.gamespot.com/forums/index.html 8 http://www.gamespot.com/forums/index.html 8
http://www.joomlart.com/forums/ 8 http://www.joomlart.com/forums/ 8
http://www.spiegel.de/forum/ 8 http://www.spiegel.de/forum/ 8
http://amsci-forum.amsci.org/archive…ess-Forum.html 7 http://amsci-forum.amsci.org/archive…ess-Forum.html 7
http://bbpress.org/forums/ 7 http://bbpress.org/forums/ 7
http://communities.canada.com/sharei…s/default.aspx 7 http://communities.canada.com/sharei…s/default.aspx 7
http://csscreator.com/css-forum/ 7 http://csscreator.com/css-forum/ 7
http://dev.netvibes.com/forum/ 7 http://dev.netvibes.com/forum/ 7
http://forum.meebo.com/ 7 http://forum.meebo.com/ 7
http://forum.physorg.com/ 7 http://forum.physorg.com/ 7
http://forum.sun.com/ 7 http://forum.sun.com/ 7
http://forum.videolan.org/ 7 http://forum.videolan.org/ 7
http://forum.wolframscience.com/ 7 http://forum.wolframscience.com/ 7
http://forums.amd.com/ 7 http://forums.amd.com/ 7
http://forums.cnet.com/ 7 http://forums.cnet.com/ 7
http://forums.cpanel.net/ 7 http://forums.cpanel.net/ 7
http://forums.feedburner.com/ 7 http://forums.feedburner.com/ 7
http://forums.invisionpower.com/ 7 http://forums.invisionpower.com/ 7
http://forums.lemonde.fr/ 7 http://forums.lemonde.fr/ 7
http://forums.mozillazine.org/viewforum.php?f=38 7 http://forums.mozillazine.org/viewforum.php?f=38 7
http://forums.mysql.com/ 7 http://forums.mysql.com/ 7
http://forums.oracle.com/forums/forum.jspa?forumID=83 7 http://forums.oracle.com/forums/forum.jspa?forumID=83 7
http://forums.photobucket.com/ 7 http://forums.photobucket.com/ 7
http://forums.sae.org/ 7 http://forums.sae.org/ 7
http://forums.searchenginewatch.com/ 7 http://forums.searchenginewatch.com/ 7
http://forums.secondlife.com/ 7 http://forums.secondlife.com/ 7
http://forums.sixapart.com/ 7 http://forums.sixapart.com/ 7
http://forums.winamp.com/ 7 http://forums.winamp.com/ 7
http://forums.wireless.att.com/ 7 http://forums.wireless.att.com/ 7
http://forums.xkcd.com/ 7 http://forums.xkcd.com/ 7
http://mathforum.org/library/ 7 http://mathforum.org/library/ 7
http://mu.wordpress.org/forums/ 7 http://mu.wordpress.org/forums/ 7
http://network.nature.com/forums 7 http://network.nature.com/forums 7
http://pewforum.org/ 7 http://pewforum.org/ 7
http://pkp.sfu.ca/support/forum/ 7 http://pkp.sfu.ca/support/forum/ 7
http://sourceforge.net/forum/forum.php?forum_id=45797 7 http://sourceforge.net/forum/forum.php?forum_id=45797 7
http://wordpress.org/support/forum/12 7 http://wordpress.org/support/forum/12 7
http://www.adobe.com/cfusion/webforu…cfm?forumid=12 7 http://www.adobe.com/cfusion/webforu…cfm?forumid=12 7
http://www.adobeforums.com/cgi-bin/webx/.3bc2cf0a/ 7 http://www.adobeforums.com/cgi-bin/webx/.3bc2cf0a/ 7
http://www.archive.org/iathreads/forums.php 7 http://www.archive.org/iathreads/forums.php 7
http://www.bookforum.com/ 7 http://www.bookforum.com/ 7
http://www.bravenet.com/webtools/forum/ 7 http://www.bravenet.com/webtools/forum/ 7
http://www.cabforum.org/ 7 http://www.cabforum.org/ 7
http://www.concierge.com/forums 7 http://www.concierge.com/forums 7
http://www.dokeos.com/forum/ 7 http://www.dokeos.com/forum/ 7
http://www.etomite.com/forums/ 7 http://www.etomite.com/forums/ 7
http://www.feeddigest.com/forums/ 7 http://www.feeddigest.com/forums/ 7
http://www.flock.com/forums 7 http://www.flock.com/forums 7
http://www.foreignpolicy.com/resources/forum/index.php 7 http://www.foreignpolicy.com/resources/forum/index.php 7
http://www.forum.nokia.com/ 7 http://www.forum.nokia.com/ 7
http://www.freedomforum.org/ 7 http://www.freedomforum.org/ 7
http://www.gridforum.org/ 7 http://www.gridforum.org/ 7
http://www.gwpforum.org/ 7 http://www.gwpforum.org/ 7
http://www.intgovforum.org/ 7 http://www.intgovforum.org/ 7
http://www.iptv-forum.com/ 7 http://www.iptv-forum.com/ 7
http://www.ipv6forum.com/ 7 http://www.ipv6forum.com/ 7
http://www.mozilla.org/community/developer-forums.html 7 http://www.mozilla.org/community/developer-forums.html 7
http://www.mpi-forum.org/ 7 http://www.mpi-forum.org/ 7
http://www.oaforum.org/ 7 http://www.oaforum.org/ 7
http://www.openspf.org/Forums 7 http://www.openspf.org/Forums 7
http://www.oregonlive.com/forums/ 7 http://www.oregonlive.com/forums/ 7
http://www.pageflakes.com/Community/Help/Forum.aspx 7 http://www.pageflakes.com/Community/Help/Forum.aspx 7
http://www.soros.org/openaccess/forum.shtml 7 http://www.soros.org/openaccess/forum.shtml 7
http://www.stsforum.org/ 7 http://www.stsforum.org/ 7
http://www.thenationalforum.org/ 7 http://www.thenationalforum.org/ 7
http://www.wapforum.org/ 7 http://www.wapforum.org/ 7
http://www.wimaxforum.org/ 7 http://www.wimaxforum.org/ 7
http://www.wrensoft.com/forum/ 7 http://www.wrensoft.com/forum/ 7
http://www.zimbra.com/forums/ 7 http://www.zimbra.com/forums/ 7
http://www2.konfabulator.com/forums/ 7 http://www2.konfabulator.com/forums/ 7
如果你的ZenCart需要一个Blog来发布一些你的最新动态,可以试试WordPress,并且用WOZ这个ZenCart的Module来把它们关联起来。WOZ的全名叫WordPress On ZenCart。
下面就详细介绍一下WOZ的安装方法,当然你可以在WOZ包里找到英文的安装说明。我所使用的版本为ZenCart1.3.8和WordPress2.8.5,至于其它版本能否集成,没有测试过。
WordPress on ZenCart总的来说有两种安装模式:
第一种是把WordPress的文件全部解压到ZenCart的根目录下,另一种方法是把WordPress单独放到ZenCart下新建的一个目录里。
两种方法最后访问WordPress的地址都是:[Zen-Cart URL]/index.php?main_page=wordpress
第一步,安装WordPress
把WordPress解压到你的ZenCart目录下,然后把WordPress的文件夹名改为blog,呵,看起来感觉会爽一些。
这一步的安装和普通的WordPress安装没啥区别。
第二步:设置WordPress
在WordPress的后台设置一下,setting -> General -> Blog address(URL)
把Blog address (URL)改为[Zen-Cart URL],即http://your.zen-cart.com
把主题设为默认主题。
第三步:上传WOZ的文件
建议用ftp直接覆盖:
把WOZ解压后的ZC_ROOT目录下的文件上传到服务器Zen-cart的安装目录下。
把WOZ解压后的WP_ROOT目录下的文件上传到服务器WordPress的安装目录下。
再把/ZC_ROOT/includes/templates/MY_TEMP/里的CSS文件上传到你的Zen-cart模板里的CSS文件夹里。这个是WordPress的显示主题。
第四步:修改WordPress的文件
在你的WordPress安装目录下,找到[Path of WordPress]/wp-include/template-loader.php,把所有的“exit;”都替换成“return;”。
如果你的WordPress版本比较新,就不需要做这一步的工作了。
第五步:修改Zen-cart文件
打开Zen-cart安装目录下的[Path of Zen-Cart]/includes/extra_configures/wordpress-config.php,把
define (’ABSPATH’,’/var/www/vhost/example.com/public_html/blog/’);
替换成
define (’ABSPATH’,’[Path of WordPress]‘);
比如说,在我本地我是改为这样的东西:
define (’ABSPATH’,’E:/mywebs/zen-cart/blog/’);
记住,这个路径得是你服务器上的绝对路径。
第六步:布局设置
在ZenCart后台管理面板的admin panel › tools › Layout Boxes Controller里,选择打开你需要的WordPress侧栏框。所有和WordPress有关的侧栏框都是以WP_XXX格式存在的。
第七步:检查
现在你可以通过
http://your.zen-cart.com/index.php?main_page=wordpress
这个网址来访问你的WordPress了。
如果你能看到WordPress,则表明你已经把WordPress集成到了ZenCart里了。
完成了这七步,基本上就把WordPress的显示页面整合到了ZenCart里面。
11月11日,4根光光的棍子靠一起,民间发起的“光棍节”揭竿而起。这一天,光光们大张旗鼓地呼朋唤友穿街过市,双双们破天慌地只能躲在角落里偷偷地甜蜜,要再像别的节日那么当众招摇,就等着挨光光们的臭鸡蛋吧。
都两千零五年了,理想中的爱情从日剧演到韩剧,千篇一律的SG加MM,就是不肯照顾一下恐龙和赖蛤蟆的感情。刚刚11月中旬,就开始感觉外头天寒地冻的。
想着即将到来的圣诞节就开始不寒而栗,圣诞之后还有情人节,情人节后还有七夕节、中秋节,压抑良久的男光棍女光棍们终于按捺不住满腔的怨气,从365天里找出一个小山头来自行占领,然后郑重其事地大声宣布这一天为——“光棍节”。
这一天,是11月11日。立刻就有人揭杆响应。这一天,光光们大张旗鼓地呼朋唤友穿街过市,双双们破天慌地只能躲在角落里偷偷地甜蜜,要再像别的节日那么当众招摇,就等着挨光光们的臭鸡蛋吧。
11月11日,4根光光的棍子靠一起,虽说仍然是个个形单影只,可是毕竟声势大了,受够了歧视和冷落,光棍们终于悟出了个“棍多力量大”的道理。
最初的时候,这个节日还只是在大学校园里兴风作浪。刚毕业不久的Magie回忆说,在上外读大学的时候,每到11月11日晚上11点钟,东体育会路的生活区就会有人乒乒乓乓敲各种“打击乐器”,脸盆、饭碗、杯子,什么声音都有,然后就会听见“光棍万岁”之类的叫声,男女声部都有。最特别的是会听见 “某某某我爱你”之类的宣言,那就算是节日的高潮部分了。
后来,光棍节的始作俑者们陆续地离开校园,光棍节的“光荣传统”一边已经在校园里生根发芽,一边被少数始终没人要的光光们带到了校园外面,开始在更大的范围里兴风作浪起来。
干杯,以节日的名义
虽然没有假期,没有过节费,可是来自民间力量的节日,其影响力却绝对不可小觑。几年下来,竟然还形成了一套颇为像样的“说法”。
1月1号是小光棍节,1月11号和11月1号是中光棍节,11月11号大光棍节。男光棍叫“光光”,女光棍叫“明明”,成了对的就叫“双双”。光棍节的吉祥物是4根油条加1个包子,摆在一起,就是11.11。最近有人讨论阴历阳历11月11重合的可能性,居然还有个人说六十年一个轮回,笑死!
现在一年一度的光光节就要到了,在这让人欢喜让人愁的日子里,到底该如何度过?是独自一个人借酒浇愁,感慨自己还是光光,还是众光光们一起举杯同祝“我还是光光,幸福呀”?总之这样的日子不多,不能浪费就是了。
光光还是双双?
因为爱情总在行走中,所以光光和明明的队伍也总在流动着。
每一年,都有新的光光成长起来,也有老的光光成功“脱光”,更有脱光之后好景不长重回光光队伍的。而在每个光光的内心里,也许每个光棍节里最大的愿望,就是不用再过明年的光光节。所以他们说,要把有限的生命投入到无限的脱光事业中去。
做一个“光光”很辛苦,袜子没有人洗,被子没有人叠,更可悲的是,当你泡吧回来,饭菜居然没有人做。做一个“光光”很寂寞,苦闷的时候惟有灌水,心烦的时候惟有体坛,颤巍巍地拨动电话,却始终找不到你的那个什么。
双双是快乐的,光光也应该是快乐的,但所有的光光都必将成为双双。孤独的人并不可耻。兄弟姐妹们,节日快乐!
为了不在即将到来的光棍节里被当成“土人”对待,大家有必要熟悉一下光光族的全套新名词,否则到那一天,你会显得很傻。
光光:男光棍
明明:女光棍
脱光:男光棍名草有主
失明:女光棍名花有主
复光:重新做回男光棍
挂牌:在BBS上贴出自我推销的帖子,招蜂引蝶或是招来臭鸡蛋。
摘牌:脱光(失明)成功,摘下牌子。
The history of Christmas dates back over 4000 years. Many of our Christmas traditions were celebrated centuries before the Christ child was born. The 12 days of Christmas, the bright fires, the yule log, the giving of gifts, carnivals(parades) with floats, carolers who sing while going from house to house, the holiday feasts, and the church processions can all be traced back to the early Mesopotamians.
Many of these traditions began with the Mesopotamian (美索不达米亚) celebration of New Years. The Mesopotamians believed in many gods, and as their chief god – Marduk (马杜克,古代巴比伦人的主神,原为巴比伦的太阳神). Each year as winter arrived it was believed that Marduk would do battle with the monsters of chaos. To assist Marduk in his struggle the Mesopotamians held a festival for the New Year. This was Zagmuk, the New Year”s festival that lasted for 12 days.
The Mesopotamian king would return to the temple of Marduk and swear his faithfulness to the god. The traditions called for the king to die at the end of the year and to return with Marduk to battle at his side.
To spare their king, the Mesopotamians used the idea of a “mock” king. A criminal was chosen and dressed in royal clothes. He was given all the respect and privileges of a real king. At the end of the celebration the “mock” king was stripped of the royal clothes and slain, sparing the life of the real king.
The Roman”s celebrated their god Saturn. Their festival was called Saturnalia which began the middle of December and ended January 1st. With cries of “Jo Saturnalia!” the celebration would include masquerades (化妆舞会) in the streets, big festive meals, visiting friends and the exchange of good-luck gifts called Strenae (lucky fruits).
“Jo Saturnalia!” was a fun and festive time for the Romans, but the Christians though it an abomination (深恶痛绝) to honor the pagan (异教) god. The early Christians wanted to keep the birthday of their Christ child a solemn and religious holiday, not one of cheer and merriment as was the pagan Saturnalia.
But as Christianity spread they were alarmed by the continuing celebration of pagan customs and Saturnalia among their converts. At first the Church forbid this kind of celebration. But it was to no avail (徒劳). Eventually it was decided that the celebration would be tamed and made into a celebration fit for the Christian Son of God.
Some legends claim that the Christian “Christmas” celebration was invented to compete against the pagan celebrations of December. The 25th was not only sacred to the Romans but also the Persians whose religion Mithraism (密特拉教,奉祀密特拉神的宗教,纪元后最初3世纪内传至罗马帝国) was one of Christianity”s main rivals at that time. The Church eventually was successful in taking the merriment, lights, and gifts from the Saturanilia festival and bringing them to the celebration of Christmas.