rejetto forum

Testing build #262

rejetto · 19 · 13192

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
download @ www.dovedove.it/hfs/hfs262.exe

what's new
+ new template macro: js encode
+ new template feature: remembers paging user's choice
+ new template option: "paged", to disable paging for everyone
+ hints for accounts with long name
* "B" for "bytes" removed from %total-size%, %item-size% and some other symbols [link]
- mime types broken in build #260 [link]
- random AV [link]
- attempt to fix quitting AV [link]
- hashed files were not working correctly with the new template [link]


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile

Offline AniFran

  • Occasional poster
  • *
    • Posts: 10
    • View Profile
thanks for the quick fix, had not tested the updated template yet lol


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Rename option doesn't work.

msg:
Quote
Error: failed

---------------------------
It also seems to have an error in the template, line 34 ... it lacks a point.

HFS = { folder:'{.js encode|%folder%.}', number:%number%, paged:{.!paged.} };
« Last Edit: July 13, 2010, 07:01:20 AM by SilentPliz »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
shit ! :D

i updated the package to include the fixed template.
who already updated before 12:00am GMT, please re-download manually.


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
It's me again, sorry!  :D

You have only corrected this:

Quote
HFS = { folder:'{.js encode|%folder%.}', number:%number%, paged:{.!paged.} };


You have not corrected the rename function. :-\


I feel that you will soon repeat "shit" ... but seriously, perhaps this time.  :P
« Last Edit: July 13, 2010, 03:48:08 PM by Mars »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
@sp
the period is present here.
is your exe file 2.606.080 bytes ?


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Yes, but nothing new about the renaming function.  :-\


SOLVED HERE:

http://www.rejetto.com/forum/index.php/topic,8754.msg1050883.html#msg1050883
« Last Edit: July 17, 2010, 01:27:43 AM by SilentPliz »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
the tpl you attached is the same, ok.
i just tested the rename on a file inside a real folder, it worked perfectly.
if you cannot find any clue, i can access your hfs through an account you can give me via email.


Offline Roessi

  • Tireless poster
  • ****
    • Posts: 107
    • View Profile
for me renaming with the default tpl doesnt work at all  :/
and with my rawr mod  i can only rename files and folders with no whitespaces in its name :/
in the macrolog its
Code: [Select]
rename|E:\Tools\HFS\Uploads\ASP - Zauberbrüder|E:\Tools\HFS\Uploads\ASP - Zauberbrüd
so it should work ...
but the folder still has the same name


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Hi Roessi  :)

for me renaming with the default tpl doesnt work at all  :/

Thank you for confirming the problem, I'm not alone.  ;)

Yesterday rejetto was trying to help me to understand what was wrong.
We understood that the paths web-based does not work in my case (this causes an ajax error)

rejetto wrote:

Quote
ok, the executed macro is

{.length|{.rename|/SilentPliz/SilentPliz.plc|/SilentPliz/test.plc.}.}

since it's not working, we can try to understand more.
try changing the paths from web-based to absolute C:\
and run it in the Debug > run script

I tried wich following, and it worked perfectly:

{.rename|d:\SilentPliz\SilentPliz.plc|d:\SilentPliz\test.plc.}

We must wait until rejetto corrects or suggest an another solution.
Perhaps from %folder-resource% (?)


and with my rawr mod  i can only rename files and folders with no whitespaces in its name :/
in the macrolog its
Code: [Select]
rename|E:\Tools\HFS\Uploads\ASP - Zauberbrüder|E:\Tools\HFS\Uploads\ASP - Zauberbrüd

edit: I corrected an error...  I had pasted a different code :-\ :D

For your problem of names containing whitespaces, try to test from the "old" solution ... it works for me and I don't have that problem.
If this works, you can adapt to your way pending the new template of rejetto.


Code: [Select]
{.if|{.get|can delete.}|
{.if|{.get|can upload.}|
<form method='post' id='renameresources'>
{:
  <br />
<p><input type='text' name='oldname0' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
   <input type='text' name='newname0' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname1' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
   <input type='text' name='newname1' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname2' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
   <input type='text' name='newname2' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname3' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
   <input type='text' name='newname3' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname4' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
   <input type='text' name='newname4' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname5' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<input type='text' name='newname5' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='submit' name='renamefile' value='{.!Rename.}'>
  <br />
</form>
:}.}.}


{.$special:forms.}

[special:forms]

{.for|x|0|5|{:
{.if|{.and| {.get|can upload.} | {.postvar|renamefile.} | {.filename|{.postvar|newname{.^x.}.}.} .}|{:
{.rename|%folder-resource%\{.filename|{.postvar|oldname{.^x.}.}.}|%folder-resource%\{.filename|{.postvar|newname{.^x.}.}.}.}
:}.}
:}/for.}
  
« Last Edit: July 16, 2010, 04:54:55 PM by SilentPliz »


Offline Roessi

  • Tireless poster
  • ****
    • Posts: 107
    • View Profile
np :)
Thx for the answer SP :)
k .. somehow managed in my tpl to get the renaming of folders with whitespaces done correctly :)
but i found another problem :/
if you have an folder on your harddisk in , for example
E:\HFS\Uploads\Misc\Jones
and in the Vfs
its /Uploads/Jones

%folder-resource% will be E:\HFS\Uploads\Jones
so renaming is impossible :/ -.-
would be really nice if this could be changed :)

and btw i fixed the renaming problem in the default tpl

Code: [Select]
[ajax.rename]
{.if|{.can rename.}|{:
{.set|x|%folder-resource%\{.postvar|from.}.}
{.set|y|%folder-resource%\{.postvar|to.}.}
{.if|{.exists|{.^y.}.}|exists|{:
{.if|{.exists|%folder%{.postvar|from.}.}|{:
{.if|{.length|{.rename|{.^x.}|{.^y.}.}.}|ok|failed.}
:}|not found.}
:}.}

:}|forbidden.}

put it in like this and it works :) (for me)

« Last Edit: July 16, 2010, 07:20:59 PM by Roessi »


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile

if you have an folder on your harddisk in , for example
E:\HFS\Uploads\Misc\Jones
and in the Vfs
its /Uploads/Jones

%folder-resource% will be E:\HFS\Uploads\Jones
so renaming is impossible :/ -.-
would be really nice if this could be changed :)

I think it's normal you can only rename from the web page, the reals folders and files into a real folder.

By using hfs.events ... you can rename anything you want.


Quote
and btw i fixed the renaming problem in the default tpl

It works for me too... thank you very much to have solved this problem.  ;)



Edit:  Excuse me I am not sure to understand... "Misc" disappears with %folder-resource%.  :o
« Last Edit: July 17, 2010, 12:21:10 AM by SilentPliz »


Offline Roessi

  • Tireless poster
  • ****
    • Posts: 107
    • View Profile
what i mean is like the screenshot example
they are all real folders :)
if %folder-resource% would be E:\Tools\Hfs\Uploads\Personen\Lissy
instead of E:\Tools\Hfs\Uploads\Lissy
would be easier to get sth like this renamed :)


perfect thats good :)
thx for trying if it works for you too :)


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Sorry, I'm still not sure I understand. (shame on me)

I try: :D

%folder-resource% give always the absolute resource path on your harddrive.
/... is web-based, relative at your server home root.

If your VFS is properly constructed (planned) and faithful to the actual arrangement on the partition, you can rename carefree whatever you want ... as long as you work with real folders.

My proposal:

1 - From your hard drive, drag and drop In the VFS box the folder named Personen on the folder named Uploads (as real folder)

2 - From & in the VFS box, drag and drop the folder named Lissy (and perhaps somes other users ;)) on the folder named Personen

3 - Set the "rename" permission for the folder of your choice; e.g Personen
(caution: "rename" permission is inherited by the children folders)

« Last Edit: July 17, 2010, 03:40:50 AM by SilentPliz »