rejetto forum

Forced Downloading

AYEHAN · 8 · 3728

0 Members and 1 Guest are viewing this topic.

Offline AYEHAN

  • Occasional poster
  • *
    • Posts: 92
    • View Profile
hi,

i have set a file on login to download but user cancel it, is there a way that i can force them to download, and if download dosent start for that user he can't login to site?

or say get an error msg of my choice

i set this way .. after login redirect to "http://10.101.6.6:22335/easyshare-v4.exe" but there are only 3 downloads, and i want everyone to download it no download no access .. and if posisble on a given number of tries account will be blocked :D


Offline MarkV

  • Tireless poster
  • ****
    • Posts: 764
    • View Profile
The business ethics want that you cannot force a user to accept a file of which he does not want.  ;)
Tell Microsoft.
http://worldipv6launch.org - The world is different now.


Offline AYEHAN

  • Occasional poster
  • *
    • Posts: 92
    • View Profile
i own that business so its my right to forced them to download what i want .. if they dont wanna do that just remove the account from my site :P


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
and what if they already have that file. they downloaded it last time.

then you should remember what account did download the file.
i think you can do it, it's just not easy.
you should use event [download completed] to set a flag in the user account "notes", using {.set table.}.
but at the moment there's no way to change account notes, i should add it.
« Last Edit: March 12, 2009, 06:55:49 PM by rejetto »


Offline AYEHAN

  • Occasional poster
  • *
    • Posts: 92
    • View Profile
thx rejetto but even if they downloaded it, its not harmful to downloa again coz downloading this 2 MB file is take less then 2 seconds only .. so they can download and delete it ... but if the download record is possible it will be a nice option .. but main thing

how to make them download and ifthey cancel they cant login to site


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
you could use a script like

[request]
if (folder is NOT the one where user are welcomed and the file is downloaded)
and (the user didn't download the file)
  disconnect


Offline AYEHAN

  • Occasional poster
  • *
    • Posts: 92
    • View Profile
i wish i could be a coder like you mars or other guys :/

if i will be a coder some day i will make the code from your hint .. but foir now you guyz are here to help me :D


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
if you want someone to make the script for you, you should provide the missing information.

how does the user get the file, before he can access the rest of your server?