非常漂亮、轻量的现代化论坛Flarum推荐一下

in 实用资源 with 0 comment

我自己搭了两个小论坛,一个叫良心网站,就是好评网站,另一个就是对应的恶心网站。先来看看这颜值:
前台:
2022-03-08T03:45:36.png
后台:
2022-03-08T03:46:58.png

这个论坛好几年前我就有使用过,当时还是BETA版,现在已经1.0版本了。可以看一下,开源软件哈:https://github.com/flarum/flarum

好了,开始吧:

环境要求:

Apache(启用 mod_rewrite)或Nginx
PHP 7.3+带有以下扩展:curl、dom、gd、json、mbstring、openssl、pdo _ mysql、tokenizer、zip
MySQL 5.6+/8.0.23+或MariaDB 10.0.5+
SSH(命令行)访问以运行 Composer

安装composer

至于怎么安装composer,你可以访问这里:https://getcomposer.org/download/
或用如下的代码自行安装:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer

然后就开始安装了:

composer create-project flarum/flarum .

修改nginx

再将网站的根目录向你代码目录下的pulic文件夹
/path/to/your/forum/public

加上

include /path/to/flarum/.nginx.conf;

然后就能访问啦

可以看下官方的文档 https://docs.flarum.org/

这个论坛有很多免费的插件,为了方便大家,我直接将我搜集到的插件全部放在下面,大家只要全部复制粘贴然后在网页刷新一下后台就能看到了。

cd /data/wwwroot/XXXX             #进到你的论坛根目录
composer require flarum-lang/chinese-simplified
composer require fof/formatting:"*"
composer require fof/upload
composer require fof/links
composer require fof/user-bio:"*"
composer require fof/pages
composer require fof/polls
composer require michaelbelgium/flarum-discussion-views
composer require v17development/flarum-seo
composer require fof/sitemap
composer require fof/follow-tags:"*"
composer require fof/profile-image-crop:"*"
composer require fof/reactions
composer require fof/merge-discussions:"*"
composer require fof/nightmode:"*"
composer require clarkwinkelmann/flarum-ext-emojionearea
composer require fof/default-user-preferences:"*"
composer require clarkwinkelmann/flarum-ext-circle-groups
composer require fof/spamblock:"*"
composer require fof/drafts:"*"
composer require fof/gamification
composer require fof/ignore-users:"*"
composer require fof/socialprofile
composer require fof/pretty-mail:"*"
composer require fof/oauth:"*"
composer require fof/share-social
composer require antoinefr/flarum-ext-online
composer require fof/frontpage
composer require isaced/flarum-ext-email-verification-switch:"*"
composer require fof/cookie-consent
composer require zerosonesfun/elint
composer require dem13n/discussion-cards
composer require yannisme/confixtheme
composer require fof/mason
composer require serakoi/flarumdiscordtheme:"*"
composer require malago/flarum-ext-fancybox
composer require datlechin/flarum-link-preview:"*"
composer require justoverclock/hot-discussions-cards:"*"
composer require serakoi/flarumdiscordtheme:"*"
composer require fof/reactions
composer require fof/byobu:"*"
composer require askvortsov/flarum-pwa
composer require askvortsov/flarum-categories
composer require fof/custom-footer:"*"
composer require afrux/forum-widgets-core:"*"
composer require afrux/forum-stats-widget:"*"
composer require afrux/online-users-widget:"*"
composer require afrux/top-posters-widget:"*"
composer require afrux/news-widget:"*"
composer require davwheat/custom-sidenav-links:"*"
composer require nearata/flarum-ext-tags-color-generator
composer require mickmelon/flarum-ext-coloured-usernames
composer require extiverse/mercury:*
composer require afrux/asirem
composer require sycho/flarum-advanced-extension-categories
composer require darkle/fancybox




php flarum migrate
php flarum cache:clear



记得把路径名改一下。
这里面有插件的,也有主题的,大家可以自己一个一个去探索一下哈。

Responses