存档

‘博客技巧’ 分类的存档

SEO WordPress的Description 和 Keywords

2011年8月22日 冰点浏览次数(21) 没有评论

Description 和 Keywords 的重要性已经不像以前那么重要了,但是设置正确的 Description 和 Keywords 还是对你的排名有利。

WordPress 在撰写日志的时候,可以给日志添加摘要(excerpt)和标签(tag),我的做法就是,就如给日志添加了摘要就把摘要做为 Description,如果没有设置摘要的话,则截取文章的前 220 个字作为 Description,而标签直接作为 Keywords。代码 阅读全文…

为WordPress添加算数评论验证码

2010年11月28日 冰点浏览次数(184) 2 条评论

首先,编辑 WordPress 根目录下的 wp-comments-post.php 文件,找到以下代码(一般位于 70 行):

if ( '' == $comment_content )

在此语句之前,添加如下代码:

//算术验证开始
if ( !$user->ID ) {
$a = trim($_POST[a]);
$b = trim($_POST[b]);
$sub = trim($_POST[sub]);
if ((($a+$b)!=$sub)|| empty($sub)){
wp_die( __('错误:请输入正确的算术题结果。') );
}
}
//算术验证结束

阅读全文…

本站右侧留言板AJAX插件下载

2010年5月17日 冰点浏览次数(176) 没有评论

本站右侧留言板AJAX插件下载:wp-recentcomments

怎么在GoDaddy Windows主机上实现WordPress的伪静态

2010年4月4日 冰点浏览次数(403) 没有评论

在根目录下面新建web.config文件

粘贴如下代码:

 <configuration> 
 <system.webServer> 
    <rewrite> 
      <rules> 
        <rule name="wordpress" patternSyntax="Wildcard"> 
         <match url="*" /> 
            <conditions> 
              <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> 
             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> 
          </conditions> 
         <action type="Rewrite" url="index.php" /> 
        </rule> 
      </rules> 
    </rewrite> 
  </system.webServer> 
</configuration> 

GoDaddy windows主机空间500错误解决方法

2010年4月4日 冰点浏览次数(551) 没有评论

法1:新建名为web.config的文件,将如下代码粘贴到文件中,保存后上传到WordPress的根目录;

<?xml version="1.0" encoding="UTF-8"?> 
<configuration> 
<system.webServer> 
<httpErrors errorMode="Detailed" /> 
<asp scriptErrorSentToBrowser="true" /> 
</system.webServer> 
</configuration> 

方法2:进入后台 — File Manager — 选中WordPress的根目录 — Permissions — 将Read和Write勾上 — OK

godaddy主机Linux500错误解决方法

2010年4月2日 冰点浏览次数(718) 6 条评论

找了N多帖子,终于解决了

后来在根目录下的.htaccess里添加了如下代码后500错误没有了。

addhandler x-httpd-php-cgi .php4
addhandler x-httpd-php5-cgi .php5
addhandler x-httpd-php5-cgi .php

godaddy空间PHP页面500 Internal Server Error解决办法

2010年4月1日 冰点浏览次数(2,336) 3 条评论

         because the Growing Client and visit capacity,the bandwidth of our website is not enough,so we change our space to godaddy.after I installing the PHP Application and databases.I find that I can not enter “admin platform”. the web page show “Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.” I open the google and find the solution.most of solution tell you to rename or delete the “.htaccess” file. other way is set the root root directory permission to 755. but the two way can not resolve the problem. I go to godaddy and open hosting control center,clicking ”settings” then from the drop down menu select “error.log” the page suggestion Apache error logs are disabled by default. You can enable error logs for a twenty-four hour period, during which time the logs are available through the CGI Admin panel. After the time period elapses, the error log is cleared. The twenty-four hour logging period can be invoked at any time. If this is done during an existing collection period, all previous log entries are deleted and collection begins anew. To enable error logs, click Update. To view error logs, click Launch CGI Admin I open the error logs “[Fri Mar 5 20:02:52 2010] [error] [client 116.**.***.***] user startuptechltd not found: /stats/error_logs/ [Fri Mar 5 20:04:50 2010] [error] [client 116.**.***.***](104)Connection reset by peer: FastCGI: comm with server “/var/chroot/home/content/s/t/a/*******/html-x-httpd-php5″ aborted: read failed [Fri Mar 5 20:04:50 2010] [error] [client 116.**.***.***]FastCGI: incomplete headers (0 bytes) received from server “/var/chroot/home/content/s/t/a/*******/html-x-httpd-php5″ [Fri Mar 5 20:04:56 2010] [error] [client 116.**.***.***](104)Connection reset by peer: FastCGI: comm with server 阅读全文…

Wordpress插件WP-PostViews使用说明

2010年3月25日 冰点浏览次数(547) 2 条评论

一、WP-PostViews介绍

该插件实现的功能是统计某篇文章被阅读次数并且可以实现侧边栏 Widget 以及显示最受欢迎(阅读数最多)文章、某分类下最受欢迎(阅读数最多)文章等功能,支持最新的 WP 2.3 版 阅读全文…

WordPressSmiles图标打包下载

2010年3月25日 冰点浏览次数(209) 2 条评论

三套WordPress表情图标,附上预览截图以及下载地址。

  1. 第一套图标预览及下载
    WordPress_Smiles_1
    Download
  2. 阅读全文…

给Wordpress开启Gzip功能

2010年3月25日 冰点浏览次数(265) 没有评论

曾经我为了给 Wordpress 开启 Gzip 功能真是煞费苦心,但最终还是成功了,并写下日志《开启GZIP,提速Wordpress》分享给大家。据willin的反馈,他使用该方法感觉不错,但是我自己用这个方法却发现主题在IE6下裸奔了,至今没有找到问题的根源,之后只好弃用了该 阅读全文…

Apache服务器使用.htaccess实现图片防盗链

2010年3月25日 冰点浏览次数(182) 没有评论

所谓盗链,是指其他网站直接链接我们网站上的文件,一般来说,盗链的对象大多为很耗带宽的大体积文件,如图片、视频等。这样造成的后果主要有:增加了服务器的流量负担,影响我们网站的访问速度。
如果你用的是Apache服务器,那么使用.htaccess文件就可以很方便的进行设置,从而防止其他站点的用户盗链我们站点的文件。 阅读全文…

怎么给wordpress使用电子邮件发布日志

2010年3月25日 冰点浏览次数(625) 没有评论

使用wordpress建立博客不少时间了, 大概有8个月之余了吧, 一直采用离线编辑器发文的方式发布博客日志, 但一直听说可以使用电子邮件(email)来发布日志, 心中一直想一试, 但恨于自己一直没有行动, 一直拖到这几天。

昨天没有发布日志, 是因为一直在搞这个email发布博客日记的问题, 阅读全文…

开源门户Picok安装设置

2010年3月25日 冰点浏览次数(376) 没有评论

中文:

Picoks配置存储在YAML文件,怎样写YAML的可以在这里找到
要告诉Picok如何连接到您的数据库,你必须编辑“00 – default.yml”,这是位于“/ PICOK_ROOT /机密/ config.d /”

注意,在给定的环境CacheConfig设置的不同,配置文件将在里面的“/ PICOK_ROOT / tmp”的第一次请求目录解析形式的缓存。因此,修改后,可能需要删除该缓存文件,然后更改将生效。 阅读全文…

wordpress不用插件:最新文章,热评文章,随机文章

2010年3月22日 冰点浏览次数(440) 没有评论

不用插件也可以生成:最新文章,热评文章,随机文章

代码:

最新文章:

<?php
 $postslist = get_posts('numberposts=10&order=DESC&orderby=id');
 foreach( $postslist as $post ) : ?>
             <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>(<?php echo $post->comment_count; ?>)
</li>       <?php endforeach; ?>

阅读全文…

wordpress评论和文章显示错乱?

2010年3月22日 冰点浏览次数(301) 没有评论

刚刚建的博客,评论和文章显示错乱了,经过检查发现是文章页面

“最新文章 热门文章 热评文章 随便看看”

相关代码:

<script>  
 $(document).ready(function () {
 $('.lava').css({left:$('span.item:first').position()['left']});
 $('.item').mouseover(function () {
 $('.lava').stop().animate({left:$(this).position()['left']}, {duration:200});
 $('.panel').stop().animate({left:$(this).position()['left'] * (-4)}, {duration:200});
 });  
 });
</script> 阅读全文...