Link Vault for Craft CMS - Installation & Setup

Requirements

  • Craft CMS 2.6+
  • PHP 5.3.0+

Installation

  1. Place the linkvault folder in the craft/plugins/ folder of your project.
  2. Install the plugin the usual way from the Craft CMS control panel.

Settings

Leech Attempt Template

This template will load with a 403 status whenever someone attempts to leech a download URL as long as leech blocking is enabled. Link Vault provides a default template to use if this setting is left blank.

Missing File Template

This template will load with a 404 status whenever someone attempts to download a file that doesn't exist. Link Vault provides a default template to use if this setting is left blank.

Configuration Variables

Link Vault has a number of config variables that can be overridden by creating a linkvault.php file in your project's craft/config/ folder. The defaults are displayed below.

Sample Code

<?php
    
return array(
	// Set to "true" for additional logging in craft/storage/runtime/logs/linkvault.log.
 	'debug' => false,
 	// The route URI to use for the generated download URLs.
 	'downloadTrigger' => 'download',
 	// Set to "true" to prevent file leeching.
   	'blockLeechAttempts' => true,
   	// Set to "true" to log leech attempts.
   	'logLeechAttempts' => true
);

Dashboard Widgets

Top Downloads

The Top Downloads dashboard widget displays the top ten Link Vault download files on the site along with the number of times each has been downloaded.