User:Lecid/Downloads: Difference between revisions
Appearance
From Meta, a Wikimedia project coordination wiki
No edit summary
Line 46:
Line 46:
# mkdir -p downloads/.icons
# mkdir -p downloads/.icons
For example, put two files :
For example, put two files(追記) in '''/data/web/site/downloads/''' (追記ここまで) :
* toto.tgz
* toto.tgz
Line 53:
Line 53:
If you want you could fetch my icons in : http://www.diablotins.org/medias/downloads/.icons/ by :
If you want you could fetch my icons in : http://www.diablotins.org/medias/downloads/.icons/ by :
# cd /data/web/site/downloads/.icons/
# wget -r http://www.diablotins.org/medias/downloads/.icons/
# wget -r http://www.diablotins.org/medias/downloads/.icons/
Clean all files not in Gif formats in the path.
''(tgz and zip are avaible in my .icons)''
⚫
In your Wiki code, add :
# cd /data/web/site/downloads/.data/
# touch toto.info
# touch titi.info
Edit this two file :
* First line is to add '''description'''.
* Second line is to precise à '''Platform'''.
⚫
In your Wiki code, add :
<downloads url="http://www.site.com/downloads/" path="/data/web/site/downloads/"></downloads>
=== Demonstration ===
=== Demonstration ===
Revision as of 17:34, 31 March 2006
Downloads
Download source code
Description
Downloads : Provide a downloads Aera on your wiki fom FS with comments and icons.
- This tools is a Parser Hooker For MediaWiki how display a downloads Aera on your wiki fom FS with comments and icons.
- Version : 0.1
- Copyright (c) BSD <romain@ultragreen.net> Romain GEORGES 2006
Hack
Installation
- Add Downloads.php in the Mediawiki's extensions path : $MEDIAWIKI_PATH/extensions/
see download source code section
- Add the line :
require_once(" extensions/Downloads.php ");
In your $MEDIAWIKI_PATH/LocalSettings.php file
Configuration/Usage
For a Path to download like '/data/web/site/downloads' how can be access as http://www.site.com/downloads :
You have to create dir downloads and two others dirs :
(optional but great ;))
# cd /data/web/site/ # mkdir -p downloads/.data # mkdir -p downloads/.icons
For example, put two files in /data/web/site/downloads/ :
- toto.tgz
- titi.zip
If you want you could fetch my icons in : http://www.diablotins.org/medias/downloads/.icons/ by :
# cd /data/web/site/downloads/.icons/ # wget -r http://www.diablotins.org/medias/downloads/.icons/
Clean all files not in Gif formats in the path.
(tgz and zip are avaible in my .icons)
# cd /data/web/site/downloads/.data/ # touch toto.info # touch titi.info
Edit this two file :
- First line is to add description.
- Second line is to precise à Platform.
In your Wiki code, add :
<downloads url="http://www.site.com/downloads/" path="/data/web/site/downloads/"></downloads>