Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Herman's Mixen on March 12, 2006, 05:49:05 PM

Title: Download RC2 / RC3
Post by: Herman's Mixen on March 12, 2006, 05:49:05 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=267)

this mod is based on simple download from nesian styles,
this mod is modified for SMF 1.1 RC2 /RC3 released
nesian style did not have any upgraded version of this version to use with SMF 1.1 RC2 / RC3
I will upgrade till final release and will add more adjustments at a later time !
Title: Re: Download RC2
Post by: Bigguy on March 18, 2006, 04:09:39 PM
How do I upload with this mod ??? I`m missing something I think.

EDIT: Nvm, I forgot you have to add a "Download" folder to your smf directory and then add folders to it for subcatagories and then upload via ftp or cpanel to those folders for the downloads page to work.
Title: Re: Download RC2
Post by: Herman's Mixen on April 08, 2006, 10:59:17 AM
just put your files in the download folder

Title: Re: Download RC2
Post by: Bigguy on April 08, 2006, 11:32:14 AM
Thanks I got it.

Quote from: Bigguy link=topic=75895.msg515908#msg515908 date=1142716179

b]EDIT:[/b] Nvm, I forgot you have to add a "Download" folder to your smf directory and then add folders to it for subcatagories and then upload via ftp or cpanel to those folders for the downloads page to work.
Title: Re: Download RC2
Post by: theslam2006 on June 15, 2006, 05:00:43 PM
Bah, should be an admin area for this thing. And MANY more options for it. Like how many posts you have you can download certain folders/categories, ect.
Title: Re: Download RC2
Post by: Vinspire on June 16, 2006, 12:20:48 AM
Ermm ... I am still confuse on what does this mod do. Anyone mind explaining it to me again ?  :-[
Title: Re: Download RC2
Post by: theslam2006 on June 16, 2006, 12:34:55 AM
Its a download mod dude. You supposedly make a folder called Downloads in the root of your forum, and make other folders, those being the "categories" and put files into them. Then when you click "Downloads" at the top of your forum, it will show the categories letting you to download the files that you put in there. Not complicated. Actually, TOO simple....dont even try it. You would be better off making forum categories, and limit the forums to certain membergroups. This doesnt even have that....about 3 min.'s work to put this together I suspect...
Title: Re: Download RC2
Post by: Vinspire on June 16, 2006, 12:40:21 AM
Quote from: theslam2006 on June 16, 2006, 12:34:55 AM
Its a download mod dude. You supposedly make a folder called Downloads in the root of your forum, and make other folders, those being the "categories" and put files into them. Then when you click "Downloads" at the top of your forum, it will show the categories letting you to download the files that you put in there. Not complicated. Actually, TOO simple....dont even try it. You would be better off making forum categories, and limit the forums to certain membergroups. This doesnt even have that....about 3 min.'s work to put this together I suspect...

Ohh ... A download mod :)

I am using TP. Its included in it ... Thanks for the reply dude :)
Title: Re: Download RC2
Post by: Kret on July 22, 2006, 06:28:36 AM
Hi
i just installed that mod but cant see page http://ch0ked.sabaki.com.au/forum/index.php?action=downloads
i did add folder call download to forum root dir
and i did file call SteamInstall.exe http://ch0ked.sabaki.com.au/forum/download/SteamInstall.exe
anybody can tell me what can be wrong ?

thank you
Kret
Title: Re: Download RC2
Post by: gtron on July 22, 2006, 09:20:38 PM
Quote from: Kret on July 22, 2006, 06:28:36 AM
Hi
i just installed that mod but cant see page http://ch0ked.sabaki.com.au/forum/index.php?action=downloads
i did add folder call download to forum root dir
and i did file call SteamInstall.exe http://ch0ked.sabaki.com.au/forum/download/SteamInstall.exe
anybody can tell me what can be wrong ?

thank you
Kret

not that mines working but i think you have to make a folder called 'Downloads' (case sensitive) in your forum director. pretty sure anyway from what i read earlier.
Title: Re: Download RC2
Post by: R00K on July 29, 2006, 02:12:24 PM
Check the default theme.  I was confused about this mod, too until I switched back to the defauly theme...voila a download button.

I guess all that is left is to ftp the files.

A manager of sorts would be a nice feature.

Thanks for this rc2 compatible version.

Rook
Title: Re: Download RC2
Post by: Herman's Mixen on August 01, 2006, 09:39:38 AM
in the default and babylon theme there are standard buttons if you use an other theme you have manualy add them to it !!

put your download files in the Directory whats created in de forum root /Downloads
if not you have manually add it to your forum root.

then upload files or create dirs for your download folder via ftp

Title: Re: Download RC2
Post by: denislici on August 09, 2006, 09:29:06 AM

can i use a different ftp adress for downloads ? i mean Downloads folder would be in a different ftp ? can i do this ?  if i can and how plz ?
Title: Re: Download RC2
Post by: Herman's Mixen on August 15, 2006, 08:05:37 AM
Quote from: denislici on August 09, 2006, 09:29:06 AM

can i use a different ftp adress for downloads ? i mean Downloads folder would be in a different ftp ? can i do this ?  if i can and how plz ?

in this mod that's not yet possible
Title: Re: Download RC2 / RC3
Post by: OzExcalibur on September 14, 2006, 07:00:13 PM
RC 3 version installed and working fine, thanks for this mod  :)
Title: Re: Download RC2 / RC3
Post by: DJDoWNSTRoKe on October 12, 2006, 08:23:18 PM
this is my problem when i download a file:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

what happened? thanks
Title: Re: Download RC2 / RC3
Post by: Impaqt on October 21, 2006, 04:52:57 PM
Using RC3 and finally got this mod "Seemingly" working.  Made a Button.  Editied my index and CSS files, added permissions, got the button to show up, FTP's a file to the Downloads directory, It shows up in the DOwnloads area  and then.................

Left side is there supposed to be an image file there?  I have the X Image Box....  when I click on the file to Download I get

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on October 24, 2006, 10:01:00 AM
i will look at those errors i will fixing someting but i'll guess you email your phpinfo file to me so i can have a look what can maybe wrong at your host side

[email protected]
Title: Re: Download RC2 / RC3
Post by: Impaqt on October 26, 2006, 12:49:42 PM
Very stange things here..   It works  now..  I didnt do anything and all of a sudden it fixed itself!  Great module!

All I have to do now is tweak my download button...  What Font is that?

Thanks

Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on October 27, 2006, 06:39:01 AM
if ya using the babylon theme i have in the 1.1 rc2 module an download image i have desided to not implent that theme in future releases of this mod so that's why it is not there anymore ... if there enough animo i will maybe put it back in the final release....

maybe your host has updated some configs on the server maybe an update for php or something else ?
Title: Re: Download RC2 / RC3
Post by: Impaqt on October 27, 2006, 02:14:37 PM
Duh.. I'm using AA New Damage theme..  Why would you know what Font it is...  I'll ask the guy who wrote the theme....

Who knows what happens onthe internet sometimes....  I've stopped trying to figure most stuff out.

Title: Re: Download RC2 / RC3
Post by: dracomiconia on October 31, 2006, 05:35:41 AM
Just installed 1.1 RC3....

Going well.

I think it could be a great feature to add more things.

Rate, description, number of downloads.... permissions to upload.
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on October 31, 2006, 08:15:08 AM
there will be but i am working on a slightly different version right now and that should have an admin backend with lots of features... but will released when SMF status reaches 1.1 Final stage
Title: Re: Download RC2 / RC3
Post by: Greengoat on November 12, 2006, 02:24:12 PM
Thanks for the nice mod.  Got a small error on the index.template when I installed on a test board with a ton of mods but it still works just fine.

Can hardly wait for the next version.
Title: Re: Download RC2 / RC3
Post by: gogoruts on November 12, 2006, 10:40:24 PM
Niiiccceeee add-on!
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on November 14, 2006, 06:52:39 AM
@ greengoat

what's the exact error message ? wich version do you use ?
so i can inprove that version to work smoothly

about the next version there's much to do so i will wait for releasing that so that smf first reaches 1.1 final stage ... after that we need to do a lot of inprovements to work correctly ;)
Title: Re: Download RC2 / RC3
Post by: Jorin on December 05, 2006, 10:09:47 AM
Quote from: The Burglar! on November 14, 2006, 06:52:39 AM
about the next version there's much to do so i will wait for releasing that so that smf first reaches 1.1 final stage ... after that we need to do a lot of inprovements to work correctly ;)

Would be really great to see a comfortable download mod for 1.1. Keep going! I need it  ;)
Title: Re: Download RC2 / RC3
Post by: BlaZeR on January 28, 2007, 12:54:12 AM
Is there a way to limit the download speed or make it that users can only download * per day?
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on January 29, 2007, 08:04:09 AM
no... this is just an simple download addon i am working on an next version but i have to do so much right now before i will implent some other stuff...  ;D
Title: Re: Download RC2 / RC3
Post by: BlaZeR on February 05, 2007, 02:12:59 AM
Ok,how do i add this to other themes instead of the default?
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on February 05, 2007, 08:26:38 AM
take a look into the package zip file on your pc *.xml files and there you will see how it's done in the default theme ... so you can manage that also in other theme's.

if you don't know how tell me wich theme so i will take a look at that theme for little modification
Title: Re: Download RC2 / RC3
Post by: karabey on February 10, 2007, 09:38:15 AM
I get the Error

Hacking Attempt...

if i try to Download any File..

What is the Problem?
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on February 13, 2007, 06:36:03 AM
you are requesting a sourcefile directly that is not allowed
Title: Re: Download RC2 / RC3
Post by: Sic0 on February 19, 2007, 03:31:14 PM
Hi

i have this installed and working...except I do not have the relevant section show up in "permissions" to allow members to view.

Any ideas?
Title: Re: Download RC2 / RC3
Post by: Bigguy on February 19, 2007, 04:35:52 PM
Your edits might be missing from the modification.english.php file. I would check that.  
Title: Re: Download RC2 / RC3
Post by: Sic0 on February 19, 2007, 05:05:51 PM
Thanks BigGuy..just spent some time on your forum trying to suss this out also.
I looked earlier and traced it back to there but I have yet to try again....if you can help further than I would appreciate it.

I usually manage to stumble my way through these things but I'm at a full stop with this one.

I have The Amber theme and the Helios theme installed and have to make all the edits apply to them.

I never really got my head around seriously modifying themes.
Title: Re: Download RC2 / RC3
Post by: Bigguy on February 19, 2007, 05:57:46 PM
In your modifications.english.php Before the ?> at the end of the file add this:

'permissiongroup_downloads'] = "Downloads";
$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";


Also the Downloads.template.php should go in the theme folder of the theme you are using and the Downloads.english.php should go in the language directory of the theme you use. This should be all the changes you have to make other than adding a tab/button to the index.template.php file which would look something like this:

// How about the [download] button?
if ($context['allow_search'])
echo ($current_action == 'downloads' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'downloads' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=downloads">Download' , '</a>
</td>' , $current_action == 'downloads' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


depending on the theme you use. This code is for the default theme and might not work in your index.template.php file.
Title: Re: Download RC2 / RC3
Post by: Sic0 on February 19, 2007, 07:01:12 PM
Thanks again... I had managed to get it working properly and came over here to show my appreciation a little too late to catch your post.

cheers  
Title: Re: Download RC2 / RC3
Post by: Bigguy on February 19, 2007, 09:35:19 PM
Well, glad you got it. :)
Title: Re: Download RC2 / RC3
Post by: BlaZeR on March 22, 2007, 02:41:30 AM
How do I make it that it is automatically in alphabetical order?
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on March 22, 2007, 10:51:37 AM
i will look at that in the next release but i am a little bussy right now so i haven't got the time to implent it right now just wait and be a little patient
Title: Re: Download RC2 / RC3
Post by: GPGrieco on April 21, 2007, 01:44:00 PM
the error log kepps showing this error

mgtmadness   April 20, 2007, 06:42:44 PM 
24.24.69.254     13c49c60af72e5c43552456ad984610c 
http://www.awsomeforum.com/forum/smf/index.php?action=downloads 
8: Undefined index: d
File: /home/content/G/P/G/GPGrieco/html/forum/smf/Themes/default/languages/Downloads.english.php (eval?)
Line: 36
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on April 21, 2007, 04:03:26 PM
this has to do with the the language files are the updated?
Title: Re: Download RC2 / RC3
Post by: GPGrieco on April 21, 2007, 07:39:02 PM
My language files are version 1.1   
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on April 24, 2007, 05:49:24 PM
in order that i am changing the project and maybe recode some stuff i need some time to fix those first then i will look at this error !

and have to add some language packs for different languages other than english
so the install should be more smoothly and english users shouldn't get any errors on the dutch languages files coz they don't excists there !

so i praciate emails or pm's with strings for the new language packs...

but still have testing to do with that !!

Title: Re: Download RC2 / RC3
Post by: niravdave on May 21, 2007, 11:46:19 AM
gr8 mod! works with 1.1.2 as well

are u planning to upgrade this?

features like

--Number if views /hits
--Description of the file
--Details of the file (Lond Description)
--Rating
--Date Added

Dave
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on May 21, 2007, 12:01:26 PM
i am planning some sort of an upgrade and maybe a total rewrite with other functions
Title: Re: Download RC2 / RC3
Post by: niravdave on May 21, 2007, 12:05:04 PM
how long is it going to take?
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on May 21, 2007, 01:14:08 PM
i really don't know yet first have to make an beta before it will be released
and i need my spare time to re create an new mod
Title: Re: Download RC2 / RC3
Post by: niravdave on May 21, 2007, 01:22:20 PM
yeah..gr8! this would be an amazing mod for a community forums

dave
Title: Re: Download RC2 / RC3
Post by: karlbenson on June 03, 2007, 06:11:51 PM
This modification screws up several of your files due to errors in the install.xml

I recommend that you DON'T install this modification as it stands.
(I'd consider pulling it from the modsection until its safe to use)

Some of the things are put AFTER when they are meant to go BEFORE (because in the xml format, they are reversed) for example the modifications to the language files are meant to go BEFORE the ?>. In order to do that you need to use AFTER.

Position is misspelled as postion
The effect of this is that the modification is made, but it replaces what it was meant to add after, so you lose the ?> from the end of files.


The 'd' bug is one which can easily be fixed

(theres only two changes to your download.template.php
$dir = (isset($_GET['d']) && $_GET['d'] !='') ? 'd='.trim(urldecode($_GET['d'])).'&amp;' : '';

and replaced d='.$_GET['d] .'&amp; in the url for the files with '.$dir .'

So My downloads.template.php now looks like.



<?php

function template_main()
{
global $context$scripturl$txt$user_info;
theme_linktree();

$rurl 'Downloads/';
$surl 'Sources/Downloadimg.php?';

function 
e($s){$p=strrpos($s,'.');return substr($s,$p+1,strlen($s));}
function 
($a,$c,$o='asc',$t=SORT_STRING){if(!isset($a[0][$c]))return $a;for ($i=0;$i<count($a);$i++)$temp[$i]=&$a[$i][$c];$o=($o=='asc')?SORT_ASC:SORT_DESC;array_multisort($temp,$o,$t,$a);return $a;}

&
nbsp; &nbsp$sb=isset($_GET['s'])?$_GET['s']:0;
&
nbsp; &nbsp$so=isset($_GET['o'])?$_GET['o']:'asc';
&
nbsp; &nbsp$st=$sb==='s'||$sb==='m'?SORT_NUMERIC:SORT_STRING;
&
nbsp; &nbsp$d=isset($_GET['d'])?urldecode($_GET['d']):'';
&
nbsp; &nbsp$d=$d!==''&&$d!=='/'?trim($d,'/').'/':'';
&
nbsp; &nbsp$p=$rurl.$d;
&
nbsp; &nbsp$h=@opendir($p);
&
nbsp; &nbsp; if(strstr($d,'../'))exit('Denied');
&
nbsp; &nbsp; if(!$h)exit('<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4"><tr><td width="100%" class="titlebg">'.$txt['downloads_6'].'</td></tr></table></div>');
&
nbsp; &nbsp$F=array();$D=array();
&
nbsp; &nbsp; while(FALSE!==($f=readdir($h)))if($f[0]!=='.')if(is_dir($p.$f))$D[]=array('n'=>$f,'m'=>filemtime($p.$f),'s'=>filesize($p.$f),'t'=>'Directory');else$F[]=array('n'=>$f,'m'=>filemtime($p.$f),'t'=>e($f),'s'=>filesize($p.$f));
&
nbsp; &nbsp; if($sb){$F=s($F,$sb,$so,$st);$D=s($D,$sb,$so,$st);}
&
nbsp; &nbsp; print '<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4"><tr><td colspan="5" class="titlebg">';
&
nbsp; &nbsp; print $txt['downloads_8'];
&
nbsp; &nbsp; if($d!==''){$t=explode('/',trim($d,'/'));for($i=0,$r=array(),$z='';($r[]=@$t[$i]),$z=@$t[$i];$i++) { print(implode('/',$r)!==trim($d,'/'))? ('<a href="'.$scripturl.'?action=downloads&amp;d='.implode('%2F',$r).'">'.$z.'</a> / ' ):$z;}}
&
nbsp; &nbsp$f=trim($d,'/');
&
nbsp; &nbsp; print '</td></tr><tr><td class="catbg">&nbsp;</td>'
&nbsp; &nbsp; .'<td class="catbg"><a href="'.$scripturl.'?action=downloads&amp;s=n&amp;o='.($so=='asc'?'dsc':'asc').'&amp;d='.urlencode($f).'">'.$txt['downloads_2'].'</a></td>'
&nbsp; &nbsp; .'<td class="catbg"><a href="'.$scripturl.'?action=downloads&amp;s=s&amp;o='.($so=='asc'?'dsc':'asc').'&amp;d='.urlencode($f).'">'.$txt['downloads_3'].'</a></td>'
&nbsp; &nbsp; .'<td class="catbg"><a href="'.$scripturl.'?action=downloads&amp;s=t&amp;o='.($so=='asc'?'dsc':'asc').'&amp;d='.urlencode($f).'">'.$txt['downloads_4'].'</a></td>'
&nbsp; &nbsp; .'<td class="catbg" nowrap="nowrap"><a href="'.$scripturl.'?action=downloads&amp;s=m&amp;o='.($so=='asc'?'dsc':'asc').'&amp;d='.urlencode($f).'">'.$txt['downloads_5'].'</a></td></tr>';
&
nbsp; &nbsp; for($i=0,$c='';($c=@$D[$i++]);){print '<tr><td class="windowbg"><center><img src="'.$surl.'i=dir" alt="'.$c['n'].'"/></center></td><td class="windowbg2"><a href="'.$scripturl.'?action=downloads&amp;d='.urlencode($d.$c['n']).'">'.$c['n'].'</a></td><td class="windowbg">&nbsp;</td><td class="windowbg2">&nbsp;</td><td class="windowbg">'.date('m/d/Y h:i A',$c['m']).'</td></tr>';}
&
nbsp; &nbsp; for($i=0,$c='';($c=@$F[$i++]);){
$dir = (isset($_GET['d']) && $_GET['d'] !='') ? 'd='.trim(urldecode($_GET['d'])).'&amp;' '';
print '<tr><td class="windowbg"><center><img src="'.$surl.'i='.$c['t'].'" alt="'.$c['n'].'"/></center></td><td class="windowbg2"><a href="download.php?'.$dir.'name='.$c['n'].'">'.$c['n'].'</a></td><td class="windowbg">'.number_format($c['s']/1024,1).'KB</td><td class="windowbg2">'.$c['t'].'</td><td class="windowbg">'.date('m/d/Y h:i A',$c['m']).'</td></tr>';}
&
nbsp; &nbsp; print '<tr><td colspan="5" class="windowbg"></td></tr></table></div>';
}
?>



Because I wanted to use this on my forum, i've fixed as many of the errors as i could (this contains the english strings only)
Title: Re: Download RC2 / RC3
Post by: immortalis on June 04, 2007, 01:59:02 PM
I have a question about this mod.
Is there any way to set permission for this mode?
To specific user(group) who can download, and who can't
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on June 04, 2007, 02:35:23 PM
to give access to the downloads
go to permissions --> membergroup --> can view downloads turn on/off
Title: Re: Download RC2 / RC3
Post by: immortalis on June 06, 2007, 10:02:02 AM
Quote from: The Burglar! on June 04, 2007, 02:35:23 PM
to give access to the downloads
go to permissions --> membergroup --> can view downloads turn on/off


thx!

But now i have a question about permissions
Is there any way to edit that the users can view download zone, with 50 posts?
I hope you understand me ;)
Title: Re: Download RC2 / RC3
Post by: ES23 on August 07, 2007, 06:33:27 AM
I am using SMF 1.1.3

The execution of the dload package RC3 is alright and everything installs fine.The download section is ok as well,meaning I can see all the files I've uploaded onto my server.However,when I click on the file to try download,I saw a 500 Internal Server error page instead of the stuff being downloaded.

May I know where is wrong??
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on August 08, 2007, 06:47:37 AM
is the /Download folder writeable 777 and files within that folder 755 ?
Title: Re: Download RC2 / RC3
Post by: ES23 on August 08, 2007, 01:29:26 PM
Quote from: The Burglar! on August 08, 2007, 06:47:37 AM
is the /Download folder writeable 777 and files within that folder 755 ?

Yes.The 500 internal server Error still occurs.

Here's the errors info I got from

2: opendir(/var/www/html/forums/Packages/temp/Downloads) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory
File: /var/www/html/forums/Sources/Subs-Package.php
Line: 1253

2: unlink(Downloads.english.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /var/www/html/forums/Sources/Subs-Package.php
Line: 1047

May I know what is wrong??
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on August 08, 2007, 06:25:25 PM
create a /temp dir under the /packages dir and make it writeable 777 this is an issue with some php on some hosts or you could use the package parser for manual installation
Title: Re: Download RC2 / RC3
Post by: ES23 on August 10, 2007, 12:17:59 AM
Quote from: The Burglar! on August 08, 2007, 06:25:25 PM
create a /temp dir under the /packages dir and make it writeable 777 this is an issue with some php on some hosts or you could use the package parser for manual installation

Ther 500 internal server is still present.I've asked my host for help and they quoted me the error from my server error log.This is ther error received -

Premature end of script headers: php-script,
referer from: http://www.website.com/index.php?action=downloads

Previously when I install,the index.template file execution failed so I only install that file manually.Btw,should I refer/use the the dloadRC3 zip file you uploaded OR the modified file on this topic,reply #50?Coz previously I used yours,I also received the "d" error as well.

Title: Re: Download RC2 / RC3
Post by: ES23 on August 10, 2007, 02:01:42 AM
Can I ask what may be the possible problems if I still face 500 internal server errors persistently while trying to download the uploaded stuff but strangely,this time round,no errors are reported on my smf forum error log??It doesn't make sense to me. :-\
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on August 10, 2007, 02:59:29 AM
proberly your host is running php in safe_mode or use phpsu
Title: Re: Download RC2 / RC3
Post by: ES23 on August 10, 2007, 03:50:14 AM
So what request should I made to my host?Close off the safe mode or switch to an alternative mode?So sorry to ask so much qns coz I'm no expert on php stuff. :)
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on August 10, 2007, 07:49:17 AM
you could ask them to turn of safe_mode for you web account....
and take a look at the log files why the 500 Internal Server error comes from
it has nothing to do with smf or this mod... it's something on server configuration...
i can't produce 500 error so i don't know what happend there !!
Title: Re: Download RC2 / RC3
Post by: immortalis on August 22, 2007, 06:02:05 PM
Save yourself, and instal Tiny Portal...
If your 500 eror didn't fixed in a one day, don't know...
I have that problem, and it was fixet by himself :D
Title: Re: Download RC2 / RC3
Post by: samozin on August 23, 2007, 06:56:40 PM
it has alink problems with the
these mods

prettyurls-base_0_7.tar.gz

prettyurls-actions-ext-none_0_6.tar.gz

plz try to find out whats wrong
Title: Re: Download RC2 / RC3
Post by: zsw007 on September 29, 2007, 07:49:48 PM
i get this error when i try to download the uploaded file:

[test-forum.awardspace.com] [Sat Sep 29 23:28:53 2007] [error] [client 99.225.102.27] Premature end of script headers: download.php | file is writable by others download.php , referer: http://test-forum.awardspace.com/smf/index.php?action=downloads 
Error 500: Script Execution Failure
Description: The server encountered an internal error or misconfiguration and was unable to complete your request.

Most common reasons for returning this error message are:


• File Upload Mode
When you upload Perl, CGI scripts via FTP you should use always ASCII mode. If you get "Error 500: Script Execution Failure" you should check whether your FTP client uses ASCII mode when uploading your scripts, because if it uses BINARY mode to upload your scripts they won't work on the server. The problem caused by wrong upload mode is associated with the way different operating systems handle the "end of line" character. Unix system uses a "line-feed" (LF), Windows uses a "carriage-return" (CR) and "line-feed" (LF) pair. That's why it is very important that you set the uploading mode to ASCII.

• File Permissions
When you upload scripts via FTP the file permissions are set by default to 755. If you get "Error 500: Script Execution Failure" you should check whether your scripts have 755 permissions. Otherwise your scripts have lower level of permissions and does not support execution upon request. The octal representation of the 755 permission is equal to the following textual format: -rwxr-xr-x
Most FTP clients support the CHMOD command which is used for setting file permissions. In case you have set improper permissions to your scripts, use your FTP client and set "Read, Write, Execute" permissions for the owner, "Read, Execute" permissions for the group and everyone else.

• Script Errors
This is the third well known reason for getting "Error 500: Script Execution Failure" upon execution of your scripts. Check your scripts for any obvious syntax or programming errors to make sure your code is not broken.


Remember: When you get a "Error 500: Script Execution Failure", you should always check for any file uploading problems (ASCII/BINARY) and the executable permission settings. Once those are checked and verified, it looks like there is a syntax error or some other problem in the script. 



any idea what that means?
Title: Re:Re: Download RC2 / RC3
Post by: zsw007 on September 30, 2007, 11:59:14 AM
any ideas?

i really want to get it to work.
Title: Re: Download RC2 / RC3
Post by: zsw007 on September 30, 2007, 12:40:45 PM
everything else seem to work right, i manuly installed 2 of the file that failed to install, they seem to work now, the dutch file was not found cause i don't have a dutch file.

when i try to download a file, i would go to this site:
Quotehttp://sga-forum.awardspace.com/sfm/download.php?d=&name=Testitem.gif

then,i would get a Internal server error

this is driving me nuts, dose anyone hae a clue, the file is set to 755,777 dosn't work either.
Title: Re: Download RC2 / RC3
Post by: karlbenson on October 01, 2007, 10:11:26 PM
its probably cause by a .htaccess file
Title: Re: Download RC2 / RC3
Post by: Rafferty on October 01, 2007, 11:59:18 PM
Love the idea and integration but i have a problem also. "Download" mod. has installed correctly and seems to operate as it should up to the point of actually downloading a file. At that point I get a blank screen and the message "Hacking Attempt". Any ideas?

Ive contacted my host who says everything is ok that end and it should download. They suggested something in the forum security or similar stopping it?
Title: Re: Download RC2 / RC3
Post by: Rafferty on October 02, 2007, 12:07:21 AM
Quote from: The Burglar! on February 13, 2007, 06:36:03 AM
you are requesting a sourcefile directly that is not allowed

I just read this but i am trying to download a normal .exe and a .zip file which i uploaded first into the downloads directory ???

How is this fixed?
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on October 02, 2007, 05:04:34 AM
have updated the rc3 version with an new one called downloads try that one instead of this one...
Title: Re: Download RC2 / RC3
Post by: Rafferty on October 02, 2007, 06:26:02 AM
No difference i'm afraid Burglar, still getting "hacking attempt" when attempting to d/load anything

UPDATE: later on the "hacking attempt" message dissappeared and now I have the 500 error in its place ???????

UPDATE2" A day later the "hacking attempt" message is back
Title: Re: Download RC2 / RC3
Post by: zsw007 on October 10, 2007, 06:03:38 PM
Quote from: Rafferty on October 02, 2007, 06:26:02 AM
No difference i'm afraid Burglar, still getting "hacking attempt" when attempting to d/load anything

UPDATE: later on the "hacking attempt" message dissappeared and now I have the 500 error in its place ???????

UPDATE2" A day later the "hacking attempt" message is back


i think the hacking attempt and the 500 error is because the download is not "(!defined('SMF'))" maybe?
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on October 11, 2007, 09:23:55 AM
i'll will look at it when i have some spare time over this weekend....  ;D
Title: Re: Download RC2 / RC3
Post by: axscorpio on October 16, 2007, 07:58:19 AM
Hi.
I send you a polish and spanish translations of script "Download".
AX
Title: download script
Post by: zatara10 on November 12, 2007, 03:07:06 PM
thanks Burglar for your download script

i have problem in download home page

in first enter download page,directory and file name not arranged A-Z,

aranged random ;

Nokia ring tone
Box software
Multimedya
Free software




when click Name category arranged file name A to Z or Z to A

in first enter download page
i want see file A to Z arranged

please help ?

sorry of my bad english ;)


Title: Re: Download RC2 / RC3
Post by: 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?
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on November 19, 2007, 09:22:26 AM
@axscorpio
sorry for the late reply i did recieve them but haven't got time yet to build it in but i promise to do it soon.

@zatara10
hmm... it's just a simple download system but i will take a look at this

@BTC
originally it was written for only php4 maybe i can make changes for it so it will work on php5
Title: Re: Download RC2 / RC3
Post by: falguni1 on December 01, 2007, 04:07:39 AM
I still cant understand what does this mod do

let me say what I think and tell me is it correct ?

1)member attach files in forum
2)then these files are available for download by this mod automatically
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on December 01, 2007, 08:01:24 AM
it add a download page to your forum from wich users can download files from
Title: Re: Download RC2 / RC3
Post by: murdo on December 13, 2007, 01:55:42 PM
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....
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on December 13, 2007, 02:23:04 PM
coz you can't search within the download page for a specifc file at least in this mod
Title: Re: Download RC2 / RC3
Post by: okapi on February 23, 2008, 10:30:33 AM
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
Title: Re: Download RC2 / RC3
Post by: Herman's Mixen on February 23, 2008, 12:12:42 PM
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
Title: Re: Download RC2 / RC3
Post by: -=[Vyorel]=- on April 14, 2009, 01:14:55 PM
Very nice!!! In Language Romanian of?
Title: Re: Download RC2 / RC3
Post by: BTC on April 27, 2009, 06:04:49 PM
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 http://php.holtsmark.no/base64img/demo.php (http://php.holtsmark.no/base64img/demo.php) 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!