Download RC2 / RC3

Started by Herman's Mixen, March 12, 2006, 05:49:05 PM

Previous topic - Next topic

Herman's Mixen

it add a download page to your forum from wich users can download files from
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

murdo

how do you use the "keywords"  ??

are they seperated by comma or space etc?  When i search, and tick "search keywords" it never finds any matches....

Herman's Mixen

coz you can't search within the download page for a specifc file at least in this mod
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

okapi

Quote from: BTC on November 19, 2007, 08:54:47 AM
Very simple download mod. Great work!

When I change my websettings from php4 to PHP5.
Everything looks fine. But when I try to download a file, I get a hacking attempt.

Does the script need some modification?

Same error... any updates? thx

Herman's Mixen

coz the lack of time i dont be able to update anything but i am gonna work on other system... when i have more time to spend on coding
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-=[Vyorel]=-

Very nice!!! In Language Romanian of?
My mods for SMF - [6].

BTC

#86
This download system is still a great modification, simple and effective. All the other download / archive systems are in my opinion way toooooo fancy. However with the entrance of SMF 2.0 RC1 and php 5, this modification only works with previous versions (1.1.8< and php 4<). I have noticed that The Burgler is a busy men and will not update this mod any time soon, so why not a little help. And ofcoure I really want to use this download system.

2 The Burgler:  I updated this mod to work with SMF 2.0RC1 and php5. Also as an addition I made more images for different file extensions (mp3, excel, word, etc). I hope you like it and add it to the modification archive of SMF.

I've used this hxxp:php.holtsmark.no/base64img/demo.php [nonactive] for encoding the images.




Start manual install:


File: ./index.php

find:
'xmlhttp' => array('Xml.php', 'XMLhttpMain'),

add after:
'downloads' => array('Downloads.php', 'Downloads'),

File: ./Sources/Subs.php

find:
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
),


add after:
'downloads' => array(
'title' => $txt['downloads'],
'href' => $scripturl . '?action=downloads',
'show' => true,
'sub_buttons' => array(
),
),


File: ./Sources/ManagePermissions.php

find:
'who_view',

add after:
'view_downloads',

find:
'who_view' => array(false, 'general', 'view_basic_info'),

add after:
'view_downloads' => array(false, 'general', 'view_basic_info'),

File: ./Themes/default/languages/Modifications.english.php

add:

$txt['cannot_view_downloads'] = "You arent allowed to view the downloads!";
$txt['permissionhelp_view_downloads'] = "Allow this if you want this group to access the downloads";
$txt['permissionname_view_downloads'] = "Can view Downloads";
$txt['downloads'] = "Downloads";


File: ./Themes/default/languages/Modifications.dutch.php

add:

$txt['cannot_view_downloads'] = "Je bent niet gemachtigd om de downloads te bekijken!";
$txt['permissionhelp_view_downloads'] = "Sta dit toe als u deze groep tot de downloads toegang wilt geven";
$txt['permissionname_view_downloads'] = "Kan downloads bekijken";
$txt['downloads'] = "Downloads";


File: ./Themes/default/languages/Who.english.php

find:
$txt['whoall_activate'] = 'Activating their account.';

add before:
$txt['whoall_downloads'] = 'Viewing the Downloads.';

File: ./Themes/default/languages/Who.dutch.php

find:
$txt['whoall_activate'] = 'Activeert zijn/haar account.';

add before:
$txt['whoall_downloads'] = 'Bekijkt het download archief.';

And ofcourse the rest of the files (see attachments):

Move the file "download.php" to "the root directory".
Move the file "Downloadimg.php" to "./Sources".
Move the file "Downloads.php" to "./Sources".
Move the file "Downloads.template.php" to "./Themes/default".
Move the file "Downloads.english.php" to "./Themes/default/languages".
Move the file "Downloads.dutch.php" to "./Themes/default/languages".

Put all your files in directory ./Downloads

Once again, Thanks for the great mod!
Doorzetten is de sleutel tot succes!!!

Advertisement: