rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mars

Pages: 1 ... 130 131 132 133 134 135
1966
Rejetto

after your post in this topic
http://www.rejetto.com/forum/index.php?topic=5016.msg1028073#msg1028073

Quote
but if anyone has such need, i could make [sections] optionally invisible, this way
[section|hidden]
but only if it is really useful.

is it as same to add possibility for a section to be diplay in template only like that


[sym-xxx|login] (user not logged)  and [sym-yyy|loggedin]  (user logged)
 
in main page if i use  %sym-xxx%%symm-yyy% at the same line like %login-link%%loggedin%

if i am not logged  %sym-xxx% and %login-link% appears and the two other are masked and conversely


1967
HTML & templates / offset page and limit , The beginning of a long story
« on: October 23, 2007, 09:06:00 PM »
By amusement I recovered of the javascript code and I recreated what follows:

insert all section [sym-url] at the end of your template and add %sym-url% anywhere into the [files] and [nofiles] sections (Rather in the beginning of section)

It is not the best possible code but that works.

 Activate checkboxes and modify the possible values (when logged its better)

( Noted: and page is not activated)
It is the beginning, later I attack the presentation




Quote

[SYM-URL]
<script language="javascript" type="text/javascript">
var code_value = new Array();

code_value["offset"] = "0";
code_value["page"] = "1";
code_value["limit"] = "-1";

function changeurl(code){
    var check=0;

    switch (code)
       {
        case 4 : code="offset"; check=1; break;
        case 5 : code="page"  ; check=1; break;
        case 6 : code="limit" ; check=1; break;
                   default : check=0; break;
       }

    var valeur = document.form.champ.value;

   if(code == "recursive" )
          {  if (valeur.search(code) != -1)
       { valeur = valeur.replace(code,'');
          document.form.champ.value = valeur;
                   }
   else
                   { document.form.champ.value= code+valeur}

            }


 else   if (valeur.search(code+'='+code_value[ code ]) != -1)  {              //le champ existe
             if (check == 1){                                                               //mise à jour des valeurs
                valeur = valeur.replace('&'+code+'='+code_value[ code ],'')
                document.form.champ.value = valeur+'&'+code+'='+document.form.elements[ code ].value;
     check=0;
                }
            else  {
                valeur = valeur.replace('&'+code+'='+document.form.elements[ code ].value,'');
                document.form.champ.value = valeur;
               check=0;
                }
             }
         else {
            if (check==0){
                      document.form.champ.value += '&'+code+'='+document.form.elements[ code ].value;
                      check=0;
                     }
           }
   code_value["offset"]=document.form.elements["offset"].value;
   code_value["page"]=document.form.elements["page"].value;
   code_value["limit"]=document.form.elements["limit"].value;
}   

</script>

    <form name="form">
      http://HTTP://%host%%folder%?
       <input type="text" name="champ" size="50"><br/>
       <input type="checkbox" name="cocher" value="1"  onclick="changeurl('offset');">offset
       <input type="checkbox" name="cocher" value="2"  onclick="changeurl('page');">page
       <input type="checkbox" name="cocher" value="3"  onclick="changeurl('limit');">limit
       <input type="checkbox" name="cocher" value="recursive"  onclick="changeurl('recursive');">recursive
<p>
       <input type="text" name="offset" size="4" value="0" onchange="changeurl(4);" onKeyup="changeurl(4);">

       <select name="page"  size="1" onchange="changeurl(5);" >
         <option value="1" selected>1
         <option value="2">2
         <option value="3">3
         <option value="4">4
         <option value="5">5
         <option value="6">6
         <option value="7">7
         <option value="8">8
         <option value="9">9
         <option value="10">10
       </select>


       <select name="limit"  size="1" onchange="changeurl(6);">
         <option value="-1" type="hidden" selected>0
         <option value="5">5
         <option value="10">10
         <option value="15">15
         <option value="20">20
         <option value="25">25
         <option value="30">30
         <option value="35">35
         <option value="40">40
         <option value="45">45
         <option value="50">50
       </select>
<INPUT TYPE="button" VALUE="Actualiser" onClick="window.location.href='http://127.0.0.1/?'+document.form.champ.value">
 </form>


ref to read  http://www.rejetto.com/forum/index.php?topic=5028.msg1028212#msg1028212

1968
HFS ~ HTTP File Server / Re: Search Engine Builder Professional
« on: October 23, 2007, 08:44:54 PM »
Dear rejetto thank you for all these positive reponses.

There is a board for the versions beta, one for templates, possibility of opening one board specialized for the propositions of modifications of hfs in the kind of the one that I proposed higher? So we would not be obliged to post almost everywhere in the forum and quickly to see again(to revise) what was already proposed.

1969
Beta / Re: Testing build #137
« on: October 22, 2007, 10:55:58 AM »
alla stats info are in hfs.ini

out-total=228300533
in-total=23827481
hits-total=18631
downloads-total=246
upload-total=0

you can modify this values but not order of lines

1971
HFS ~ HTTP File Server / Re: upnp
« on: October 20, 2007, 10:56:26 PM »

1972
router & port problems / Re: Problem with my new modem SpeedTouch 516 V6
« on: October 20, 2007, 10:10:53 PM »
Giant  it appear the sames links, just name and presentation of appli are differents

http://www.portforward.com/english/routers/port_forwarding/Thomson-Alcatel/SpeedTouch516i/eMule.htm
http://www.portforward.com/english/routers/port_forwarding/Thomson-Alcatel/SpeedTouch516v6/Http_File_Server-HFS.htm

no more information how create nat port into speedtouch 516

1973
router & port problems / Re: Problem with my new modem SpeedTouch 516 V6
« on: October 20, 2007, 07:19:00 PM »
see this link and adapte ports and adress as you want

don't forget to define an static ip for your computer not use dhcp from your router to give an ip in your local network

http://www.portforward.com/english/routers/port_forwarding/Thomson-Alcatel/SpeedTouch516i/eMule.htm

1974
HFS ~ HTTP File Server / Re: Guest Account
« on: October 20, 2007, 12:12:35 PM »
select the "all accounts" and after unselect (guest and @anonymous) accounts

don't forget to unselect  in others options-->> accept any login ... (line just under user accounts)

1976
HFS ~ HTTP File Server / Re: Search Engine Builder Professional
« on: October 19, 2007, 12:34:18 AM »
foggy make us a little template that we can see what you want to explain. thanks :o

I can make all the management of filter and pages in javascript but its will more easy for me with rejetto adaptations. ;D

1977
HFS ~ HTTP File Server / Re: having to re-login using .htm files
« on: October 18, 2007, 11:29:21 PM »
When you are logged, you have a free access to the resources for which you have rights.

 Concerning the folders to which it is asked to you to become identified again, your browser passes on to the server the new identification but the former is lost, of this fact the server considers you as a new user with new rights compared to the shared resources.

Your browser cannot send to the server that an identification at the same moment, and it is preserved)in hiding place as long as the Web session is active, if you close your browser, the login and the current password are definitively lost.

You can nevertheless activate the option " List protected items only for allowed users " in the menu " Virtual takes off system ", who shows only the resources for which you are identified.

1978
HFS ~ HTTP File Server / Re: Search Engine Builder Professional
« on: October 18, 2007, 11:02:24 PM »
In the server hfs, there is for every file (in advanced -->> files filter) a mask defined by hfs admin.

 Would be it not possible to associate simply with this filter, a filter of overload defined in the url by the user as why not:

 ?search=(...)   
 ?mask=(...)          associate with ?recursive
 ?filter=(...)
 
with include it in the filesfilter list, and apply it

 
Quote
main.pas

// filtered out
    if not fileMatch( ifThen(f.isFolder(), foldersfilter, filesfilter), f.name)
    then continue;
 


Shall see we it in the version 2.2a build138. ??

Rejetto, is it possible to add at same time the option ?page=uu   working like

?offset=nn                                list files from offset (nn) to end of list
?offset=nn&page=pp                   page is ignored, must working as  ?offset=nn
?offset=nn&limit=mm                   list files from offset (nn) to (offset+limit)
?page=pp&limit=mm                    list files from (after calculate) offset=page*limit to (offset+limit)
?offset=nn&page=pp&limit=mm     offset is ignored and recalculate as above in according with ?page=pp&limit=mm


and why not   ?recursive&nofiles    and    ?recursive&nofolder   to having only folders or files in the list

An idea would be to add the following variables

%recursive%    values TRUE or FALSE
%offset% %page% %limit% values are this passed in the last url line

?offset=0 define the first indice file
?page=0 must define the first page
?limit=0  define no files , will be redefine as 'no limits'

With this, We can use the values tramsmises by variables %var% into template, more easy to use in javascript. thanks

1979
Everything else / Re: Prague
« on: October 16, 2007, 07:28:41 PM »
 ;) Then we wish you a happy birthday ;D in advance and to take advantage completely of this jaunt without thinking  ::) of the other thing than the pleasure of this brief break. :D

1980
HFS ~ HTTP File Server / Re: unable to download betas
« on: October 16, 2007, 07:24:24 PM »
By waiting why not to create a topic beta *xxx with the attached file it download, you are not held on the verge of 600 Kb?

Pages: 1 ... 130 131 132 133 134 135