rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: Roessi on February 01, 2010, 06:21:55 AM

Title: Modules for Rawr-Template
Post by: Roessi on February 01, 2010, 06:21:55 AM
Additionalfunctions module:
Version: 0.3
Modules Mod Version Needed: 0.3

Functions:

Change Username
Change Password
Create Folder
Delete Files/Folders

-------------
Coming Soon:

Rename Files/Folders
Registration Form
Archiv Download
-------------------

U need the Modules mod for the rawr template to use this.
u can get it here:
http://www.rejetto.com/forum/index.php/topic,7997.msg1048213.html#msg1048213

and if you dont have the rawr template you can get the complete template from here:
http://www.multiupload.com/S95YPN466I
Title: Re: Modules for Rawr-Template
Post by: Mars on February 01, 2010, 09:11:04 AM
{.if|{.postvar|action.}|{:
   {.switch|{.postvar|action.}|,|
        changepass|{:{.if|{.=|{.postvar|newpass.}|{.postvar|newpasscon.}.}|{:{.set account|%user%|password={.postvar|newpass.}.}:}/if.}:}
        |changename|{:{.set account|%user%|newname={.postvar|newname.}.}:}
        |createfolder|{: {.mkdir|%folder%/{.postvar|foldername.}.} :}
        |{.comment|DO NOTHING.}/switch.}
:}.}


was missing %user% into "set account"
Title: Re: Modules for Rawr-Template
Post by: Roessi on February 01, 2010, 11:28:08 AM
first of all thx :) umm
http://www.rejetto.com/wiki/index.php/HFS:_scripting_commands :
Quote
If the username is left empty, current username is used

the problem is that it still executes the commands inside the switch even when theres no postvar submitted ... and so everytime the page loads the password for the current user is set to nothing ... O.o
and i dont really understand why : - /

Edit :

every switch command is executed ...
Title: Re: Modules for Rawr-Template
Post by: Mars on February 01, 2010, 02:09:44 PM
It would be more intelligent to put those macro in a specialized section which will be called only when it is necessary but especially not placed in the main page.

Quote
[management]
<META HTTP-EQUIV="Refresh" CONTENT="0; URL={.postvar|remoteurl.}">
<!-- META HTTP-EQUIV="Pragma" CONTENT="no-cache" -->
{.if|{.postvar|action.}|{:
   {.switch|{.postvar|action.}|,|
        changepass|{:{.if|{.=|{.postvar|newpass.}|{.postvar|newpasscon.}.}|{:{.set account|%user%|password={.postvar|newpass.}.}:}/if.}:}
        |changename|{:{.set account|%user%|newname={.postvar|newname.}.}:}
        |createfolder|{: {.mkdir|%folder%/{.postvar|foldername.}.} :}
        |{.comment|DO NOTHING.}/switch.}
:}.}

Quote
[]
<form method=post action="/~management">
<input type="hidden" name="remoteurl" value="javascript:unescape(window.location.href);">
<INPUT READONLY NAME="name" value="%user%">
<input type="text" name="newpass">
<input type="submit" value="{.!Change.}">
</form>

not tested , certainly contain some errors  ;)
Title: Re: Modules for Rawr-Template
Post by: rejetto on February 01, 2010, 06:07:10 PM
the problem is that it still executes the commands inside the switch even when theres no postvar submitted ... and so everytime the page loads the password for the current user is set to nothing ... O.o and i dont really und erstand why : - / every switch command is executed ...

did you try "enable macros.log" to see what's going on?
Title: Re: Modules for Rawr-Template
Post by: Roessi on February 19, 2010, 11:54:47 AM
kk now it works :)
You can rename the modulefolder now and of have to type the oldpassword to change it.
due to a change in the rawr template module mod.


Update:
Added delete function

attached:
at first post
Title: Re: Modules for Rawr-Template
Post by: poke on March 29, 2010, 11:38:32 AM
What is needed now is:

-the multilanguage support (as rawr do)
-an easy way to install into rawr
-a place where to keep your work updated (not so good to post the files on a forum)

thanks in advance.
S.