Recent Posts

Pages: 1 ... 8 9 [10]
91
Bug reports / Re: BUG - Renaming Directory or File Breaks Description / Comment
« Last post by Mars on May 18, 2018, 03:27:11 PM »
the comments have never been fully managed, there are three types of recordings, but the most used is the recording in a file named hfs.comments.txt for the real directories

it is easy to manage comments when renaming file by using this modified section in the template
Code: [Select]
[ajax.rename|no log]
{.check session.}
{.break|if={.not|{.can rename.}.}|result=forbidden.}
{.break|if={.is file protected|{.postvar|from.}.}|result=forbidden.}
{.break|if={.is file protected|{.postvar|to.}.}|result=forbidden.}
{.set|x|{.force ansi|%folder%{.postvar|from.}.}.}
{.set|y|{.force ansi|%folder%{.postvar|to.}.}.}
{.break|if={.not|{.exists|{.^x.}.}.}|result=not found.}
{.break|if={.exists|{.^y.}.}|result=exists.}
{.comment| "from here we manage the comment assignment using the dedicated macros" .}
{.set|comment| {.get item|{.^x.}|comment.} .}
{.comment| "it is necessary to remove the comment from the source file before attempting to rename it" .}
{.set item|{.^x.}|comment=.}
{.set|hasrenamed|{.length|{.rename|{.^x.}|{.^y.}.}.}
{.comment| "depending on whether the file has been renamed or not, the comment is attributed to the resulting name" .}
{.set item|{.if|{.^hasrenamed.}|{:{.^y.}:}|{:{.^x.}:}/if.}|comment={.^comment.}.}
{.set|comment|.}
{.break|if={.not|{.^hasrenamed.}.}|result=failed.}
{.add to log|User %user% renamed "{.^x.}" to "{.^y.}".}
{.pipe|ok.}
92
HFS ~ HTTP File Server / Re: New version: 2.3k
« Last post by Mars on May 18, 2018, 02:59:34 PM »
on first PC, switch hfs to expert mode

Menu > save options > to file


backup your hfs folder to second PC

the accounts are included in the hfs.ini file with all the other parameters

93
Bug reports / BUG - Renaming Directory or File Breaks Description / Comment
« Last post by mhoney on May 18, 2018, 11:28:34 AM »
Like the subject says, if you rename a file or directory that has an existing comment you break the link and that info disappears.  It's still in the text file but doesn't get updated.
94
HFS ~ HTTP File Server / Re: New version: 2.3k
« Last post by SRocha on May 18, 2018, 07:40:21 AM »
Hello!
I'm using this HFS version and i think it's amazing!

I'm working on a Project that needs do restrict access to specific resources. So i created a few diferente types of accounts.
I saved the file system file and moved my projet to another PC. I restarted HFS, loaded the file system file (vfs) but the user accounts are gone. Where HFS stores that information? Is it possible to recover that information?

Thank you.
95
RAWR-Designs / Re: Live 3 With Delete, Rename, New Folder, and Change User Pass
« Last post by danny on May 17, 2018, 11:07:17 AM »
@bmartino1
That's a beautiful template! 

Here's the unicode piece:
set charset to UTF-8 and also the font declaration in the body [style]: 
Code: [Select]
font-family:"Arial Unicode MS","Lucida Sans Unicode","DejaVu Sans",sans-serif;This activates the unicode fonts for windows, mac, linux and phones too.
96
The example has a variable of a larger size than possible.

So, did you try this:  {.set|chunk|4000.}

. . . maybe not optimized, but at least it is possible to have a variable that size.
I've tried and it has the same effect (it doesn't work properly). I'm curious to know why the first code works (limited by the RAM size) but not the second one... :-\
97
The example has a variable of a larger size than possible.

So, did you try this:  {.set|chunk|4000.}

. . . maybe not optimized, but at least it is possible to have a variable that size.
98
Thank you! I did a deep search on the forum, and I'm ashamed that I did this very same question only FOUR years ago, here... (I've totally forgot that thread. LOL!, I'm getting older). I've also found those rejetto's posts about this, from back 2009: here and here.

I've edited the message above with an updated code.
99
@ leo :) i did it :)
Sorry for being a little off the forum (I'm barely having free time lately). About what you want, I think the most easy solution is to "clone" (copy and paste) the code of the "Select" or "Sort" buttons (from the Live 3 template), and add the buttons you want, copying only the functions found on the default template. I'm not good editing templates, so, it's not an easy task for me (it could take me a lot of time, which I currently don't have). May be you or someone else here could do this.
Cool! :)
100
@ leo :) i did it :)

Sorry for being a little off the forum (I'm barely having free time lately). About what you want, I think the most easy solution is to "clone" (copy and paste) the code of the "Select" or "Sort" buttons (from the Live 3 template), and add the buttons you want, copying only the functions found on the default template. I'm not good editing templates, so, it's not an easy task for me (it could take me a lot of time, which I currently don't have). May be you or someone else here could do this.
Pages: 1 ... 8 9 [10]