for flarum beta.7
step-by-step installation
⠀
You will probably be able to install my extension to the beta7
version of flarum with this command:
composer require fajuu/contactbutton dev-beta.7
⠀
If not, here you have detailed instructions on how to do it:
We have to download the extension in the folder vendor
.
⠀
In order to do this, you must be in the folder of the flarum installation:
cd flarum_install_folder
⠀
Here you don't have to change anything anymore:
cd vendor
mkdir fajuu
cd fajuu
wget https://github.com/fajuu/ContactButton/archive/beta.7.zip
unzip beta.7.zip
mv ContactButton-beta.7 contactbutton
rm -r beta.7.zip
⠀
Now, when you have already downloaded an extension you have to "activate" it in order to be visible in the admin panel.
⠀
To do this, go to this folder, the path below:
/flarum_install_folder/vendor/composer
⠀
We must now add a specific content to the given file:⠀
⠀
autoload_psr4.php
'Fajuu\\ContactButton\\' => array($vendorDir . '/fajuu/contactbutton/src'),
⠀
autoload_static.php in public static $prefixDirsPsr4 = array (
'Fajuu\\ContactButton\\' =>
array (
0 => __DIR__ . '/..' . '/fajuu/contactbutton/src',
),
⠀
installed.json
{
"name": "fajuu/contactbutton",
"version": "0.1.0-beta.7",
"version_normalized": "0.1.0.0-beta7",
"require": {
"flarum/core": "^0.1.0-beta.7"
},
"time": "2018-12-28T16:35:54+00:00",
"type": "flarum-extension",
"extra": {
"flarum-extension": {
"title": "Contact Button",
"icon": {
"name": "envelope-o",
"backgroundColor": "#14191f",
"color": "#8e24aa"
}
}
},
"installation-source": "dist",
"autoload": {
"psr-4": {
"Fajuu\\ContactButton\\": "src/"
}
},
"license": [
"MIT"
],
"description": "Adds a contact button, which opens an email with the administrator's addressee.",
"homepage": "https://github.com/fajuu/contactbutton",
"keywords": [
"contactbutton",
"fajuu",
"flarum"
]
},
⠀
Screenshots, take a look and see if you have the same 🙂
⠀
Congratulations, you probably managed to manually install my extension to your forum! 😃
⠀
Legal
I am not responsible for any problems, bugs, or guarantee that the installation will succeed. However, the extension on my website hosting I installed step by step (read above) without any obstacles.
I'd like to inform you that I'm abandoning the extension to the flarum beta.7
forum, which means that it won't get any improvements or new features. In case of any errors with the extension, please contact me and I will try to help you.