0℃
2℃
5℃
修改control\user.php 106行
//$_ENV['note']->add('updatepw', 'username='.urlencode($username).'&password=');
//传递原始密码
$_ENV['note']->add('updatepw', 'username='.urlencode($username).'&password='.$newpw);
修改control\admin\user.php 208行
//$_ENV['note']->add('updatepw', 'username='.urlencode($username).'&password=');
//传递原始密码
$_ENV['note']->add('updatepw', 'username='.urlencode($username).'&password='.$orgpassword);
discuz论坛的修改
修...
阅读全文
4℃
0℃
<div class="h2">产品分类</div>
</div>
<div class="text">
{php $C = subcat('yp',0);}
{php $j=1;}
{loop $C $cid $cat}
{php if($j>13) continue;}
<div class="list_cat">
<!--一级分类用$cat调-->
<span><a href="{url('/yp/product.php')}?catid={$cat['catid']}">{$cat['catname']}</a>:</span>
{php $data = subcat('yp', $cid);}
{php $m=1;}
{loop $data $n $r}
{php if($m>6) continue;}
{if $r[ismenu]}
<!--二级分类用$r调-...
CMS系统研究阅读全文
0℃
0℃
一些常用的wordpress模板结构及页面函数调用参数,以备后需:
模板常用的PHP函数及命令
<?php the_tags(); ?> ; 调用文章标签
<?php get_header(); ?> : 调用Header.php
<?php get_sidebar(); ?> : 调用Sidebar.php
<?php get_footer(); ?> : 调用Footer.php
<?php the_content(); ?> : 显示内容(Post/Page)
<?php if(have_posts()) : ?> : 检查是否存在Post/Page
<?php while(have_posts()) : the_post(); ?> : 如果存在Post/Page则予以显示
<?php endwhile; ?&...
Template, WordPress, 模板阅读全文
3℃
3℃
网站性能是任何成功的网站的一个关键因素。如今WordPress的正变得比以往任何时候都更受欢迎,这里提到的11个提升WordPress速度与性能的技巧可能对你有用。
1.升级到Wordpress的最新版本(beta版除外 - -#)
WordPress 2.7相对于以往的版本有大量的更新,因此,最好升级到最新的版本。
2.删除没有必要的插件,升级正在使用的插件
从Web服务器上删除你未使用的插件,仅仅停用插件还是会影响到一个网站的速度,因为WordPress会检查看看他们是否被激活;此外你必须保持你正在使用插件的最新版本,插件作者推出新版本...
WordPress, WordPress Plugin阅读全文
8℃
CodeColorer is the plugin which allows you to insert code snippets into the post with nice syntax highlighting.. I want to show you example first:
Plugin based on GeSHi library, which supports most languages. CodeColorer has various nice features:
line numbers
automatic links to the documentation inserting
code block intelligent scroll detection (short code would have short block, for long one block height would be fixed and scrollbar would appear)
predefined color themes...
WordPress, WordPress Plugin阅读全文



