rejetto forum
February 10, 2012, 01:54:32 PM *
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] 2
  Print  
Author Topic: Testing build #262  (Read 3011 times)
0 Members and 1 Guest are viewing this topic.
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11758


View Profile
« on: July 12, 2010, 06:53:35 PM »

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]
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #1 on: July 12, 2010, 07:08:28 PM »

 Wink thanks rejetto !
Logged
AniFran
Occasional poster
*
Offline Offline

United States United States

Posts: 9


View Profile
« Reply #2 on: July 12, 2010, 11:56:01 PM »

thanks for the quick fix, had not tested the updated template yet lol
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #3 on: July 13, 2010, 12:54:19 AM »

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, 02:01:20 AM by SilentPliz » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11758


View Profile
« Reply #4 on: July 13, 2010, 05:58:07 AM »

shit ! Cheesy

i updated the package to include the fixed template.
who already updated before 12:00am GMT, please re-download manually.
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #5 on: July 13, 2010, 10:41:43 AM »

It's me again, sorry!  Cheesy

You have only corrected this:

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


You have not corrected the rename function. Undecided


I feel that you will soon repeat "shit" ... but seriously, perhaps this time.  Tongue
« Last Edit: July 13, 2010, 10:48:08 AM by Mars » Logged
rejetto forum
« Reply #5 on: July 13, 2010, 10:41:43 AM »

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

Italy Italy

Posts: 11758


View Profile
« Reply #6 on: July 13, 2010, 11:10:07 AM »

@sp
the period is present here.
is your exe file 2.606.080 bytes ?
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #7 on: July 13, 2010, 11:13:11 AM »

Yes, but nothing new about the renaming function.  Undecided


SOLVED HERE:

http://www.rejetto.com/forum/index.php/topic,8754.msg1050883.html#msg1050883
« Last Edit: July 16, 2010, 08:27:43 PM by SilentPliz » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11758


View Profile
« Reply #8 on: July 13, 2010, 02:55:00 PM »

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.
Logged
Roessi
Experienced poster
***
Offline Offline

Posts: 95


314780875
View Profile Email
« Reply #9 on: July 16, 2010, 10:36:14 AM »

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:
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
Logged

SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #10 on: July 16, 2010, 11:35:07 AM »

Hi Roessi  Smiley

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

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

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:
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 Undecided Cheesy

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:
{.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, 11:54:55 AM by SilentPliz » Logged
Roessi
Experienced poster
***
Offline Offline

Posts: 95


314780875
View Profile Email
« Reply #11 on: July 16, 2010, 02:13:46 PM »

np Smiley
Thx for the answer SP Smiley
k .. somehow managed in my tpl to get the renaming of folders with whitespaces done correctly Smiley
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 Smiley

and btw i fixed the renaming problem in the default tpl

Code:
[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 Smiley (for me)

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

SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #12 on: July 16, 2010, 02:50:52 PM »


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 Smiley

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.  Wink



Edit:  Excuse me I am not sure to understand... "Misc" disappears with %folder-resource%.  Shocked
« Last Edit: July 16, 2010, 07:21:10 PM by SilentPliz » Logged
Roessi
Experienced poster
***
Offline Offline

Posts: 95


314780875
View Profile Email
« Reply #13 on: July 16, 2010, 03:04:19 PM »

what i mean is like the screenshot example
they are all real folders Smiley
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 Smiley


perfect thats good Smiley
thx for trying if it works for you too Smiley


* hc_029.jpg (38.79 KB, 353x231 - viewed 95 times.)
Logged

SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #14 on: July 16, 2010, 07:48:02 PM »

Sorry, I'm still not sure I understand. (shame on me)

I try: Cheesy

%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 Wink) 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 16, 2010, 10:40:50 PM by SilentPliz » Logged
Pages: [1] 2
  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 February 06, 2012, 09:17:00 PM
anything