rejetto forum
May 25, 2012, 09:53:12 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: add folder (but not to the %folder-resorce%  (Read 949 times)
0 Members and 2 Guests are viewing this topic.
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« on: September 03, 2009, 01:18:57 PM »

I would add a folder (with a macro) in a folder
when i would do this i must use {.mkdir|NAME.}
In the window of HFS i have the folder USER

When sombody reigstred in my site, then should be make a folder into the folder user. i tried it several times, but i don't know how to add a folder, when the directory isn't the same folder.

Please help me.
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #1 on: September 04, 2009, 07:32:50 AM »

perhaps i must explain it better...

Every user should have his own folder where he can upload files. but only when he pressed the button yes or a link...

i know how i add a folder, when you are in the same folder, but how can i add a folder in an other resurce
 I have an example:
Code:
[special:begin]
{.add folder|real|user.}
{.set item|/user|hide=1.}
{.set item|/user|no log=1.}
[]
<html>
<a href="javascript:void(0)" onklick="{.mkdir|/user/%user%/.}
</html>
is this possible or not?
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #2 on: September 04, 2009, 07:43:28 AM »

[special:begin]
{.add folder|real|xx:\fullpath\user|user|overwrite=0.}     <--this line is important as is , else folder is deleted every time -->
{.set item|/user|hide=1.}
{.set item|/user|no log=1.}



<a href="javascript:void(0)" onklick="{.mkdir|/user/%user%/.}     is right
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #3 on: September 04, 2009, 07:56:19 AM »

Quote
{.add folder|real|xx:\fullpath\user|user|overwrite=0.}     <--this line is important as is , else folder is deleted every time -->

This line i don't understand realy... (sry)
the fullpath is not the path on the pc or? this is the path of hfs...

Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #4 on: September 04, 2009, 09:27:23 AM »

no, you can't do
onclick="{.mkdir|/user/%user%/.}"


onclick is just for javascript.
if you need to do just that after the click, than you have to pass the command to the server, and the server should read the request, and make it.

a simple way is this

<a href='?pleaseMakeDir=1'>make it!</a>

{.if|{.?pleaseMakeDir.}|{:
   {.mkdir| etc etc etc .}
:}.}




since you are working so much on these things, my suggestion is, if you didn't already do it, to use option Menu > debug > enable macros.log
the file will be created near hfs.exe
and you can see how the commands are executed, to solve problems
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #5 on: September 04, 2009, 09:50:06 AM »

ok thanks...


i have change the onklick already...

my main question is:

here my example filesystem:

-HOME
  |-template
  |-user
    |-user1
    |-user2 <--This folder i will create-->
  |-my template.tpl

so when i am in the template.... can i make the user2 into the folder user?
and when yes: How?
ps: please only with the relation HOME (not the fullpath on your drive)
Logged
rejetto forum
« Reply #5 on: September 04, 2009, 09:50:06 AM »

Do you like this software? Consider even $2
 Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #6 on: September 04, 2009, 10:38:19 AM »

it doesn't work with current version.
it will with in the next one.
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #7 on: September 06, 2009, 11:14:09 AM »

Code:
{.if|%user%|{:

{.mkdir|%folder-resource%\%user%.}

{.add folder|real|%folder-resource%\%user%|/Accounts/%user%.}
{.set item|/Accounts/%user%|add access=%user%.}
{.set item|/Accounts/%user%|add access=admin.}
{.set item|/Accounts/%user%|add delete=%user%.}
{.set item|/Accounts/%user%|add delete=admin.}
{.set item|/Accounts/%user%|add upload=%user%.}
{.set item|/Accounts/%user%|add upload=admin.}:}.}

I use the newset build 246 but it dont works... (why)

last day it works perfectly but now i don know...

The folder is created correctly, but not added to the already existing virtual folder.
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #8 on: September 10, 2009, 12:47:22 PM »

why it don't works???
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #9 on: September 13, 2009, 07:36:30 AM »

enable macros.log as i said
then try to create the folder.
if it doesn't work, look at macros.log
if you don't understand the problem, the post macros.log here
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 17, 2012, 02:35:11 PM