Make a download page

Fred
Make a download page
Fred Sunday 27th August 2017, 18:35:03

image
Hi, you want to propose files to download from your site Flatboard?
Ok, follow the guide 👀...

1°) Recover this file (right click, save as) and rename it to download.php.
2°) Send it to the root of your Flatboard, and insert the link in your sidebar of the theme (sidebar.tpl.php).
3°) Create the download folder in the uploads folder.
4°) Send your archives (.zip only!) to this folder.
5 °) Finish

You can customize the script by editing it, everything is commented.

Last modified by Fred on Sunday 27th August 2017, 18:37:00
  • Before ask a question, read the documentation.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

Replies 15
Fred
Fred  Sunday 10th September 2017, 18:37:23

Plugin sent!
  • Before ask a question, read the documentation.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

AlexanderLiebrecht
AlexanderLiebrecht@5e3cf8af  Monday 11th September 2017, 02:25:08

 

Thanks @Fred,

have replied to your mail and one thing can be fixed with the plugin still. But otherwise I like it already well.

Oh, FileDescription could be a bit longer. Would it be possible?

Last modified by AlexanderLiebrecht@5e3cf8af on Monday 11th September 2017, 02:26:00

AlexanderLiebrecht
AlexanderLiebrecht@5e3cf8af  Wednesday 13th September 2017, 11:49:53

Hi @Fred,

sorry that I have not written to you by mail. I had to clarify some things privately.

The download plugin now works well in the new flatboard version. I have now tested again. So you can make the plugin here in the forum, if you want.

Fred
Fred  Friday 15th September 2017, 08:23:40

  The plugin is currently working only with the next version of Flatboard, which is not published, so the plugin will not be ;)
  • Before ask a question, read the documentation.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

simon
Simon  Saturday 13th January 2018, 14:54:57

Je tiens aussi à préciser pour tous les francophone, pour avoir la date en français, remplacez
         $date      = date($config['date_format'], $filemtime);

Par :

$date = date($config['date_format'], $filemtime);
$en = array("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
$fr = array("Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche", " Janvier", "Février", " Mars", "Avril", " Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre");
$date = str_replace($en, $fr, $date);
$date = str_replace("th", "", $date);

simon
Simon  Saturday 13th January 2018, 14:58:05

Ce qui donne :

image

simon
Simon  Friday 30th November 2018, 05:37:08

Fred, the link doesn't work :/