Wordpress Hack #16: Adding a Forum to Wordpress WordPress的哈克# 16 :新增一个论坛,以WordPress的
2,365 views - 2365意见者:管Posted in: 张贴于:
2,365 views 2365意见
Please note: This page was originally written in English.请注意:此网页最初是用英文写的。
The original post can be viewed原来的文章可被视为 here这里 . 。
Please note: This page was originally written in English.
The text has been translated using an online service such as Google or Babelfish.
The original post can be viewed here.
Adding a Forum to Wordpress increases SEO by adding indexed pages and improves community by giving your visitors the ability to “participate” far beyond what normal comments allow. 新增一个论坛,以增加WordPress的搜索引擎优化,增加索引的网页,并改善社会给您的访客的能力“参与”远远超过正常允许评论。 It also gives you a place to write random bits of content without writing lots of short, useless (and annoying) posts . 它也给你一个地方写随机位内容未经书面大量的短,无用(和烦人)员额。
Web Forums are a very interesting way to build an online community, such as the infamous webmaster forums网络论坛是一个非常有趣的方式建立一个在线社区,如臭名昭著的网站管理员论坛 Digital Point数字点 , and ,并 Webmaster World网管世界 . 。 Forums are generally where people ask questions, and hopefully they get answers.论坛通常是人们询问问题,并希望他们得到的答案。 A successful web forum can generate exponential pageviews vs. a blog or web site if there is a good community reading and participating.一个成功的网上论坛可以生成指数的综合浏览量与博客或网站如果有一个良好的社会读书和参与。
It’s no surprise that this kind of functionality is long sought after in Wordpress, and what site owners want most is the ability to embed and use that forum from with Wordpress itself.这毫不奇怪,这种功能是长期追求的WordPress的,什么网站所有者最需要的是能够嵌入和使用从该论坛与WordPress的本身。 Who wants a separate forum install?谁愿意一个单独的论坛安装? I’ve had them, and even from within a sub-directory of a successful site - it’s hard to get them off the ground.我已经,甚至从一个分目录一个成功的网站-这很难让他们离开地面。
There are lots of ways to “add a forum to wordpress”.有很多办法“新增了一个论坛,以WordPress的” 。 The first methods is to integrate a popular forum with your Wordpress install like Simple Machines, Vanilla, bbPress, phpBB, or PunBB bulletin boards.第一个方法是把流行的论坛,您的WordPress的安装一样简单的机器,香荚兰, bbPress , phpBB ,或PunBB布告栏。 Integrating a forum into Wordpress means a separate directory, a separate install, and a separate database.整合一个论坛,到WordPress的手段一个单独的目录,安装单独的,和一个单独的数据库。 With some advanced coding and hacks you may be able to share logins, comments, etc. I am not a fan of this, and personally I think these techniques are a setup for failure.随着一些先进的编码和黑客则可以分享登录,评论,等我不喜欢这一点,我个人认为这些技术安装失败。 Mainly because, if you had to hack them to make them work - making them work with future versions of Wordpress is likely going to be difficult, hard, or impossible.这主要是因为,如果你砍了他们,使他们的工作-使他们的工作与未来版本的W ordPress的很可能将是困难的,很难,或者是不可能的。 If you want to try, follow some of the older threads listed on this post:如果你想尝试,后续的一些老线程列在此帖子: Integrating a Forum with Wordpress集成了一个与WordPress的论坛 . 。
The next way to setup a forum in Wordpress is by using a theme that displays the categories and posts in forum type layout.在未来的方式设置了一个论坛, WordPress的是使用一个主题,展示了类别和职位的论坛式布局。 This is nice because it requires installing nothing and only changes the way your content is displayed.这是很好,因为它需要安装什么,只有改变了您的内容显示出来。 It could also be bad because then you’re limited to that kind of layout.它也可能是不好的,因为这样你只限于那种布局。 To check it out try the如果要检查它尝试 TDO Forum Theme TDO论坛主题 for Wordpress.为WordPress的。
The final way to setup a forum in Wordpress is by using a plugin.最后的方式设置了一个论坛, WordPress的是使用一个插件。 There are two that seem to be no longer supported, or not updated to be compatible with Wordpress 2.5 and up: both有两个似乎是不再支持或不更新,以符合2.5和WordPress的行动:两 XDForum 2 XDForum第2 , and ,并 WP-Forum可湿性粉剂论坛 . 。
The Wordpress plugin that I chose works with WP 2.5 and seems to be updated on a regular basis:在WordPress的插件,我选择了与可湿性粉剂2.5和似乎是定期更新: Simple:Press Forum Wordpress Plugin很简单:按论坛WordPress的插件 . 。 It’s currently the only one I see listed on the这是目前唯一一个我看到的上 Wordpress 2.5 Plugin Compatibility list WordPress的2.5插件兼容性列表 . 。
There are some things you need to know about using Simple:Press.有一些事情你需要知道如何使用简单:新闻。 The plugin is listed to work with Wordpress 2.04 - 2.51+, but in addition to that your MySQL server needs to be version 4.20+.插件是列出与WordPress的2.04 -2 .51+ ,但除此之外,你的M ySQL服务器需要版本4 .20+ 。 The first site I tried this on was WP 2.3.3, but the mySQL was 4.1.2 (Hostgator) and I got this error:第一个网站我尝试这一点是可湿性粉剂2.3.3 ,但MySQL的是4.1.2 ( Hostgator )和我这个错误:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] SELECT display_name FROM wp_sfmembers WHERE user_id= Immediately following this my entire Wordpress install (dashboard and public pages) locked to a blank screen, and I had to delete the plugin to get my blog back.紧接着我的整个WordPress的安装(仪表板和公众页)锁定,以空白画面,我不得不删除插件让我的博客回来。 So I opted to try it on my (still existing) godaddy hosting account - which gives you an option of MySQL 4.x or 5.x.所以,我决定试试我的(依然存在) godaddy托管帐户-让你一个选择的M ySQL4 .x或5 .x. I just created a new 5.x database and dumped my current (4.x) Wordpress blog db in it.我只是创造了一个新的5.x的数据库和倾倒我目前( 4.x中) WordPress的博客分贝它。 Then I reuploaded the plugin - and everything seemed to work good, until I created some groups - and lockup central again!然后,我reuploaded插件-一切似乎工作良好,直到我创造了一些团体-中央和锁死了! I deleted the plugin and all was well again.我删除了插件和所有的好状态。 I did determine that if you decide to use Simple:Press on 5.x MySQL database on godaddy hosting - it has to be the main domain, it can’t be a virtuall hosted subfolder with a domain mapped to it (unless you figure out how to fix the .htaccess file).我没有确定,如果您决定使用简单:按上5.x的MySQL数据库的godaddy主办-它已成为主要的网域,它不能成为v irtuall主办的子网域与映射到它(除非你找出如何修复。 htaccess文件) 。 Finally I moved it to my dedicated box and it worked fine.最后,我感动到我专门框中和它的罚款。 My advice to you is backup your WP database if you try it on an existing site, and make sure your MySQL server version is 4.20+ and you’re plugins and Wordpress install are current.我的建议是给你的备份您的数据库可湿性粉剂如果您尝试就现有的网站,并确保你的MySQL服务器版本是4.20 + ,你和WordPress的插件安装是最新的。

Once you enable the Simple:Press plugin, just to go “forum” in your main WP dashboard and (if you did everything right) you should see the install button as in the pic above.一旦你能够简单:按插件,只需去“论坛”在您的主仪表板和可湿性粉剂(如果你做的一切都是正确的) ,你应该看到按钮安装在峰段。 Unlike other plugins (that install database tables when you enable them) this plugin requires you to manually “install” the first time.与其他插件(即安装数据库表时,使他们)此插件需要手动“安装”的第一次。
If everything goes as expected this is what you should see:如果一切如预期这是您应该看到:

The basic setup options of the Simple:Press forum are like any other forum you’ve encountered in the past - with the exception of the fact that this forum is setup within Wordpress itself.基本设置选项简单:新闻论坛像任何其他论坛,您遇到在过去的-唯一的例外是事实,这个论坛是安装在W ordPress的本身。 Wordpress by default has 2 kinds of accounts “guest” and “administrator”. WordPress的默认了2种账户“住客”和“管理员” 。 Simple:Press adds a new type “member”.简单:新闻增加了一个新的类型“成员” 。 But the real advantage of Wordpress ‘embedding’ is Simple:Press’ ability to do “post-linking” - which is best explained by the help file itself:但是,真正的优势WordPress的'嵌入'很简单:按能力这样做“后连接” -这是最好的解释了帮助文件本身:

This has some very distinct advantages over a normal wordpress blog or standalone forum:这是一些非常明显的优势正常WordPress的博客或独立论坛:
- As a blog owner this gives you a TON of more search engine indexable pages作为博客主人,这给你一吨以上的搜索引擎索引的网页
- It keeps blog posts from getting clogged with hundreds of comments (just close them after a few and force everybody to the forum after that)它使博客帖子获得堵塞与数以百计的意见(他们刚刚结束后,几个和部队每个人都该论坛后)
- It makes your blog uber-interactive, much more than a blog with comments alone它使您的博客超级互动式的,远不止一个博客的评论仅
- You now have a place to post random tidbits of info without having to create tons of useless blog posts你现在有一个地方后随机花絮信息,而不需要创造吨无用的博客帖子
- If your blog gets comments now, that’s pretty much a guarantee that your forum will get posts.如果您的博客现在得到的意见,这是一个很值得保证您的论坛,将获得职位。 The worst thing about a new forum is getting people to post, by seeding it with blog posts you get an instantly active forum最糟糕的一个新的论坛是为人们接受的职位,它的播种与博客帖子您收到即时的活跃论坛
- Your blog now has more pages to monetize - w00t!您的博客现在有更多的网页赚钱-w 00t!
Simple:Press also has an “accounce template tag”.很简单:出版社也有一个“ accounce模板标记” 。 Once you enable this option you can display most recent forum activity from either your sidebar, home page, or any other post or page in your blog:一旦您启用此选项,您可以显示最近的论坛活动从您的侧栏,首页,或任何其他职位或网页在您的博客:

As “Add-Ons” in the forum you can enable private messaging, image uploads, or polls support (through the “Democracy” Wordpress plugin).作为“附加”的论坛,您可以使私人信息,图片上传,或投票支持(通过“民主” WordPress的插件) 。 There are many, many other options - such as graphics, style, icons, and more that you can use to customize Simple:Press look and feel to be more like your site design.有很多其他选择-如图形,风格,图标,更可以使用自定义很简单:按外观和感觉更喜欢你的网站设计。
I’m only beginning to scratch the surface of Simple:Press in this Wordpress blog, but you can check out the new我只能从头开始的表面很简单:出版社在这WordPress的博客,但你可以看看新的 JTPratt’s Blogging Mistakes Forum Here JTPratt的博客错误论坛 . 。 This is only the beginning of dramatically changing the methods of interactivity and community in this web site.这仅仅是开始急剧变化的方法的互动性和社会在这个网站上。
Have you managed a forum or tried to include one in your Wordpress blog before?你管理的一个论坛,或试图其中包括在您的WordPress的博客吗? Comment now - or follow the forum link and add to the discussion!评论现在-或后续论坛联系,并加入到讨论!
Tags:标签: forum论坛 , , wordpress-hacks WordPress的,黑客




















May 28th, 2008 at 8:08 am 2008年五月28日在上午08时08分
Hi, I’m the guy who created the wordpresss forum theme, tdo-forum.嗨,我就是那个谁创造了wordpresss论坛的主题, tdo论坛。
Thought you might be interested to know that originally I was using XD-Forum but development stopped on it so I wrote a plugin that imports XD-Forum threads as Wordpress posts and comments.想您可能会有兴趣知道,原来我是使用XD卡论坛的发展停止,但它使我写了插件,进口XD卡论坛线程WordPress的职位和评论。 I haven’t made this plugin available publicly, because I haven’t seen any calls for it.我还没有作出此插件提供公开,因为我没有看到任何要求它。 However that enabled me to seed my Wordpress based forum straight away.然而,使我种我的WordPress的论坛,立竿见影。
FYI: Also, you talk about seeding your blog posts on the forum.供参考:另外,请您谈一下您的博客播种职位的论坛。 I actually do the same on my site, using FeedWordpress, I can take a feed from a tag on my main blog and have it popup in my Wordpress-based forum automagically.其实我也这样做我的网站上,使用FeedWordpress ,我可以在饲料标签在我的主博客和它弹出我WordPress的基础论坛自动。
Marks last blog post..马克斯最后的博客帖子.. Catch release 0.11.1 of TDO Mini Forms today! 0.11.1捕获释放的微型形式TDO今天!
June 1st, 2008 at 1:05 pm 2008年6月1号在下午一时05分
I had just put “install blog on我刚刚把“安装的博客 http://www.domain ” on my todo list. “就我待办事项列表。 This looks like a much better way to integrate the two together.这看起来像一个更好的方式把二者结合起来。 I would be very interested if you would document the “challenges” of getting this blog/forum up and running.我将非常感兴趣,如果你将文件的“挑战”获得此博客/论坛的启动和运行。
For example this latest blog post doesn’t fit into the template and is running over into the right side.例如最新的博客帖子不适合的范本,并运行到右边。
June 2nd, 2008 at 8:07 pm 08年6月二号在下午8时07分
@Paul - I’m sure I’ll post more about my forum in the future. @保罗-我相信我会后更对我的论坛的未来。 As far as this blog post fitting thought, it looks great in Firefox and IE7 with no problems at all.至于这个博客帖子拟合思想,它看起来非常的Firefox和IE7的,没有问题。 What browser are you using?您使用的浏览器?
June 3rd, 2008 at 11:44 pm 08年6月3日在下午11点44
This is an interesting concept.这是一个很有意思的概念。 I’ve never been able to explore forums as an SEO option because I’ve never had a client who was interested in the amount of work it took to build and keep up that kind of community (nor were they interested in paying for someone to do it for them.) I’ll have to keep this post in my back pocket.我从来没有能够探索论坛作为一个搜索引擎优化选择,因为我从来没有一个客户是谁感兴趣的大量工作了建立和保持这样的社会(也没有兴趣支付某人这样做对他们。 )我会保持这个职位,我回到口袋里。 :) : )
June 7th, 2008 at 3:08 pm 2008年6月七日在下午3点08
I agree, forums can be a very beneficial thing to add to a forum, however if you don’t have much traffic, they don’t do much but waste time setting up.我同意,论坛可以是一个非常有益的事情添加到一个论坛,但是如果你没有太多的交通,他们不这样做多,但浪费时间成立。
A blog with 500+ RSS subscribers would be perfect in my mind.的博客与500 +的RSS订户将是完美的在我的脑海。 You shouldn’t have troubles getting a pretty good sized number of them to join your blog.你不应该的麻烦越来越不错中小企业数目它们加入您的博客。 If you’re lucky enough to get 20 actives users, you’ll do fine.如果你足够幸运获得20个活跃的用户,你会做的罚款。 What’s less attractive than a blog with a forum containing 5 members?有什么比缺乏吸引力的博客了一个论坛,载有5名成员组成?
Trying Hards last blog post..去年试图Hards博客帖子.. Preparing Safety Posts编制员额安全
June 29th, 2008 at 4:36 am 2008年6月29日在上午04时36分
I’d also be interested in hearing your progress in overcoming adversity with the new forum.我想也有兴趣听你的进展,克服逆境的新论坛。 I had to give up my phpbb forum because of all the spam and my lack of programming knowledge to address it.我不得不放弃我的phpbb论坛,因为所有的垃圾邮件和我国缺乏编程知识来解决这个问题。 How have you been able to deal with this?如何在你能够处理呢? Multiple users are important too, I don’t know if 500 subscribers (earlier comment) are necessary, it just depends on what you want to do, but make sure there is a demand before you do the work.多个用户同样重要,我不知道是否500用户(较早评论)是必要的,它只是取决于你想做的事,但要确保有需求,然后做这项工作。 If you don’t have the time to devote to it make sure you have some trust worthy moderators to keep rule.如果您没有时间把它确保您有一些值得信任的主持人,保持规则。
June 30th, 2008 at 8:20 pm 08年六月30号在下午8点20分
@Daniel Bates - The nice thing about Simple Press forum is that no programming experience is required, you can admin it all from within the Wordpress Dashboard. @丹尼尔贝茨-尼斯的事简单新闻论坛是没有编程经验需要,您可以管理这一切从W ordPress的控制台。 Also, the security so fine grained, I’ve not received a single spam post (yet).另外,安全,以便细粒,我一直没有收到一个垃圾邮件后(至今) 。 Maybe my attitude will change over time, but for now I think it’s better than a standalone forum (which I’ve had many of in the past)也许我的态度会随着时间推移而改变,但现在我认为这是优于一个独立的论坛(这我有许多在过去的)
July 2nd, 2008 at 7:50 pm 2008年七月2号在下午7点50
Has anyone had any experience using bbPress.有没有人有任何经验,使用bbPress 。 It’s supposed to be written by the same people who write Wordpress这是应该的书面由同一人谁写WordPress的
July 3rd, 2008 at 3:31 am 2008年7月三日在上午3时31
Paul - I loaded it on my server and took a look at it and it seemed very short on extras not many plugins and themes available.保罗-我装上我的伺服器,并看看它,它似乎很短的演员不是很多插件和主题可用。 Perhaps like wordpress they will be aided by all the great programmers out there that have time to tweak it and offer their improvements but I decided to erase it and load simple press forum and found it to be loaded with exactly what I wanted and appear with in my posting window like I wanted so no need to spend days trying to match the theme to my current website.也许他们想WordPress的将有助于所有伟大的程序员了那里,有时间来调整它,并提供其改进,但我决定抹去它和负载简单的新闻论坛,并发现它是满载正是我想,似乎在我想发布窗口,使我想没有必要花时间试图匹配的主题,我目前的网站上。 I haven’t gone live with it yet but you’re welcome to check it out at我已经没有住在一起的,但是我们欢迎您来检查它在 http://www.mymcclellanville.net/forum
July 3rd, 2008 at 7:06 pm 2008年7月三日在下午7点06分
Daniel, I like your new site.丹尼尔,我喜欢您的新网站。 It has a lot of potential.它有一个很大的发展潜力。
Two things I learned from this post.两件事情我从这一职务。
1. 1 。 Put the blog on the main domain and BANS in a sub folder will get the best results.把博客的主要领域,并禁止在一个分文件夹将得到最好的结果。
2. 2 。 Simple Press is the best match for Wordpress at this time.简单的新闻是最好的WordPress的比赛在这个时候。
My next new site will be set up this way.我的下一个新的网站将设立这种方式。
Thanks JT and everyone else who contributed由于日本烟草公司和其他人谁的贡献