<![CDATA[ [ Snippet ] FileDownload - Gets a file listing from a directory. - MODX Community Forums]]> https://forums.modx.com/thread/?thread=38267 <![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=19#dis-post-215668 But I would like from it any small things: that it correctly output links to files and directories with cyrillic symbols, and also correctly output links  with symbols "" and "&" in names of files and directories !

I have tried to make the first so:
if(strlen($this->_config['curRelPath'])) {
						$filelocat = implode("/", array_map("rawurlencode", explode("/",  $this->_config['curRelPath']))) . '/' . rawurlencode($filename);
					} else {
						$filelocat = rawurlencode($filename);
					}

And it even works!
But I don’t know how to realize the second!  embarrassed
It would be desirable, if the author will consider it in the next version of filedownload!

P.S. Sorry for my english...
]]>
OSBoy Sep 12, 2007, 01:43 PM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=19#dis-post-215668
<![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215667
I’ve hit an impass that I cannot get over. Funny thing is I’ve been over it before and something has stopped working. I cannot get the counter to work either in the DB or in the file.

I’ve had it working and I must have changed something but for the life of me I cannot find it (too many long nights). I dont think I have changed anything in Modx. Although I may have changed something in Apache conf or .htaccess.

Is there anyway of tracking where the problem is. My files download nicely with or without FURLs they just dont count. Database creates ok also. I have noticed that there is a significant delay before finalising the download as 100%. Is there any help you can offer? smiley

Modx 0.9.6
Apache 2.0.54
PHP 4.4.4
W2K server

Forgot to mention that I can manually change the DB and it will bring the info through but just not update it sad

Removed all snippets and plugins and reinstalled and things are fine now!! smiley:):)]]>
BBloke Jul 20, 2007, 12:51 PM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215667
<![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215666
so guys is it possible to limit this list without editing source code ?

i can not find any info about it on forum

any help?
]]>
roszman Jul 02, 2007, 04:27 AM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215666
<![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215665 Quote from: upurii at Mar 28, 2007, 11:22 AM

Hi.
I would like to use the snippets for my site, with the plugin, but i have a problem with the TV. I didn’t understand how it works. I have create the TV FileDownloadFolder but after what i can do ? And how can i use the TV with the snippets ?

thx

if u download version 2.5 you should have about.html in archive, read it - everything is describe there

ecxept how to limit file list smiley]]>
roszman Jul 01, 2007, 12:32 PM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215665
<![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215664
noob question smiley

is it possible to limit displayed download links ?
i would like to use it for "last downloads" or something like this

thx in adv
rgds]]>
roszman Jul 01, 2007, 07:46 AM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215664
<![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215663 I would like to use the snippets for my site, with the plugin, but i have a problem with the TV. I didn’t understand how it works. I have create the TV FileDownloadFolder but after what i can do ? And how can i use the TV with the snippets ?

thx]]>
upurii Mar 28, 2007, 06:22 AM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215663
<![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215662 subzero88 Feb 02, 2007, 01:06 AM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215662 <![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215661 kjaebker Jan 30, 2007, 07:38 PM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215661 <![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215660 http://www.defusedmedia.com/templates1

I have aim and msn so if anyone wants to help just pm me and ill give you my screen name.]]>
subzero88 Jan 30, 2007, 06:43 PM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215660
<![CDATA[Re: [ Snippet ] FileDownload - Gets a file listing from a directory.]]> https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215659
Change lines 340-344 of filedownload.class.inc.php:
//					if ($this->_config['urlsetting'] == '?') {
//						$fileLink = $this->_config['curUrl'].'/'.$filelocat . $multiFolderLink;
//					} else {
						$fileLink = $this->_config['curUrl'].'&d='.$filelocat . $multiFolderLink;
//					}
]]>
kjaebker Jan 30, 2007, 07:16 AM https://forums.modx.com/thread/38267/snippet-filedownload---gets-a-file-listing-from-a-directory?page=18#dis-post-215659