| Download Include v1.0
Panel for PHP-Fusion v7.02.xx |
|
What it does:
This
is designed as a Lower Center panel which will search your downloads
folder and attempt to match older versions of existing downloads and display them in downloads.php.
Eg; If a download file is called mydownloadfile_v1.2.zip this panel will
ignore the last 9 characters (see configuration) of the filename leaving
just mydownloadfile and will search your downloads folder for any
other file matching "mydownloadfile" and display any found just below
the download button.
mydownloadfile_v1-2.zip &
mydownloadfile_v1-1.zip will match
mydownloadfile_v1-2.zip & v1-2mydownloadfile.zip will not match
- This is a read only panel that does not require any core
file modification.
- It can be installed and uninstalled without affecting your site content.
Upgrade:
|
Installation:
- Upload download_include_panel folder to your infusions folder
- Go to Admin Panel - System Admin - Panels
- Click Lower Center [New Panel]
- Enter Panel Name
- Select download_include_panel from the Panel Filename dropdown menu
- Enter /downloads.php in Panel Restrictions textfield and select
Include on these pages
- Enter Admin Password
- Select Panel Access
- Check Display panel on all pages
- Save Panel
Core File Modification:
- None
|
Configuration:
- Open infusions/download_include_panel/download_include_panel.php
- Find line 24
- Set $char_ignore to required number
- $char_ignore is the number of characters at the end of the
filename to be ignored during downloads folder search.
- If filename is mydownloadfilev1.zip, $char_ignore should be set
as 5 (ignoring: 1.zip)
- If filename is mydownloadfile_1-2.zip, $char_remove should be set
as 8 (ignoring: _1-2.zip)
Misc: For this panel to work you will need to have left older
download files in your downloads folder AND that you use a consistent name
for each of them.
|
| Support:
hobbysites.net or
php-fusion.co.uk |
Version: 1.0 |
| hobbysites - Addons for php-fusion |