rejetto forum
May 25, 2012, 12:35:46 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 3
  Print  
Author Topic: Testing build #225  (Read 7503 times)
0 Members and 1 Guest are viewing this topic.
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« on: February 21, 2009, 09:43:59 PM »

download @ www.dovedove.it/hfs/hfs225.exe

what's new
+ selective folder archive
+ new template section [special:alias] http://www.rejetto.com/forum/index.php?topic=6635.msg1040986#msg1040986
- problems installing templates http://www.rejetto.com/forum/index.php?topic=6678.msg1041056#msg1041056
Logged
FRENCH CAN CAN
Insane poster
*****
Offline Offline

Italy Italy

Posts: 641


View Profile
« Reply #1 on: February 21, 2009, 11:35:35 PM »

"Delete selected" and "archive" are in conflict, we must refresh the page to make them work separately.
Logged
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« Reply #2 on: February 22, 2009, 01:01:42 AM »

This conflict can be solved with macros and changing options:

1. On initial screen no checkboxes are shown.
2. The options delete and archive are changed to: 'Select files to delete ' and 'Select files to archive'.
3. When one of the two is selected ->?seldelete or -> ?selarchive, checkboxes are shown and the contrary option is not more shown, only the button 'archive' (or 'delete') and 'Cancel' . Executing the option or canceling will revert to 1. and 2.

Idea for a new option: with selected files 'create a list of selected files with their real path'! This would allow to create with the help of {.exec.} a batchfile to be used with 7zip (or some other program) to create a '%user%.zip.  In the template ther could be a line before files: ¨{if |filelength %user%.zip|{:<a href... Your file is ready for download....} and in the event.script  some code {on download completed delete %user%.zip}
« Last Edit: February 22, 2009, 01:30:40 AM by bacter » Logged

your computer has no brain - use your own !
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« Reply #3 on: February 22, 2009, 01:29:36 AM »

Another small problem with the 'archivable' checkbox:

Inside one folder that has no permissions to archive nor to delete, you have some folders like A1,A2,A3..A8.
Only one of them (A3) has archivable attribute set.
In this case, the page shows only in the row of A3 a checkbox, but the page does not show ani 'Archive' button.

--> If the main shown mainfolder (the container of A1..A8) is not archivable, no checkbox should be shown.
Logged

your computer has no brain - use your own !
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #4 on: February 22, 2009, 02:11:11 AM »

   
If the folder names contain spaces ... the selection is not archivable.
Logged
Mars
Operator
Insane poster
*****
Online Online

France France

Posts: 1481



View Profile WWW
« Reply #5 on: February 22, 2009, 03:18:25 AM »

Quote
Another small problem with the 'archivable' checkbox:

Inside one folder that has no permissions to archive nor to delete, you have some folders like A1,A2,A3..A8.
Only one of them (A3) has archivable attribute set.
In this case, the page shows only in the row of A3 a checkbox, but the page does not show ani 'Archive' button.

--> If the main shown mainfolder (the container of A1..A8) is not archivable, no checkbox should be shown.
 

It is not already any more a problem for me because the solution was already in 224 that I had put on-line, 
It is in fact about an error of macro in the template

you can change inside the default tpl what is in blue
Quote

[special:begin]
{.set|folder archive|{.get|can archive.}.}


[item start]
  <tr><td>
  {.if|{.^folder archive.}{.get|can delete.}{.get|can archive.}| <input type='checkbox' name='selection' value="%item-url%"> .}
  {.if|{.get|is new.}|<span class='flag'>&nbsp;NEW&nbsp;</span>.}

* 225 default.tpl (15.4 KB - downloaded 118 times.)
« Last Edit: February 22, 2009, 03:25:20 AM by mars » Logged
rejetto forum
« Reply #5 on: February 22, 2009, 03:18:25 AM »

Do you like this software? Consider even $2
 Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #6 on: February 22, 2009, 04:16:00 AM »

Nice! Now I can begin working on a prototype of my new template idea. Or I can just update the current templates... depends on my motivation.

Can it be fixed so we don't have to do that mars?

We are trying to get our new website online by next Saturday... we are struggling to find the time. Sure I have plenty of time as I am unemployed but I am also having trouble at home... which is reducing my motivation to work on such things. I will post in our board about whats going on and the status of things.
« Last Edit: February 22, 2009, 04:19:04 AM by That_Stevens_Guy » Logged

Mars
Operator
Insane poster
*****
Online Online

France France

Posts: 1481



View Profile WWW
« Reply #7 on: February 22, 2009, 04:27:41 AM »

It will be necessary to ask in rejetto if this type of modification of the code is sufficient(self-important)

else if p = 'can archive' then trueIf(assigned(md.f) and md.f.hasRecursive(FA_ARCHIVABLE) or (md.f = NIL) and md.archiveAvailable)

else if p = 'can archive' then trueIf(assigned(md.cd) and md.folder.hasRecursive(FA_ARCHIVABLE))     
     

In the meantime, my solution corrects this inconvenience, while leaving the available information ' can archive ' for an  item

In one of my version, I had introduced a differentiation to counter this problem
Quote
get|can ......     with the current folder
get item|can ....   with all the item


with something as
 
   if name = 'get' then
    .......
   if name = 'get item' and not(md.folder=md.f) then
    .......
But it would have not enough success with rejetto

« Last Edit: February 22, 2009, 04:40:06 AM by mars » Logged
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« Reply #8 on: February 22, 2009, 04:44:14 AM »

Quote
It is not already any more a problem for me because the solution was already in 224 that I had put on-line,
It is in fact about an error of macro in the template

I'm happy to know that this is not a problem for you either, neither is it for me. But when I report problems, I do it to help rejetto to improve the template with the information, because I think the main version of program and standard template needs to be improved. I don't think that users should relay on 'better' parallel versions.

One thing more: in your solution you put your 'folder archive' in the [special:begin] section. I think this should be reserved for things that affect the whole behaviour of the template, and would place the settinge of the 'folder archive' in the head of the former [files] section, that is now where it's treated the folder header, aside the breadcrumbs thing.
Logged

your computer has no brain - use your own !
Mars
Operator
Insane poster
*****
Online Online

France France

Posts: 1481



View Profile WWW
« Reply #9 on: February 22, 2009, 04:56:56 AM »

Quote
Quote
It is not already any more a problem for me because the solution was already in 224 that I had put on-line,
It is in fact about an error of macro in the template

I'm happy to know that this is not a problem for you either, neither is it for me. But when I report problems, I do it to help rejetto to improve the template with the information, because I think the main version of program and standard template needs to be improved. I don't think that users should relay on 'better' parallel versions.

One thing more: in your solution you put your 'folder archive' in the [special:begin] section. I think this should be reserved for things that affect the whole behaviour of the template, and would place the settinge of the 'folder archive' in the head of the former [files] section, that is now where it's treated the folder header, aside the breadcrumbs thing.



I am saddened to disappoint you so, but you understood well the sense of the use of the section [special:begin] , she is for this type of action there, the solution is possible within the template, you should have read  my post last one to TSG; the other solution is to re-modify sources, and I do not believe that rejetto will agree for that. Wink

Somebody bring to light a problem, I bring a solution of repair and in more I almost am thrown(cast) Grin Angry

Quote
I don't think that users should relay on 'better' parallel versions.
I at least, there is a thing which I can claim, it is that I do not make that to indicate bugs in the versions, I bring not bad work since I am on the forum, displease those there who do not love to me. Kiss
« Last Edit: February 22, 2009, 05:10:34 AM by mars » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #10 on: February 22, 2009, 07:37:33 AM »

"Delete selected" and "archive" are in conflict, we must refresh the page to make them work separately.

it seems to be a problem with the javascript.
can you test this template and see if it solves?

* hfs.tpl (15.53 KB - downloaded 103 times.)
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #11 on: February 22, 2009, 07:38:12 AM »

Idea for a new option: with selected files 'create a list of selected files with their real path'! This would allow to create with the help of {.exec.} a batchfile to be used with 7zip (or some other program) to create a '%user%.zip.  In the template ther could be a line before files: ¨{if |filelength %user%.zip|{:<a href... Your file is ready for download....} and in the event.script  some code {on download completed delete %user%.zip}

nice idea.
can't it already be done with this build?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #12 on: February 22, 2009, 07:38:48 AM »

If the folder names contain spaces ... the selection is not archivable.

i made several tests and found no way to reproduce this problem.
can you please be more specific?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #13 on: February 22, 2009, 07:42:05 AM »

It is in fact about an error of macro in the template
you can change inside the default tpl what is in blue

it is true that this would solve.
but we must decide what we want, because that folder is actually archivable, and we can give an archive out of it by adding the button.
decision tree
- no checkbox, you must enter the folder to get the archive
- checkbox, or a link, and you can get archive without entering.

I'm quite undecided. Second is more poweful but can be also more confusing for the user.
Logged
FRENCH CAN CAN
Insane poster
*****
Offline Offline

Italy Italy

Posts: 641


View Profile
« Reply #14 on: February 22, 2009, 07:46:16 AM »

"Delete selected" and "archive" are in conflict, we must refresh the page to make them work separately.

it seems to be a problem with the javascript.
can you test this template and see if it solves?

This template works fine, no problems.
Logged
Pages: [1] 2 3
  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, 03:53:22 AM
anything