Make a download page

Fred_4346f29d
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: Sunday 27th August 2017, 18:37:08

Before ask a question, read the documentation.
Sorry I'm busy right now
Please like in alternativeto.net 👍🏻
╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!


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

Plugin sent!

Before ask a question, read the documentation.
Sorry I'm busy right now
Please like in alternativeto.net 👍🏻
╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!


identicon
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: Monday 11th September 2017, 02:26:26

identicon
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_4346f29d
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 wink

Before ask a question, read the documentation.
Sorry I'm busy right now
Please like in alternativeto.net 👍🏻
╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!


simon_20a65f4f
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_20a65f4f
Simon  Saturday 13th January 2018, 14:58:05

Ce qui donne :

image