Configuration
Step 1 - Locating the config.php file
Locate the config.php file inside of File Manager. This will be in public_html or the sub folder. When you have located the config file double click it to open the file and edit it.
Step 2 - Base URL
The base url can be located at the top of the config file
Replace the base url with your link. IMPORTANT: Make sure there is no /
at the end of the base url.
Step 3 - SQL DATABASE CONNECTION
Step 4 - DISCORD OAUTH2
Head to the Discord Developer Portal.
Create a application.
First we will get the bot token. Head to the bot navigation on your application and create the bot. When you have created the bot click on the Copy button under the token.
Now that you have that copied replace TOKEN-HERE with the token you have copied.
Guild ID. = Right click on your servers profile image on discord and press COPY ID if this is not a option you will have to enable developer mode in the discord settings.
Now replace GUILD-ID-HERE with the ID you now have copied.
OAUTH2 CLIENT ID. = On the dev portal head to OAuth2 section.
Now head to the client id and press the copy button.
Now replace the OAUTH2_CLIENT_ID with the ID you have copied.
OAUTH2 CLIENT SECRET = On the dev portal OAuth2 section copy the secret key.
Now replace OAUTH2_CLIENT_SECRET with what you have copied.
Make sure that the application is inside your discord server. You can do that via the below link.
https://discordapp.com/oauth2/authorizeclient_id=CLIENT_ID_HERE&scope=bot&permissions=0 Replace CLIENTIDHERE with the applications client ID.
Finally, Set the OAuth2 Redirect here: (link + /actions/register.php)
php.ini File Configuration
Making the session timeout longer, now became easier!
Head into cPanel
Select your Community Site domain from the dropdown
Paste the following inside of the textbox, under anything else that is already pre-generated or pre-entered:
session.gc_maxlifetime = 86400 session.cookie_lifetime = 86400
86400 will allow the website to remember you for up to 24 hours.Once you've entered that, select Save.
Last updated