We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31471
    • 206 Posts
    Add this parameter to the snippet-call with your own web-groups:
    [tt]&deleteGroups=`Registered Users,Site Admins`[/tt]
    "The downloadGroups parameter will make the download link active for users that belong to the specified groups. If a user is not logged in they will receive a JavaScript alert with the message contained in the noDownload language setting. Multiple groups can be specified by using a comma delimited list."

    Use the [+fd.delete+] placeholder in the file/row part of your template like in the default one:
    [tt]<td><a href="[+fd.link+]">[+filenumber+]. [+fd.filename+]</a> <span style="font-size:80%">([+fd.count+] downloads) [+fd.delete+]</span></td>[/tt]

    And use the delete-part in the template after the file/row part like in the default one:
    [tt]<a href="[+fd.deletelink+]">Delete</a>[/tt]

    And an enabled javascript in the browser for the confirmation-alert.
    Nothing more you need, I think...
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      vhollo, many thanks buddy! That worked... I missed out a parameter but that’s helped. grin
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 14214
        • 299 Posts
        My FileDownload snippet stopped working!

        It was working fine before but I updated MySQL last week and haven’t checked it since until today. It’s showing the folders in the directories but when I click on one it just reloads the page and shows the same thing. Below is my nippet call, appreciate any fixes you may have.

        [!FileDownload?  &tplList=`FileDownload` &browseDirectories=`1` &imgLocat=`images` &imgTypes=`fdImages` &getFolder=`documents/Folder 1`!]
        
          • 14214
          • 299 Posts
          Quote from: jisaac at May 20, 2009, 02:18 PM

          My FileDownload snippet stopped working!

          It was working fine before but I updated MySQL last week and haven’t checked it since until today. It’s showing the folders in the directories but when I click on one it just reloads the page and shows the same thing. Below is my nippet call, appreciate any fixes you may have.

          [!FileDownload?  &tplList=`FileDownload` &browseDirectories=`1` &imgLocat=`images` &imgTypes=`fdImages` &getFolder=`documents/Folder 1`!]
          



          One more quick note. I also just enabled SEO friendly urls. Could this affect it?
            • 14214
            • 299 Posts
            Anyone have somewhere for me to start? Really at a loss... huh
              • 31471
              • 206 Posts
              Does it work if you turn friendly urls off again?
              This snippet must work in both modes so you may have to clean the cache.
                • 14214
                • 299 Posts
                It does work with fURLs off...
                  • 14214
                  • 299 Posts
                  Just cleared cache and it had no effect.
                    • 2798
                    • 22 Posts
                    Hi kylej,

                    Nice Download-Tool for modx, really great! But one single question by the way:
                    Is it possible to set the output of the downloadlist to charset UTF-8 for the download-filenames??? Letters with Accents e.g. at french language seem to be displayed wrong - or other foreign characters like german ä ü ö or ß for example are olso wrong?

                    Is there already a solution for me? huh

                    thx
                      • 15082
                      • 195 Posts
                      Hi barneyy,

                      have you gotten a solution for the accents/umlauts problem?

                      I’m still here with that problem and would apreciate any help...

                      Greetz
                      JUSI