hedonplay
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: no paragraph breaks in rss feed<description><![CDATA[也许博客诞生的那一天起,就有了评论这个功能。后来,无数追求独立博客的青年们便顺理成章的真诚邀请他们的读者留上珍贵的评论。我也曾是他们其中的一个,评论让我感受到了文章的价值,评论给了我和读者交流的机会,评论给了我提升流量的动力。直到有一天,对评论的这种期待让我无法自由呼吸。于是,这个世界上,多了一个没有评论的博客。
没有评论之后,什么事发生了 ?
1. 不用每天大量刷新自己的博客。因为我知道评论再也不会有了。其实有的时候没有希望也是一件好事。
2. 终于找到了真正愿意交流的读者。不能否认,有些人留评论并不是针对文章本身,而是在宣传自己。也有一些人的评论看似是和文章相关,其实是没有经过任何思考,也是为了宣传自己。凡是能通过邮件和我讨论的人,他们是真正对文章感兴趣的人。不是我不想和读者交流,而是想和真正的读者的交流。
3. 澄清了写博客的动机。写博客是对生活的思考和总结,是对想法的记录和表达,是为了寻求志同道合的朋友。不是为了受关注,不是为了别人而存在,除非想从别人哪里得到点什么,一些虚荣,或者一些广告点击,或者别的某种利益。
没有评论,打破枷锁,自由的呼吸,快乐的博客。
说自己乐于接受新事物的你敢于尝试吗?
]]></description>please look at this, there is no line breaks in the feed.
Forum: Fixing WordPress
In reply to: MySQL Querieswhat are you trying to do Tim ?
Forum: Fixing WordPress
In reply to: no paragraph breaks in rss feedsorry about the confusion, it’s another site but in chinese
Forum: Fixing WordPress
In reply to: no paragraph breaks in rss feedthanks samboll, in browsers and some feed readers for instance google reader.
Forum: Fixing WordPress
In reply to: wordpress displaying IP as link addressGood question !
Regarding the current permalink solution, you can only change the url right after your sever address. If the port number is not showing in your URL, 80 will be set as default.
So one solution is to make a port forwarding, if port 80 is reachable from you ISP.
If not, you can try webhops redirection, a service provided by dyndns.
Considering on a long term, I suggest strongly hosting your site by a pro web hosting service.
Good luck.
Forum: Fixing WordPress
In reply to: Changing blog domain namethe solution is very simple, get connnected to your database, make a search and replace the old domain name with you new one. Or I think you could export your database. Then open the sql file with your favorite text editor, try to make a replace. Don’t forget to import the new one.
good luck
Forum: Fixing WordPress
In reply to: search and replacewhat you need is an editor, for example, the notepad++ will get this job done.
Forum: Fixing WordPress
In reply to: Errorhello, flappi282, please try replace the line 246 in your wp-settings.php file by the following line
require (ABSPATH . WPINC . '/compat.php');Forum: Fixing WordPress
In reply to: How to disallow names in comments that look like the admin/author?/* **change the comment author name if it contains any string that are disallowed, when saving a new comment in the database */ if(is_author()){ //do not apply the filter if the author post a comment add_filter( 'preprocess_comment' , 'wh_change_comment_author' , '99' ); } function wh_change_comment_author($commentdata) { $name_disallowed='sharkboy'; //you can change it as you need $name_default='anonymous'; //the comment_author is contained in the array $commentdata if(stristr($commentdata['comment_author'],$name_disallowed)) { $commentdata['comment_author']=$name_default; //replace the name disallowed by the default one } return $commentdata; }add this piece of code to the function.php which is in your theme directory.
Hopefully it works.
Forum: Fixing WordPress
In reply to: How to disallow names in comments that look like the admin/author?Hello, wobblypop, according to what you say, I think there are two solutions. Either you refuse the commentators which means their comment won’t be submitted, either their name will be changed, for instance, to anonymous automatically when the comment is submitted if the name filed contains “Sharkboy”.
As for the second one, it can be done if we could find the right filter. Do you like the second solution?
Forum: Fixing WordPress
In reply to: Post Title & Author Name Problem :(You are welcome saroshwaz.
Forum: Fixing WordPress
In reply to: How to disallow names in comments that look like the admin/author?if someone mention “Sharkboy”, what is the result you like?
Forum: Fixing WordPress
In reply to: Post Title & Author Name Problem :(hello, saroshwaiz, you have to do some CSS modification not the code php.
Probably, add the following css rule would make it work.
.posttitle, .postmetadata { display:inline; }to limit your title length, you can replace the function the_title()
by this one:function the_title_limit($length) { if (strlen(the_title($before = '', $after = '', FALSE)) > $length) { echo substr(the_title($before = '', $after = '', FALSE), 0, $length) . '...'; } else the_title(); }where $length is your preferred title length.
Forum: Fixing WordPress
In reply to: Text not wrapping around imagesmaybe you could try a
vertical-align:topproperty for your text that you want to wrap.Forum: Fixing WordPress
In reply to: .Php errorhttp://www.hui-wang.info/2009/07/warning-cannot-modify-header-information-headers-already-sent/
Hopefully, it can help you.