rejetto forum

Modules for Rawr-Template

Roessi · 7 · 4552

0 Members and 1 Guest are viewing this topic.

Offline Roessi

  • Tireless poster
  • ****
    • Posts: 107
    • View Profile
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
« Last Edit: February 19, 2010, 11:53:16 AM by Roessi »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
{.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"


Offline Roessi

  • Tireless poster
  • ****
    • Posts: 107
    • View Profile
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 ...
« Last Edit: February 01, 2010, 11:35:06 AM by Roessi »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
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  ;)
« Last Edit: February 01, 2010, 09:29:18 PM by SilentPliz »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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?


Offline Roessi

  • Tireless poster
  • ****
    • Posts: 107
    • View Profile
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


poke

  • Guest
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.