最近一直在调度zen-cart,找到了下面这篇文章,是关于如果修改zen cart模版的,很有用,,跟大家分享一下。 DIR_WS_CATALOG // zent cat目录 这些在includes/configure.php定义 meta_tags.php //定义网站的meta信息。这些是从数据库中取出来的。在includes/modules/下面 HTML_PARAMS //模板语言常量文件定义的。 $current_page_base 在includes/init_inicludes/init_sanitize.php $_GET['main_page'] manufacturers_id 生产厂商ID product_id 产品ID $tmp_pagename index_home ====================== tpl_index_default.php {indeXDefaultMainContent 首页可以编辑} tpl_modules_featured_products.php -> tpl_columnar_display.php logo 修改 tpl_header.php 页面 在模板的images/logo.gif id="mainwrapper" common/tpl_header.php 功能:所有页面的页眉 基本可以不用或者广告用 id="headerwrapper" navColumnOnewrapper navEZpagesTOp 简易页面的连接 左边分类在 templates/模板/sideboxes/下面 sql参数在categories.php 1. 在首页顶部增加连接的方法。 2. Logo的替换。这个在后台是没有的。在语包的文件里定义。 3. 导航栏的东西〔这个后台的设计的) 4. 首页分类名称的修改 Column Width – Left Boxes spooer名称更改:define('BOX_HEADING_BANNER_BOX','Sponsors') 左边栏处理:只保留includes\templates\template_default\sideboxes\tpl_categories.php,在里面增加 右边栏的处理: 2.添加左边栏目内容,对tpl_box_default_right.php更改: 中部修改: 去掉顶部说明:<?php if (SHOW_CUSTOMER_GREETING == 1) { ?> 去掉欢迎信息: 去掉顶部导航: \tpl_header.php $_SESSION['customer_id'] == ")) { 上段从<div id="mainWrapper">抽出,放在它前面做全屏导航版块 include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS)); '1′ && sizeof($links_list) >= 1) { ?> 的log背景: \tpl_header.php |
Friday, November 27, 2009
如何修改Zen-cart模板
提高Google Adsense广告相关度的技巧
昨天在听AdSense的一个网络会议的时候,主讲人提到了一个提高Adsense广告相关度的技巧,可供那些感觉广告匹配度不高、广告点击率低的AdSense用户参考使用。
Google AdSense广告通常会针对用户网页的内容自动显示广告,但AdSense可能并不清楚你网页上的哪些部门的内容更重要,如果用户通过手动添加一些HTML代码的方式,突出或忽略网页中的某些部分,这在一定程度上可以引导AdSense抓取工具重点分析网页的某些部分或忽略某些部分,以提高广告的相关度。
比如,用户想要强调网页上某部分,那么可以在这部门的前后增加下面两段HTML代码。
<!-- google_ad_section_start -->
<!-- google_ad_section_end -->
将需要强调的部分放在这两段代码中间即可。
如果用户想要忽略掉从某处开始的信息,可以在那个位置前增加下面的HTML代码。
<!-- google_ad_section_start(weight=ignore) -->
经过这些处理后,AdSense广告的相关度就会得到一定的提高。
不过,如果用户页面的内容不足,那么有可能会因为没有广告内容而显示公益广告。
Thursday, November 26, 2009
怎么去修改zen cart 程序
首页界面://include/templates/zccn/common/tpl_main_page.php
首页主样式表://include/templates/zccn/css/schinese_stylesheet.css
首页左边栏目:
/includes/templates/template_default/common/tpl_box_default_left.php
商品分类内容修改:
/includes/modules/sideboxes/categories.php
/includes/templates/zccn/sideboxes/tpl_categories.php
推荐产品
/includes/modules/sideboxes/featured.php
/includes/templates/template_default/sideboxes/tpl_featured.php
新进产品
/includes/modules/sideboxes/whats_new.php
/includes/templates/template_default/sideboxes/tpl_whats_new.php
特价产品
/includes/modules/sideboxes/specials.php
/includes/templates/template_default/sideboxes/tpl_specials.php
数据库表
/includes/database_tables.php
首页中间商品修改:
/includes/templates/template_default/common/main_template_vars.php
/includes/templates/template_default/templates/tpl_index_default.php
内页中间商品修改:
/includes/templates/template_default/templates/tpl_index_catergories.php
首页中间 August新进商品
/includes/templates/template_default/templates/tpl_modules_whats_new.php
首页中间 August特价商品
/includes/templates/template_default/templates/tpl_modules_specials_default.php
首页中间 推荐商品
/includes/templates/template_default/templates/tpl_modules_featured_products.php
首页右边栏目:
/includes/templates/template_default/common/tpl_box_default_right.php
商品搜索
/includes/templates/template_default/sideboxes/tpl_search.php
客服中心
/includes/templates/template_default/sideboxes/tpl_ezpages.php
畅销商品
/includes/templates/template_default/sideboxes/tpl_best_sellers.php
商品评论
/includes/templates/template_default/sideboxes/tpl_reviews_write.php
在线名单
/includes/templates/template_default/sideboxes/tpl_whos_online.php
Wappalyzer: Check which apps are powering a particular site
November 14th, 2009 Leave a comment Visited 160 times, 8 so far today
Wappalyzer is a useful add-on for Mozilla Firefox web browser that can be used to check the tools used by a particular website.
It can report on the CMS being used to power the website. You can also get information on the various third party plug-ins being used by it.
It can detect following applications and services:
AWStats, BIGACE, BigDump, Blogger, Clicky, CMS Made Simple, ConversionLab, Coppermine, cPanel, Crazy Egg, CubeCart, DirectAdmin, dojo, DokuWiki, Drupal, e107, ExtJS, eZ Publish, FluxBB, Google Analytics,Google Friend Connect, Google Maps, IPB, Joomla, jQuery, Koego, Kolibri CMS, LiveJournal, Magento, MediaWiki, MiniBB, MochiKit, MODx, MooTools, Movable Type, MyBB, MyBlogLog, OneStat, osCommerce, osCSS, papaya CMS, PHP-Fusion,phpBB, phpDocumentor, phpMyAdmin, Plesk, posterous, Prestashop, Prototype, punBB, Quantcast, s9y, script.aculo.us, Site Meter, SMF, SPIP, Squarespace, StatCounter, Tumblr, TypePad, TYPO3, TYPOlight, Ubercart, Vanilla, vBulletin, viennaCMS, VisualPath, Vox, VP-ASP, W3Counter, webEdition, WebPublisher, WikkaWiki, WordPress, XMB, xtCommerce, YaBB, YUI, and Zen Cart.
Pretty comprehensive!
Checkout: Wappalyzer
Tuesday, November 24, 2009
放个完善的 Zen Cart 模版+运行环境
由 radnows » 2009年 9月 1日 03:54
1.没有错误没有木马。
2.生成图像没有锯齿。
3.完整的windows 运行环境 (apache + php +mysql)。解压到d盘根目录后,运行D:\apache\apache.exe和D:\apache\mysql41\mysqld41- start nolog后即可在浏览器浏览 (如已有apache和mysql运行,先停止其运行)。
4.不得买卖该模板,只限研究交流。
忘了说:
后台admin
用户admin
密码admin
-------------------------------------------------------
大图只有水印那是new_product_preview.php里有个函数的参数没好少了个0 哈哈。补上即可。
D:\apache\htdocs\lightbox\admin\includes\modules\new_product_preview.php里的129行
- 代码: 全选
ImageCopyResampled($im_s,$im, 0, 0, 0,$width,$height,$width_orig,$height_orig );
- 代码: 全选
ImageCopyResampled($im_s,$im, $wpos, $hpos, 0, 0,$width,$height,$width_orig,$height_orig );
图片不居中是ImageCopyResampled($im_s,$im, 0, 0, 0, 0,$width,$height,$width_orig,$height_orig );作怪
改为
- 代码: 全选
ImageCopyResampled($im_s,$im, $wpos, $hpos, 0, 0,$width,$height,$width_orig,$height_orig );
------------------------------------------------------------------------------------------------------------
批量上传建议下载安装使用txt版本的覆盖替代。
运输地址与帐单地址必须一致的问题更好解决:
覆盖原版的tpl_modules_checkout_address_book.php和tpl_modules_checkout_new_address.php即可
前台搜索不到商品的问题:
用原版替换D:\apache\htdocs\lightbox\includes\modules\pages\advanced_search和advanced_search_result目录的内容
用原版的product_listing.php改名为search_product_listing.php复制到D:\apache\htdocs\lightbox\includes\modules\lightinthebox里
修改tpl_advanced_search_result_default.php内容为以下代码:
- 代码: 全选
<div class="centerColumn" id="advSearchResultsDefault">
<?php
require($template->get_template_dir('tpl_modules_search_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_search_product_listing.php');
?>
</div>
内容为:
- 代码: 全选
<?php
include(DIR_WS_MODULES . zen_get_module_directory('search_product_listing.php'));
?>
<div id="productListing">
<?php
if ($show_top_submit_button == true) {
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit1" name="submit1"'); ?></div>
<br class="clearBoth" />
<?php
}
?>
<?php
require($template->get_template_dir('tpl_list_box_content.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_list_box_content.php');
?>
<?php if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
?>
<div id="productsListingBottomNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
<div id="productsListingListingBottomLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></div>
<br class="clearBoth" />
<?php
}
?>
<?php
if ($show_bottom_submit_button == true) {
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit2" name="submit1"'); ?></div>
<br class="clearBoth" />
<?php
}
?>
</div>
<?php
if ($show_top_submit_button == true or $show_bottom_submit_button == true) {
?>
</form>
<?php } ?>
下载地址:
http://drop.io/tawalll/asset/apache-php ... e_download
-------------
由 radnows » 2009年 9月 28日 14:40
请自行编辑tpl_order_history.php文件去掉gueston 写道: 首页“Recent Orders”栏目里的内容有重叠,看不清,如下图,是否能帮忙解决下,谢谢。
- 代码: 全选
ship to '.$customer_orders[$i]['customers_state'].','.$customer_orders[$i]['customers_country'].
------------
由 radnows » 2009年 10月 13日 07:51
修 改tpl_index_categories.php,在require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/categories.php'));下增加 require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/manufacturers.php'));gueston 写道:这个模版好像没有品牌(制造商)的选择了了,像我这样的目录就有必要用到品牌的筛选了http://cbwp.us 。Jack 写道:本站搜索下如何重置管理员密码
我有尝试在前台布局里吧manufactory打开,但没有显示,所以在此求助,
希望达到的效果:
每个页面的搜索栏都有品牌选择,在搜索栏种类(Categories)后面为品牌做个同样的下拉选项,最好再把页面宽度增加点。
或者沿用原汁原味的高级搜索,原版的高级搜索里有这个选项。
修改sideboxes/manufacturers.php,把$column_box_default改为'tpl_box_default_left.php'
---------
由 radnows » 2009年 10月 13日 07:53
18 Great Shopping Carts to Power Your Online Store
by Sean P Aune
The ecommerce boom shows no signs of slowing down any time soon, and each year the amount spent during the holiday season continues to increase. The question of getting into the market is a fairly easy one if you have products to sell, but how do you even begin to sort through the hundreds of shopping cart options that are in the space?
We've helped you out a little bit by gathering up 18 choices that represent the best of the free and fee-based options out there. Read about each one very carefully, though, as they all have their pros and cons.
Free Shopping Carts
AgoraCart: AgoraCart offers a free version of its software with all of the usual bells and whistles, but if you upgrade to the gold version you will get access to more modules and support.
Batavi: Batavi was born in 2007 by osCommerce core-team members and ICEshop over frustration that osCommerce 3.0 seemed to be going nowhere. This cart is based on that unfinished version of 3.0, but is completely rewritten. It offers customer- and group-specific pricing, payment and shipping modules, related products for crossselling and upselling, product price rules for pricing large product volumes and many other features that make it very friendly for business-to-business selling.
Magento: Magento was originally envisioned as a branch of osCommerce, but as development began they decided to code something original from the ground up and that is how this shopping cart was born. Built on the Zend framework, the system is PHP-based and is available as an open source option with extra modules that can be installed, or as an Enterprise edition, for a fee, for larger companies needing a shopping solution. For additional information, check out the SitePoint podcast with Roy Rubin of Magento.
OFBiz: Apache OFBiz is a solution for a multitude of enterprise business needs, but can be rolled out as an ecommerce solution easily for businesses of any size.
OpenCart: OpenCart is another in the long line of open source shopping carts in the marketplace, but this seems to offer a bit more options than most of them. It supports a full templating system, support for over 20 payment gateways, over 8 different payment gateways, unlimited categories and products and more.
osCommerce: Probably the best known of the free cart solutions, osCommerce has been around for several years and features a constantly growing developer community that continues to develop new plugins to make this shopping cart do everything but clean the windows. The front end of the cart is highly customizable, but it comes with a fluid-width template that is fairly decent on its own. Due to the number of installs it has become quite common and instantly recognizable. The biggest drawback at this point is the exceedingly long time version 3.0 has been in development. It is PHP-based and uses MySQL databases.
PrestaShop: PrestaShop runs on PHP and MySQL and makes extensive use in the admin panel. The system allows you to have orders placed for out of stock items, package tracking, merchandise return and a lot more. Many expansion modules are available for free, but there are some paid ones and templates available in the PrestaStore.
Satchmo: Originally designed in Python to try to overcome some of the shortcomings of PHP, Satchmo now is using the Django web application framework. It includes many features such as PDF invoice generation, automatic thumbnail generation, inventory tracking and a whole lot more.
Ubercart: Developed to work with Drupal, Ubercart fully integrates with your site and community on any server that can run PHP and MySQL. It seems best suited for people or companies with a limited number of items to sell.
VirtueMart: Starting life as a plugin named mambo-phpShop, VirtueMart changed its name when Mambo became Joomla, and it still requires Joomla to function as it is incapable of running on its own. It runs on PHP and MySQL, and is capable of supporting an unlimited number of products and categories, but is recommended for light to medium traffic sites.
Zen Cart: Zen Cart is a branch off from osCommerce that adds features such as a templating system and includes some popular osCommerce plugins in its core coding such as the gift certificate module. It is PHP-based and uses MySQL databases.
Fee-Based Shopping Carts
Avactis: Avactis offers all of the usual bells and whistles of a PHP/MySQL shopping cart such as real-time shipping calculation, multiple currencies, sales reports, marketing and so on. The program offers a tag based cart system that allows you to add the system to any web site of your choice, whether it's a static site or not. They offer a free trial with limited functionality that you can install and test.
CubeCart: CubeCart runs on PHP and MySQL and is template driven, offers tax by state/zone or country, inventory control, gift certificates and more. The company also offers free updates for life and more modules for additional functionality.
Magellan Commerce: Magellan is a bit limited in its scope, but it is still very serviceable depending on the needs of the retailer. It offers over 30 templates, real time shipping calculators, order and inventory tracking and a lot more.
ProductCart: ProductCart is written in ASP and relies heavily on AJAX to speed up the consumer experience with their shopping cart. The system can also integrate with your current site if you prefer to building one totally on top of the cart.
ShopSite: This shopping cart solution allows you to add buttons to an existing site, or you can build an entire site with their wizard. This would be a great solution for those who want complete control of their design without being encumbered by the limitations of a complete shopping cart site. ShopSite offers three levels of subscription to its shopping cart system, or you can pay one time fees for the top two tiers of service.
ViArt: A PHP-based shopping cart that is offered in multiple flavors so that you can choose the one that best suits your needs. There is a free version, but it is so limited that it would only be suitable for the smallest of online stores. ViArt also provides you with a full CMS and Help Desk that can be integrated into the online store.
X-Cart: X-Cart offers different versions of its software to match the different needs of merchants. From the most basic version on up it features a CSS-based layout for customization, MySQL databases, search engine friendly and more.
WinFF – GUI for the command line video converter FFMPEG
(Failed to install on Ubuntu 8.10, HL)
Install Winff in Ubuntu
sudo apt-get install winff
Or click on the following link
Using WinFF
You can open winff from Applications—>Sound & Video—>WinFF
Once it opens you should see similar to the following screen
1. The File List
2. Add/Remove Videos
3. Output Details
4. Play Video
5. Start Converting
6. Additional Options
7. Menus
Featured Post
Windows和Ubuntu双系统完全独立的安装方法
http://www.ubuntuhome.com/windows-and-ubuntu-install.html | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...
-
http://www.williamlong.info/archives/3125.html -月光博客 互联网精准广告定向技术,指的是依托于搜索引擎庞大的网民行为数据库,对网民几乎所有上网行为进行个性化的深度分析,按广告主需求锁定目标受众,进行一对一传播,提供多通道投放,按照效...
-
VOA News A wine-tasting near Beijing, China Finally, a listener in Taiwan wrote to ask why his face turns red when he drinks alcohol. Th...
-
Hello world!
