rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - luca69

Pages: 1 ... 3 4 5 6 7
61
have a look at

http://www.rejetto.com/forum/index.php?topic=6590


uhm I checked the latest version and I found:

Code: [Select]
{.if|{.^allow password.}  | <li><a href="/~error">Change Password</a></li> .}
This means that every time a user tries to change the password he/she gets an error!

I'll change the code and I'll make it compatible with 211 (new macro names!)

62
HFS ~ HTTP File Server / More on Comments
« on: February 04, 2009, 10:36:30 AM »
I found a nice template from one of our France friends that enables the user to add a comment to each uploaded file.
I think it's a nice (now with build 221 comments are better supported by HFS).
But the code is not working  :(
It looks like he changed also the code of HFS and not only the template  :o :o :o :o

But let's have a look at the code (you can find the complete template as Attachment):

Code: [Select]
Original:
[upload-file]
<input name='fileupload%idx%' size='70' type='file'>
{.if |{.and|%user%|{.!=|%user%|anonymous.}.}|

New:
[upload-file]
<input name='%file-upload%' size='70' type='file'>
{.if |{.and|%user%|{.!=|%user%|anonymous.}.}|
{:
  {.repeat|2|&nbsp;.}
  <input name="%comment-upload%" size=40 type=text>
:}/if.}<br / </a>

......
[upload-success]
Original:
<li><a href='%item-url%'>%item-name%</a>: <b>{.!OK.}</b> --- %item-size%  ({.!Speed.} %speed% KB/s)
{.if| %user% |{: {.append| %folder-resource%\hfs.comments.txt | Uploaded by %user%
/append.} :}/if.}

New:
[upload-success]
<li><a href='%item-url%'>%item-name%</a>: <b>{.!OK.}</b> --- %item-size%  ({.!Speed.} %speed% KB/s)
{.if| %user% |{: {.append| %folder-resource%\hfs.comments.txt |{.filename|%item-resource%.}={.convert|utf-8|ansi|%item-comment%.} Uploaded by %user%
/append.} :}/if.}

....


But the vars %item-comment% and %file-upload& do not exist ?!?!?

Anyhow is there a way to do the same with build 221 ?!?

63
Italiano / Re: Riservare download
« on: February 04, 2009, 10:23:00 AM »
si può anche quello, ma per il momento è meno comodo: bisogna selezionare tutti i file e impostare il permesso.
la scomodità vera sta nel fatto che se aggiungo un file nuovo devo rifare il permesso anche per lui.

Si ma facendo cosí devo aggiungere ogni file!
Invece se metto in condivisione una cartella fisica, basta aggingere un file alla cartella e automticamente viene condiviso :)

64
Italiano / Re: Riservare download
« on: February 04, 2009, 09:34:46 AM »
Certo: é una propietá della cartella che metti in HFS:
1. seleziona la cartella
2. premi il tasto destro del mouse e clicca su "Properties..."
3. Tra le "Permissions" c'é "Access" e puoi specificare chi puó accedere alla cartella

Se quello che vuoi invece é che tutti possono vedere la lista dei file, ma solo gli utenti registrati li possono scaricare, mi sa che non si puó :(

65
Beta / Re: Testing build #221
« on: February 04, 2009, 09:24:34 AM »
Installed and under evaluation.

- Account notes:
Very nice!I added to my template the following peace of code:

Code: [Select]
[special:begin]
{.set|notes|%user-notes%.}
{.set|username| {.from table|notes|name.} .}
  {.set|username|{.if|{.^username.}|{.^username.}|%user%.}.}

{.set|useremail|{.from table|notes|email.} .}
....

So in the template I can use {.^username.} instead of %user% to display the name set in the notes (if set)


66
HFS ~ HTTP File Server / Re: Comments: name of user that uploads the file
« on: February 04, 2009, 07:38:37 AM »
ok, it will also delete from hfs.comments.txt and descript.ion
it took an hour or two to make this -.-

 :o :o :o :o :o :o

67
No I did not!
Please find enclosed my template (my_hfs.tlp).
There is also the admin panel and an additional function to enable the user to change the password by himself/herself.

Please Help!

Note: I put on the top the values of createfolder and fldname for debugging; also the java script was a test to clean the vars, but it did not work :(

hfs.tlp is the clean one only with the create folder code

68
H E L P !!!

I found a bug: if you create a new folder, you enter into it and you click on the path on the top, than a new folder with the same name is create!!!

How to reproduce it:
1. Enter into a folder where you have upload rights (e.g. "temp") and creates a new folder (e.g. "test")
2. Click on the newly created folder
3. On the top there is the current path: /Home/temp/test: click on "test" a new folder called test is created!!
--> now you can go to /Home/test/test

Each time a new path where you have upload rights is selected, the "test" folder is created!!

The problem is that the "createfolder" is not reset, but I do not know how to do that.

69
HFS ~ HTTP File Server / Re: HFS primary display question
« on: February 03, 2009, 02:26:40 PM »
Maybe the "Comment file editor" can help you. Have a look at
http://www.rejetto.com/forum/index.php?topic=6513.0

70
HFS ~ HTTP File Server / Re: Comments: name of user that uploads the file
« on: February 03, 2009, 12:47:04 PM »
yes, it's a problem.
next build will delete F + F.md5 + F.comment


GREAT!!!Thanks a lot rejetto  ;D ;D

71
HFS ~ HTTP File Server / Re: Comments: name of user that uploads the file
« on: February 02, 2009, 07:33:16 AM »
We also have the same problem with files .md5, how to kill all the files which carry a defined name and its associated files?
I noticed that looking for a solution of my problem  :o

72
HFS ~ HTTP File Server / Re: Comments: name of user that uploads the file
« on: February 02, 2009, 07:32:35 AM »
how is the file deleted?
Using the delete files function of the HFS Web interface  ;D

If a someone deletes the files directly on the server, he/she should also delete the comment file  ;)

73
HFS ~ HTTP File Server / Re: Support more 4GB file by splitting files
« on: January 30, 2009, 02:09:04 PM »

Another comment about folder TAR ,i very a good idea but if i have 25GB (so big folders) on the folder, this would be nice to be disabled.


Select the folder, right mouse button and select the Properties .... click on "Flags" tab and deselect "Archivable"   ;D

74
HFS ~ HTTP File Server / Re: Functionnalily requirement
« on: January 29, 2009, 02:52:37 PM »
Let's call "Bazaar" the folder that shall receive files from outside (no mismatch between upload/download)
I suppose all the folders are protected with user and password. If not, they should be!

You have two options:
1) create the folder on the Root and open to everybody
--> they cannot use "up" as there is no "up" folder
--> they see all the other shared folder, but they cannot enter without user/password

2) Create the the Bazaar at any path in the VFS and open it to everybody
--> they can enter with a direct ling (e.g. http//your_server/any_folder/_Bazaar) without user and password
--> they can use up file, but the system ask for user and password; without knowing them, they are not allowed to access to HFS!


Note: it's a good idea to create a specific user/password only for uploads, or at least to put some limits ;)

75
HFS ~ HTTP File Server / Comments: name of user that uploads the file
« on: January 29, 2009, 08:55:11 AM »
The current template I'm using is generating a Multi-comment files hfs.comments.txt but this has some drawbacks:
- When a new file is uploaded, the hfs.comments.txt file is updated  ;D
- When a file is deleted, the hfs.comments.txt is not update  :(
  --> the hfs.comments.txt grows forever  :o
- Add again the same file, but without a user logged in
  --> the hfs.comments.txt contains already an entry for this file and the wrong information is shown  :'(

Possible solution: I changed the code in the [upload-success] section so that now a single-comment file is generated with the name of the user who uploaded the file.

Old code.
Code: [Select]
{.if| %user% |{: {.append| %folder-resource%\hfs.comments.txt |{.filename|%item-resource%.}=uploaded by %user% /append.} :}/if.}

New code:
Code: [Select]
{.if| %user% |{: {.append| %folder-resource%\{.filename|%item-resource%.}.comment |uploaded by %user% /append.} :}/if.}

This solves the first problem (hfs.comments.txt grows forever)

But now, to evaoid the second problem,  I should add a function that when a file is deleted, the "single-comment file" is deleted as well.

Any idea how I can do that?

Pages: 1 ... 3 4 5 6 7