Download Include v1.0 Panel for PHP-Fusion v7.02.xx
Download Include Panel v1.0 for v7.01.xx by HobbyMan | See includedagpl.htmlfor more.
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:

  • n/a

Installation:
  1. Upload download_include_panel folder to your infusions folder
  2. Go to Admin Panel - System Admin - Panels
  3. Click Lower Center [New Panel]
  4. Enter Panel Name
  5. Select download_include_panel from the Panel Filename dropdown menu
  6. Enter /downloads.php in Panel Restrictions textfield and select Include on these pages
  7. Enter Admin Password
  8. Select Panel Access
  9. Check Display panel on all pages
  10. Save Panel

Core File Modification:

  1. 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

Notes and Changelog

Notes:

 
Changelog:
  • v1.00 - First public version