SEO,厦门SEO,厦门SEO公司,SEO网站优化

厦门SEO
分页: 1/43 第一页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 下页 最后页 [ 显示模式: 摘要 | 列表 ]
May
20

[置顶] 提高关键词排名的28个SEO技巧     2009

 09:39    181    0   noel SEO  网站 优化 不指定
28个让关键词排名明显改观的SEO技巧:

关键词位置、密度、处理厦门SEO

1. URL中出现关键词(英文)
2. 网页标题中出现关键词(1-3个)
3. 关键词标签中出现关键词(1-3个)
4. 描述标签中出现关键词(主关键词重复2次)
5. 内容中自然出现关键词 厦门SEO网站优化
6. 内容第一段和最后一段出现关键词
Apr
26

[置顶] PHP遍历整个文件目录结构     2009

 09:42    336    0   jane 程序 代码 源码 不指定
PHP遍历整个文件目录结构
Apr
14

[置顶] 用PHP批量生成图片缩略图     2009

 23:58    238    0   jane 程序 代码 源码 不指定
用PHP批量生成图片缩略图
功能:批量将某一文件夹里符合要求的图片生成指定大小的缩略图,
ecmall二次开发,ecshop二次开发,模板ecmall二次开发,ecshop二次开发,模板
Jan
21

ecmall 多系统商城     2010

 13:51    233    0   noel Ecshop/Ecmall/Smarty 不指定
ecmall 二次开发
  测试地址 http://www.hxrlzy.com
ECSHOP 出现  XMlHttpRequest status:[500] Unknow status 这个错误啊?
Nov
24

ecshop关于邮件模板翻译的函数     2009

 11:41    210    0   noel Ecshop/Ecmall/Smarty 不指定
ecshop关于邮件模板翻译的函数


{$user_name}您好!<br>
<br>
您已经进行了密码重置的操作,请点击以下链接(或者复制到您的浏览器):<br>
<br>
<a href="{$reset_email}" target="_blank">{$reset_email}</a><br>
<br>
以确认您的新密码重置操作!<br>
<br>
{$shop_name}<br>
{$send_date}


//以上代码 可以通过
$email_content = $smarty->fetch("str:$email_content");
//赋值得到变量里面的值
Nov
24

ecshop缓存函数     2009

 11:41    182    0   noel Ecshop/Ecmall/Smarty 不指定
ecshop缓存函数

/**
* 读结果缓存文件
*
* @params  string  $cache_name
*
* @return  array   $data
*/
function read_static_cache($cache_name)
{
    if ((DEBUG_MODE & 2) == 2)
    {
        return false;
    }
    static $result = array();
    if (!empty($result[$cache_name]))
    {
        return $result[$cache_name];
    }
    $cache_file_path = ROOT_PATH . '/temp/static_caches/' . $cache_name . '.php';
    if (file_exists($cache_file_path))
    {
        include_once($cache_file_path);
        $result[$cache_name] = $data;
        return $result[$cache_name];
    }
    else
    {
        return false;
    }
}
/**
* 写结果缓存文件
*
* @params  string  $cache_name
* @params  string  $caches
*
* @return
*/
function write_static_cache($cache_name, $caches)
{
    if ((DEBUG_MODE & 2) == 2)
    {
        return false;
    }
    $cache_file_path = ROOT_PATH . '/temp/static_caches/' . $cache_name . '.php';
    $content = "    $content .= "\$data = " . var_export($caches, true) . ";\r\n";
    $content .= "?>";
    file_put_contents($cache_file_path, $content, LOCK_EX);
}
Nov
24

把ECSHOP的升级提醒删除     2009

 11:40    178    0   noel Ecshop/Ecmall/Smarty 不指定
把ECSHOP的升级提醒删除
删除ECSHOP版本更新提醒信息

打开

admin/index.php 删除如下

if (gmtime() - $_SESSION['last_check'] > (3600 * 12))
    {

        include_once(ROOT_PATH . 'includes/cls_transport.php');
        $ecs_version = VERSION;
        $ecs_lang = $_CFG['lang'];
        $ecs_release = RELEASE;
        $php_ver = PHP_VERSION;
        $mysql_ver = $db->version();
        $order['stats'] = $db->getRow('SELECT COUNT(*) AS oCount, IFNULL(SUM(order_amount), 0) AS oAmount' .
    ' FROM ' .$ecs->table('order_info'));
        $ocount = $order['stats']['oCount'];
        $oamount = $order['stats']['oAmount'];
        $goods['total']   = $db->GetOne('SELECT COUNT(*) FROM ' .$ecs->table('goods').
    ' WHERE is_delete = 0 AND is_alone_sale = 1 AND is_real = 1');
        $gcount = $goods['total'];
        $ecs_charset = strtoupper(EC_CHARSET);
        $ecs_user = $db->getOne('SELECT COUNT(*) FROM ' . $ecs->table('users'));
        $ecs_template = $db->getOne('SELECT value FROM ' . $ecs->table('shop_config') . ' WHERE code = \'template\'');
        $style = $db->getOne('SELECT value FROM ' . $ecs->table('shop_config') . ' WHERE code = \'stylename\'');
        if($style == '')
        {
            $style = '0';
        }
        $ecs_style = $style;
        $shop_url = urlencode($ecs->url());

        $apiget = "ver= $ecs_version &lang= $ecs_lang &release= $ecs_release &php_ver= $php_ver &mysql_ver= $mysql_ver &ocount= $ocount &oamount= $oamount &gcount= $gcount &charset= $ecs_charset &usecount= $ecs_user &template= $ecs_template &style= $ecs_style &url= $shop_url ";

        $t = new transport;
        $api_comment = $t->request('http://api.ecshop.com/checkver.php', $apiget);
        $api_str = $api_comment["body"];
        echo $api_str;
    }
Nov
24

ecshop中调用smarty的foreach-iteration函数     2009

 11:40    121    0   noel Ecshop/Ecmall/Smarty 不指定
ecshop中调用smarty的foreach-iteration函数
  ecshop中的模板技术确实不错,ecshop的smarty也写的很好,foreach标签是ecshop中smarty用的最多的一个标签了。而foreach中的iteration非常有用。

    iteration其实是foreach循环中的下标,而且从1开始.直接循环。所以在ecshop销售排行中,很多人用这个来区分销售的图标.他是foreach下name的键值.{foreach name=top_goods from=$top_goods item=goods}


   <meta http-equiv="Content-Type" content="text/html; charset=gbk">
<div class="mod2">
<h1><span class="left"></span><span class="right"></span>销售排行</h1>
<!-- {foreach name=top_goods from=$top_goods item=goods}-->
  <ul class="top10 clearfix">
<li><img src="../images/top_{$smarty.foreach.top_goods.iteration}.gif" class="iteration" />
<!-- {if $smarty.foreach.top_goods.iteration<2}-->

    <table width="185" border="0">
  <tr>
    <td><a href="{$goods.url}" target="_blank"><img src="{$goods.thumb}" alt="{$goods.name&#124;escape:html}" class="topimg" height="80px" width="80px" /></a></td>
    <td>售价:<font class="f1">{$goods.price}</font></td>
  </tr>
</table>



<!-- {/if} -->
       <{if $smarty.foreach.top_goods.iteration<4}class="iteration1"{/if}>
      <a href="{$goods.url}" title="{$goods.name&#124;escape:html}" target="_blank">{$goods.short_name}</a><br />

      </li>
   <div style="clear:both;"></div>
    </ul>
  <!-- {/foreach} -->
</div>
    这个是ecshop销售排行的模板,他通过巧妙使用foreach来实现了图标的对应
.><img src="../images/top_{$smarty.foreach.top_goods.iteration}.gif" class="iteration" />
分页: 1/43 第一页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 下页 最后页 [ 显示模式: 摘要 | 列表 ]