最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】把Vanilla集成到本地的wordpress中

BBS crifan 2834浏览 0评论

想要集成bbs到wordpress中,已经试了试了bbPress但是不爽,所以继续试试Vanilla

去主页中,找到下载地方,填写邮箱,下载最新版的vanilla-core-2-0-18-4.zip,解压后得到vanilla文件夹,看了看其中的readme.html,其中有如何安装的解释:

Requirements

  • PHP version 5.2.0 or newer.
  • The pdo_mysql module must be enabled (it is enabled by default, but some web hosts disable it).
  • MySQL 5 or newer.

Installation

  1. Upload this entire file structure up to your web server.
  2. Navigate to that folder in your web browser.
  3. Follow the instructions on screen.

而此处也去确认了,PHP中pdo_mysql是开启了的:

php_pdo_mysql

所以,打算先试试,直接新建一个文件夹,用于独立安装Vanilla,然后如果安装成功了,再试试如何整合进入wordpress。


1 。把vanilla放到wamp的www下面,然后访问:

http://localhost/vanilla

vanilla installer

2. 发现也是需要数据库的。

所以先去

http://localhost/phpmyadmin/

新建一个vanilla。

new vanilla db

 

3.回来继续安装:

database settings

user and pwd

4.结果点击了Continue后,还没反应呢,却瞬间进入了Vanilla后台了:

into vanilla

忒帅了。

啥都没创建,直接点击 view site看看效果:

empty vanilla

5.接着就是去瞎折腾,创建一些子目录了。

add category

save category

6. 建立好多个子讨论区后,还支持拖动式地调整上下级关系:

drag to pos

7.然后建立好后,可以查看效果:

view category

category list

 

8.有空再参考:

Integrating Vanilla Forum and WordPress Themes

去实现集成到wordpress里面吧。

9. 再先去试试其他功能。

里面还有个message,允许(管理员)在论坛上面贴出通知/警告等信息。

另外,新用户注册,有几种选择。Basic模式的界面如下:

register new

10. 期间出现了Could not instantiate mail function的错误,折腾过程参见:

【未解决】Vanilla中新用户申请失败:Could not instantiate mail function

11.本来打算参考上面的去试试,如何继承vanilla到本地的,但是发现,其实本地折腾的集成vanilla到wordpress中,和以后在线需要折腾的,不是一样的。

因为本地的vanilla和wordpress的位置,是vanilla和wordpress是同级目录,而在线的vanilla是wordpress的下的一个子目录。

所以,接着要去重新试试vanilla,重新在wordpress子目录下,去安装一个vanilla。

12.先去新建一个vanilla_within_wordpress的数据库。

把全新的vanilla拷贝到wordpress下。

运行:http://localhost/wordpress/vanilla

是可以看到安装界面的。

填好数据:

vanilla_within_wordpress

wordpress下的vanilla

然后continue后,是可以进入的:

可以进去wordpress下的vanilla的

所以,验证完毕后,接着就可以去在线的网站去折腾了。


具体的折腾过程,参见:

【记录】为在线的WordPress网站crifan.com添加一个bbs(子)论坛

转载请注明:在路上 » 【记录】把Vanilla集成到本地的wordpress中

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.197 seconds, using 22.11MB memory