rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: funjay on July 21, 2009, 05:24:06 AM
-
Hi all, i am new, how i can create a new folder with upload rights?
i found these codes via searching, where should i add these codes? thanks.
{.if|{.get|can upload.}|
Folder name: <input type='text' name='fldname' maxlength="25" size="25" >
<input type='submit' name='createfolder' value='Create Folder' >
/if.}
[special:begin]
{.if|{.and| {.get|can upload.} | {.postvar|createfolder.} .}|{:
{.mkdir|%folder-resource%\{.postvar|fldname.}.}
:}/if.}
-
The post right below yours has discussion about this:
http://www.rejetto.com/forum/index.php?topic=6570.0
-
Thanks for the hint. and the main problem is i do not know where to put these codes?
-
You have to edit the template and you need to be a little bit familiar with html coding.
The first part of the code
{.if|{.get|can upload.}|
Folder name: <input type='text' name='fldname' maxlength="25" size="25" >
<input type='submit' name='createfolder' value='Create Folder' >
/if.}
You have to put in the first form.
Look for the tag <form method='post' id='filelist'> and place the above code just before the closing tag </form>
Pleace the second peace of code at the end of the template file.
-
thanks for you help. and i will try it. thanks again......
-
it works, and i add the following code in the bottom
{.if|{.and| {.get|can upload.} | {.postvar|createfolder.} .}|{:
{.mkdir|%folder-resource%\{.postvar|fldname.}.}
<script language="JavaScript" type="text/javascript"> window.location="/"; </script>
:}/if.}
the previous codes didn't make the deletion function work.....
-
what does the code "<script language="JavaScript" type="text/javascript"> window.location="/"; </script>"
mean? it seems work without this code. thanks.
-
what does the code "<script language="JavaScript" type="text/javascript"> window.location="/"; </script>"
mean? it seems work without this code. thanks.
No idea: i do not have it in my template and it works fine ;)
-
what does the code "<script language="JavaScript" type="text/javascript"> window.location="/"; </script>"
mean?
it means "go to the home folder".