31 posts in this thread

To-Do

  • documentation
    • general usage
    • template creation
    • css 'framework'
    • js 'framework'
    • 'addon' creation

Where's K-Load v1?


Where's the dashboard? Where's the admin panel?

  • dashboard is the main page and you can see all the other pages on the sidenav
  • dashboard/admin is only accessible to admins set

Is there DRM

  • No, that's gay.

Can you help me with the setup?

  • If there's a fatal error occurring yes, but make sure you have met all the requirements.

I'm getting 404s

  • Apache users
    • make sure you have an .htaccess file with this inside
    • if you are self hosted, then make sure apache is configured properly

.htaccess:

<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]
</IfModule>

If you are self hosted on apache open: /etc/apache2/apache2.conf

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>
  • change AllowOverride None -> AllowOverride All
  • restart apache
  • nginx users
    • IF YOU DO NOT KNOW WHERE TO PLACE THIS, YOU SHOULD NOT BE RUNNING NGINX
location /path/to/k-load/ {
    try_files $uri $uri/ /path/to/k-load/index.php$is_args$args;
}

Uh-Oh - Cache directory does not exist and automatic creation failed.

  • your webserver doesn't have to ability to write to the folder and files
  • if you use a shared host, you won't run into this issue
  • if you're unmanaged (you set it up yourself)
    • chown -R www-data:www-data /path/to/k-load
    • EX: chown -R www-data:www-data /var/www/html/k-load
  • www-data is the user your webserver runs under. Change this if it is different

How do I update?

  1. Download the update from GMS
  2. Upload the CONTENTS of the updates folder to the root of your K-Load installation
  3. Login and visit the admin dashboard to run the updater.
  4. If the updater fails to run, check the data/logs/action folder and if need be, create a ticket with me

How do I create a loading screen design?

  1. Copy the .template folder inside the themes/ folder and rename to what you choose (lowercase only)
  2. Open up the pages/loading.twig file and insert any html to be visible inside the {% block body %}
  3. CSS & JS go in their respective blocks and these blocks exist, so the core K-Load files can be loaded on top of the theme such as the global JS

How do I hide certain theme choices?

  • Open data/config.php and comment out the theme name using //
  "loading_themes" => [
    "default",
    "eris",
    "neuron",
    // "oxygen"
  ],

How do I change/add a static background?

  1. Open up themes/<theme>/assets/<theme>.css where <theme> is the name of the folder for the theme e.g. neuron.
  2. If the file exists, add this inside:
body:before, body::before {
    background-image: url(IMAGE_LINK_GOES_HERE);
}
  1. If it doesn't exist open themes/<theme>/pages/loading.twig
  2. Modify the contents inside this block or add it if it exists:
{% block css %}
<style>
body:before, body::before {
    background-image: url(IMAGE_LINK_GOES_HERE);
}
</style>
{% endblock %}

How do I enable a slideshow background?

  1. Create a global folder inside assets/img/backgrounds.
  2. Place your images inside assets/img/backgrounds/global.
  3. Refresh the loading screen or clear cache to see changes.
  4. For a gamemode specific cycle of backgrounds create a folder respective the to gamemode.
    • For example, for Trouble in Terrorist Town, create a assets/img/backgrounds/terrortown folder and place your images inside
  5. If you want to upload images, but not immediately use them, create a disabled folder INSIDE the type of background folder e.g. global/disabled or whatever name you choose, it doesn't matter.
  6. K-Load automatically searches for all images and adds them to the list, all you need to do is upload them.


How do I add a video background?

This currently isn't a thing in K-Load mainly cause of the conflict I saw with youtube videos and music.

  1. Create a videos folder inside assets.
  2. Place your videos inside assets/videos.
    • ALL videos must be .webm cause gmod supports it.
  3. Open up assets/css/loading.css and paste this in:
#video_background {
    z-index: -9999;
    position: fixed;
    bottom: 0px;
    left: 0px;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    overflow: hidden;
}
  1. Choose a theme you want to have a video background in, open themes/<theme>/pages/loading.twig and paste this in.
<video  id="video_background" autoplay loop>
    <source src="{{assets}}/videos/NAME_OF_VIDEO_FILE.webm" type="video/webm" />
</video>

How do I display Pointshop 1/2, Darkrp Wallet, etc?

  1. In the inc/classes/mods/disabled folder there are 3 addons currently.
  2. Take addon_ps1.class.php for example, after filling in the mysql details for the PS1 database, move the file into the inc/classes/mods folder and in your templates.
  3. Place {{ custom.ps1 }} where you want to display the number of points a user has. {{ custom.<ps1/ps2/darkrp_wallet> }} are available when setup.

How do I do ____ ?

  • Your best bet is to contact me as there are docs that still need to be written up, see below on contacting me.

How do I contact you?


buy lunar index dlc

Oh I so wish I had lunar index and kload!

broken loading screen plis refund or I chargeback and call polizce

By atlas at 25th of January 2018 00:55:07

broken loading screen plis refund or I chargeback and call polizce

no chargebak 10 times its better

Is every update mandatory to update?

By DesertedCake at 27th of January 2018 02:16:05

Is every update mandatory to update?

Most of the time, yes, but for example the most recent one fixed an issue with a customer who uses french characters. So you can see that wouldn't apply to majority of customers.

I'll try to keep updates to a minimal unless there are some serious issues that need to be addressed. I'll start making note of whether or not it's important to update. Also at this point, you should be alright to download K-Load and just copy the inc/migrations and inc/updates folder when updating K-Load so you don't have to re-upload the entire thing. There were times where I was silently editing files in updates already pushed about because they were simple types or had one too many web hooks many the time after pressing download a bit longer than normal.

when will version 3 be out???

By atlas at 27th of January 2018 04:58:58

when will version 3 be out???

By kanalumaddela at 27th of January 2018 05:00:26

hehe

Coupons

spring-break - 25% off

Seems more like advertising for crident than the script to me...

I recommend this script
Good support, quick and efficient


better coupon?

By Dr.Pepper at 10th of March 2018 21:22:53

better coupon?

Jokes?

On the loading screen eris the two icons (Steam and microphone) dont show up, is there any reasoning for this or any way i can fix it?

By Clam at 24th of April 2018 15:05:38

On the loading screen eris the two icons (Steam and microphone) dont show up, is there any reasoning for this or any way i can fix it?

Doesn't show you own it?
?

It's not my addon, i'm the "developer/configurer" of the server, if you'd like i can contact the owner who i'm working with to post here instead.

By Clam at 24th of April 2018 15:20:42

It's not my addon, i'm the "developer/configurer" of the server, if you'd like i can contact the owner who i'm working with to post here instead.

I'm the person who owns the server she's the configurer for.

Users currently viewing this thread: Nobody