Posts Tagged ‘Wordpress’

WordPress技巧之一:防止显示自带的主题

February 9th, 2008

不知道大家有没有遇到过这样的情况?自己的博客安装好了,下载了一个自己觉得非常满意的主题(Theme),经过一番修改之后启用了,但是几天没有打开你的博客,居然发现你辛辛苦苦修改过的主题自动变回了WordPress自带的那个丑陋的主题。拜托,那个主题实在是太难看了。

我的两个Wordpress的博客都遇到过这样的问题,中文赚钱博客也遇到过,刚开始的时候也觉得奇怪,虽然我使用的主题自己修改过,但是Wordpress能用啊?并没有提示有任何错误啊? 可是为什么变回默认的主题了呢?

这真是一个头痛的问题,今天早上连续两次遇到这个问题,我不得不搜索一下解决办法,还好终于找到如下的技巧。解决的办法居然如此的简单:FTP登陆你的空间,进入 wp-content/themes/ 目录,将Wordpress自带的一个名为 default 的主题目录改名或者删除,再将你目前使用的主题的目录改名为 default ,我保证以后不会再出现主题自动被更换的情况。
» Read more: WordPress技巧之一:防止显示自带的主题

Another wordpress problem resolved

January 26th, 2008

I own two wordpress blogs, apart from this blog, I have another one, which is in Chinese and it is hosted in China, the blog is using Blogging Pro theme, I installed all the required plugins and it works fine, and i like it so much, before i bought this new domain name and a new host from 3ix, it is my only blog, and I renew it everyday.

This new blog, Make Money Online Blogging , is currently using the same plugins as which installed in the old blog. And they are using the same version of wordpress, (the latest version 2.3.2) Only the theme is different, but I met a very strange problem when I actived a new plugin called WP-PageNavi 2.20, this plugin can add an advanced page navigation for wordpress for selecting indivual pages instead of just the previous or next page. Because I really live the nice navigation bar instead of the old “Previous page” and “Next page” links.

After the activation of this plugin, everything is just fine, but after a post published, I viewed my blog, i saw a very ugly look, which is the wordpress default theme, so ugly, I dislike it so much. Why the theme changed itself, I often met this situation before with my old blog, that really drove me crazy. For a long time, i’d asked many people who are using wordpress for their blogs, but no solutions, i have to change back my theme my self.

» Read more: Another wordpress problem resolved

WordPress blog, can not post new entries

January 25th, 2008

I met an strange problem when posting an entry yesterday, when i was writing post in wordpress, and when I clicked “Save and Continue Editing”, or “Save” and “Publish” after i edited my content, I got a long delay, then a blank browser window. The Dashboard doesn’t come up. If I click my browser’s back button it will take me back to the Dashboard, but the new content is gone. I’m using Firefox (latest version) and my wordpress is the newest version 2.3.2, at first I don’t know what’s the problem, because i published an entry successfully before this issue happened.

Firstly, i checked my browser, i tried IE6, the same trouble, cleared my firefox cache, same happened again. This really droved me crazy. Because before this happened, i posted an entry successfully, i thought there’s nothing wrong with my plugins, so i didn’t check any of my plugins which is abled, maybe it is the host that caused this problem, but when i login another of wordpress blog which also hosted in this server, it works fine.

I searched on Google, and try to find out that anyone else have the same problem, i finally found this page, someone is discussing the same trouble a year ago, an older version of wordpress. they said that it was the Google Site Map Generator that caused this issue, I really actived this plugin, they say i have to clear the log file which created by the Google Site Map Generator, i found again and again, but didn’t find where to clear it, I disabled this plugin, but it didn’t solve the problem. So i think this plugin works fine in my blog.

Last night, I disable all the plugins, and then publish a post, everything ok, so i finally think that it is the plugin caused the trouble, but which plugin? I really got confused, I disabled all the plugins, and then active one by one, actived one plugin and i try to Save and Continue Editing a post, until I found which plugin caused the problem

Finally, i found, God, it is the WP slug in english or pinyin 1.2 caused this trouble, this plugin can set slug from title or google translate or pinyin, which is useful is you post an Chinese language entry, it creats an english or pinyin slug automatically even if you are writing in Windows live writer or other editors.

I disabled this plugin, my blog works fine now, because from now on, i will post english language posts. My wordpress can now autosave my entries and publish successfully.

WordPress小技巧两则

January 9th, 2008

1. 让Wordpress的留言和评论倒序显示:摘自这里
WordPress默认的评论(留言)顺序是按照时间顺序升序来显示的,这样最新的评论会被显示在最下面,比较不符合阅读习惯(或者说是不符合我的阅读习惯吧)。通过更改comments_template的代码可以实现降序显示评论,从而将最新的评论显示在最前面。

进入Wordpress安装目录下的wp-includes目录
用文本编辑器打开comment-template.php文件
查找 ORDER BY comment_date” 代码。
然后在 ORDER BY comment_date”后面加上 DESC”
变成这样:
ORDER BY comment_date DESC”

保存退出,即可。这样评论的显示顺序就被改为以时间降序来显示了。

注:ORDER BY comment_date”共有3条,都需要加上 DESC”

本方法在wordpress2.1、2.2中测试通过。
» Read more: WordPress小技巧两则

Firefox日历桌布下载

December 30th, 2007

今天浏览Google Reader文章的时候,发现Wordpress 2.3.2已经释出,于是立即下载并覆盖源文件升级,因为改变不是太大,所以这样升级没有出现任何问题,一切正常。强烈推荐大家升级到最新版。

另外,发现了一个不错的Firefox日历桌布,我下载了2008年1月的,感觉很酷。作者每个月可能都会制作下一个月的。
需要的朋友赶紧去下载。
http://www.foxkeh.com/downloads/wallpapers/