Archive

Archive for the ‘网站建设’ Category

Apache(APM Express)启动失败解决

February 20th, 2010

这几天启动APM Express失败,经过仔细分析后,终于找到了解决了办法。
Read more…

thinkedge 网站建设

让你的WordPress博客支持手机浏览

December 17th, 2009

WordPress 2.8.6本身并不支持手机浏览。但得益于WordPress强大的可扩展能力,只要使用MobilePress这个插件就能让你的博客支持手机浏览了啦
Read more…

thinkedge 网站建设

WordPress博客网址的重定位

December 1st, 2009

当你改变了你的博客网址后,发现原来的博客就无法访问了,怎么办呢? 会者不难。
Read more…

thinkedge 网站建设

WordPress的备份

July 13th, 2009

  为了避免丢数据的惨痛经历,一定要好好备份WordPress。备份方法有很多种,强烈推荐这几个一起使用
Read more…

thinkedge 网站建设

WordPress离线浏览器/编辑器Zoundry Raven

September 27th, 2008

WordPress下的离线浏览器/编辑器Zoundry Raven

Read more…

thinkedge 网站建设

WordPress的网站地图生成器

August 28th, 2008

Sitemap Generator Plugin for Wordpress

http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/

与Google XML Sitemaps插件不同,Dagon Design Sitemap Generator是服务于你的读者的,并不是给搜索引擎看的。

安装很简单,1~5和其他插件完全一样,就step 6需要你在想显示地图的页面插入<!– ddsitemapgen –>
1. Download sitemap-generator.zip and uncompress
2. Upload the entire sitemap-generator folder (not just the files inside) to your plugins directory
3. Activate the plugin in your administration panel
4. Configure the plugin in the options panel (under DDSitemapGen)
5. If using permalinks, read the permalink section below
6. Simply add the following line to a WordPress page (where you would like the sitemap to display):  <!– ddsitemapgen –>

效果见 http://www.thinkedge.cn/?page_id=26

使用方法有两种:

◆ 建立单独的 Sitemap 页面:只要去发表(Write)一个新页面(Write Page)即可,其中新建页面内容是下面的这一行代码:<!– ddsitemapgen –>
注: 这句代码要在<html>编码方式下写,如果不在<html>格式下写,站点地图就无法显示出来。
◆ 在页面模板中调用 Sitemap:只需在页面模板文件中,调用下面的函数即可
PHP代码 <?php echo ddsg_create_sitemap(); ?>

使用设置:
◇ 在 DDSitemapGen 项中,用户可以根据自己的需要设置生成的 Sitemap 的风格、样式以及内容等
◇ 用户还可以设置该 Sitemap 页面的依旧地址(须与建立该页面时的 page slug 一致)
◇ 在设置项的最后,还提供了一个指向 XML 格式 Sitemap 文件的设置项
◇ 该插件还提供了两个供美化用途的 CSS class 项

.ddsg-wrapper - Sitemap 整体样式(Div around the entire sitemap)
.ddsg-pagenav - 导航条样式(Div around the page navigation)

thinkedge 网站建设

本地快速构建WordPress平台

August 5th, 2008

单独安装Apache/MySQL/PHP? 这都是过去的历史了!

http://www.dualface.com/blog/?page_id=402 下载APM Express - Apache/PHP/MySQL 绿色版。APMXE5是一个非常简单的PHP平台套装,只需要安装后,运行桌面上的“APMXE5控制器”, 然后在任务栏处出现的白色齿轮那点右键选择”Start APMXE”。 在浏览器里输入http://localhost/。 就这么简单!

然后下载WordPress,放在apmxe5\htdocs目录下,修改wp_config.php,你的博客平台就可以工作了!

thinkedge 网站建设

WordPress中的标点符号转换

July 28th, 2008

Wordpress会对一些中文标点符号进行替换,变得很难看!在网上找了一些,处理办法倒是很简单,只需注释两行代码就行了。

 修改文件wp-includes/formatting.php的wptexturize()函数,注释掉下面两行的内容。

Line 29 - 34:

if (isset($curl{0}) && ‘<’ != $curl{0} && $next) { // If it’s not a tag
// static strings
    //$curl = str_replace($static_characters, $static_replacements, $curl);
// regular expressions
    //$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);
}

WordPress 2.6好像就没有这个问题了。

thinkedge 网站建设

让搜索引擎找到你的博客

July 27th, 2008

通过跟踪访问来源,发现我的博客的浏览量大多来自Google。 让搜索引擎找到你的博客是提高访问量的好办法。

搜索引擎很多,不过只需让最大的几个能找到就行了。

1.  提交博客到百度博客搜索

2.  提交博客到google搜索

3.  提交博客到雅虎博客搜索

4.  提交博客到sogou博客搜索

5.  提交博客到有道博客搜索

6.  提交博客到爱问

thinkedge 网站建设

WordPress: 如何显示文章浏览次数

July 27th, 2008

需要下载个插件才能实现。到作者的页面 http://fantasyworld.idv.tw/programs/wp_postviews_plus 下载最新的版本。

我使用的是1.1.9,在WordPress 5.1/6 没有问题。

安装过程很简单:

1.到作者的页面,下载最新版的wp-postvies plus。
2.解压你所下载的文件,并上传到你的wordpress插件目录
3.进入wordpress后台->Plugins(插件),激活该插件

安装插件后是不会自动显示访问量的,还需要在适当的页面中插入显示代码。

【显示文章浏览次数】

在你想要显示浏览次数的页面(一般是 index.php 或 single.php )中的适当位置插入如下代码:

<!–p if(function_exists(‘the_views‘)) { the_views(‘次浏览‘, true); }–>

【显示浏览次数最多的文章】

在你想要显示浏览次数的地方(侧栏或独立页面)插入如下代码:

<!–p get_most_viewed(’post’, 10, 0, true, false);–>

5个参数的说明:

‘post’ :显示文章的浏览次数,而不是页面;
10 :最多显示10篇文章;
0 :文章标题的字数限制,0为无限制;
true :显示文章,若改为 false 则不显示文章;
false :不显示搜索引擎机器人的查询次数,若改为 true 则全部显示。

【显示最近 N 天内的浏览最多的文章】

在你想要显示浏览次数的地方(侧栏或独立页面)插入如下代码:

<!–p get_timespan_most_viewed(’post’, 10, 30, true, false);–>

5个参数的说明:

‘post’ :显示文章的浏览次数,而不是页面;
10 :最多显示10篇文章;
30 :显示30天以内的文章统计;
true :显示文章,若改为 false 则不显示文章;
false :不显示搜索引擎机器人的查询次数,若改为 true 则全部显示。

thinkedge 网站建设