Host Unlimited Web Sites for Only $10 per Month! 主机无限网站的只有10元每月!
Powered by MaxBlogPress 本站由MaxBlogPress

WordPress的哈克# 16 :新增一个论坛,以WordPress的论坛| JTPRATT的博客误区
JTPratt的博客错误





JTPratt's Blogging Mistakes Forum JTPratt的博客错误论坛

58,511 views 58511意见

You must be logged in to post 您必须登录后 Login注册 Register登记册

Search搜索
Search Forums:搜索论坛:






Wordpress Hack #16: Adding a Forum to Wordpress WordPress的哈克# 16 :新增一个论坛,以WordPress的
Read original blog post 读取原来的博客帖子

User用户 Post邮政

3:33 pm下午3点33分
May 27, 2008 2008年5月27日


jtpratt jtpratt

Admin管理

MI, USA MI ,美国

posts 57职位57

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的博客或独立论坛:

  1. As a blog owner this gives you a TON of more search engine indexable pages作为博客主人,这给你一吨以上的搜索引擎索引的网页
  2. 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)它使博客帖子获得堵塞与数以百计的意见(他们刚刚结束后,几个和部队每个人都该论坛后)
  3. It makes your blog uber-interactive, much more than a blog with comments alone它使您的博客超级互动式的,远不止一个博客的评论仅
  4. You now have a place to post random tidbits of info without having to create tons of useless blog posts你现在有一个地方后随机花絮信息,而不需要创造吨无用的博客帖子
  5. 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最糟糕的一个新的论坛是为人们接受的职位,它的播种与博客帖子您收到即时的活跃论坛
  6. 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!评论现在-或后续论坛联系,并加入到讨论!


Read original blog post 读取原来的博客帖子

3:38 pm下午3时38
May 27, 2008 2008年5月27日


jtpratt jtpratt

Admin管理

MI, USA MI ,美国

posts 57职位57

I'm considering removing one or both sidebars for the forum pages (which also means that I might need a custom page template).我考虑删除一个或两个sidebars为论坛的网页(这也意味着,我可能需要一个自定义页面模板) 。 What do you think?您觉得呢?

12:55 am上午12时55分
May 28, 2008 08年5月28日


jtpratt jtpratt

Admin管理

MI, USA MI ,美国

posts 57职位57

alright - I did make a custom page template just for the forum, and I think it looks much better this way.还好-我没有让一个自定义网页模板公正的论坛,我认为它看起来好得多这种方式。 I just removed the right sidebar only and kept the left.我刚才删除的权利栏只有保持左侧。 I had some permissions issues at first, but I think now everything will work as intended!我有一些权限问题,第一,但我认为现在一切都将成为意!



Reply to Topic: Wordpress Hack #16: Adding a Forum to Wordpress回复主题: WordPress的哈克# 16 :新增一个论坛,以WordPress的

NOTE: New Posts are subject to administrator approval before being displayed 注意:新职位,但须管理员批准,才能被显示

Guest Name (Required):客户名称(必填) :

Guest EMail (Required):客户的电子邮件(必填) :

Guest URL (required)客户网址(必填)

Math Required! 数学要求!
What is the sum of: 9 + 6什么是总和 9 + 6 (Required) (必填)

Topic Reply:主题回复:



About the JTPRATT’s Blogging Mistakes forum关于JTPRATT的博客论坛的误区

Currently Online: 目前在线:

1 Guest一客户

Maximum Online: 23最高在线: 23

Forums: 论坛:

Groups: 4团体: 4

Forums: 11论坛: 11

Topics: 50话题: 50

Posts: 97帖子: 97

Members: 成员:

There are 18 members有18名成员

There are 18 guests有18个客人


jtpratt has made 57 posts jtpratt了57个员额

Top Posters: 顶端海报:

iceberg - 8冰山-8

multihb - 5 multihb -5

jsinkeywest - 1 jsinkeywest -1

AlanLest - 1 AlanLest -1

wells2008 - 0 wells2008 -0

Administrator: jtpratt | Moderators: YellowSwordfish署长: jtpratt |版主: YellowSwordfish


© Simple:Press Forum很简单:按论坛 - Version 3.1.3 (Build 356) -版本3 .1.3(生成3 56)