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 ... 131 132 133 134
HTML & templates / Re: to rejetto about templates
« on: October 10, 2007, 08:42:53 AM »
Shouldn't invert occur when you click on "sort by file" for example, like in windows explorer, if u click once the arrow faces down, click again, it faces up (the file listing inverted by sort setting)?

Yes T_S_G, it is exactly the popular purpose but it is necessary to be able to at first spend paramters checks in URL before developing a template using the good tools

In what to build a fortified castle  ;D , if after all we have no good keys to enter it >:(?...

HFS ~ HTTP File Server / Re: userparam's and %lang%
« on: October 10, 2007, 12:42:24 AM »
i have found a simply solution for you

use this part of code

<SCRIPT language=javascript>

you can see the result FR ,  IT  , EN  .... if your navigator is in french italian english .....

and use the result with apropriate section of your choice or redirect to a folder with a template in fr it en ...

so no need to stock the language of a user into database of users.
 :) ;) :D ;D

HFS ~ HTTP File Server / Re: Active directory for users
« on: October 09, 2007, 10:14:31 PM »

What you look for here is not a Web http server but a server ftp with a Web interface.

Two solutions are for you

1 The php with sql.
2 A server ftp managing the accesses system and in that I direct you to this link where you will find your happiness. for french explanation and
for the creator language supported Chinese |Deutsch |English |Français |Japanese ;)

HFS ~ HTTP File Server / Re: userparam's and %lang%
« on: October 09, 2007, 09:49:54 PM »
If you consider in the former post you will find some questions there concerning the possible addition de %lang%, and the answers of rejetto that the question cannot be resolved that in version 3.x to see 4.x of hfs and not before some years can be.

By waiting we shall have to content ourselves with some available solutions which allows us hfs.

Concerning my two examples:

The first one bases himself on a template of reception which redirects towards the language which the user wishes, kicks out to manage because it implies the use of as much of hfs.diff.tpl as necessary directories. Only some users are broken in the constraints that is the multiple use of templates.

The second is can be not for you the best of the solutions but it will bring to some an opening of spirit on the fact that hfs hide within it full of resources and that if we know how to play finely with them we can make extraordinary things.
I invite you to load the sources of hfs as I made him and study them to learn it much more on its functioning.

The use of hfs for a system multilanguage involves in your case a management of the users and thus the use of a more powerful data base what is not still of current events in the development of hfs (we cannot build a solid high rise if on the base the ground is unstable), to develop hfs it is necessary to correct some bugs or forgetting before dashing into big transformations.

Certain bugs as the interweaving of [sym-mysection] and of %user% should not work but it brings a little of simplicity because it is not possible to use any if-then-else  to select a particular section by its variable %sym-mysection% according to a specific user (%user%)  who here is used as reference criterion.

As if to defining %user% ="~" or another character by default explains by the simple fact that if the user is not identified %sym-%user%%  becomes %sym-% in the display. And that if we created a section [sym-] for which are taken into account and replace staying %sym-%, then it appears another bug which is that hfs look for at first to replace %sym-% by the corresponding section [sym-]: not finding she, he replaces %user% by his value and the text becomes for example %sym-myident% (%user%="myident") which corresponds then to the section [sym-myident], and the tour(ballot) is played.

In case you use %sym-%user%% and a section [sym-] in association with the others of the type [sym-myident], then the other sections shall never appear, I tried it does not work as we could hope for it, thus my demand of %user%= "~"" is completely justified and I do not have to defend  myself from it.

HFS ~ HTTP File Server / Re: Active directory for users
« on: October 09, 2007, 12:36:35 AM »
bacter do all filter you ask into javascript language, you can use cookie and testing it for every user, no more groupe will be necessary

HFS ~ HTTP File Server / Re: userparam's and %lang%
« on: October 09, 2007, 12:22:07 AM »
another way

include  this in the "main" section    [[ %sym-%user%%  ]]    somewhere

and include  sections for differents users like:

votre langue est le français

how do you do?

buongiorno amico Rejetto

don't add this section  [sym-] until rejetto modify code to affect by default %user%="~" and after use :

You are not logged

Connect you under the various identifiers and see the resultat.

to how use this astuce refer you to template "Thunderchicken_of_Glory_Blue+Login.tpl"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "h t t p://">
   <title>****YOUR TITLE****: %folder%</title>



 here you put your first web page into multilanguage like  this link



   include "main template for user 1

   include "main template for user n"

HFS ~ HTTP File Server / Re: userparam's and %lang%
« on: October 08, 2007, 10:31:50 PM »

If you want to create a site multilanguage this is very simply made without %lang% and the other subtleties

uses folders for different languages

English , Français , Deutch .......     or links to this hide folders  (with gif logos to differenciate)

into hfs root template put a special page with no login , only links or folders with explain to users how they can do.

and into every folder put your principal template hfs.diff.tpl tranlate in every language this will be recurssive for each subfolders into "folder-lang"

HTML & templates / Re: to rejetto about templates
« on: October 08, 2007, 10:20:55 PM »
For Rejetto:

Would it be possible to add options in url with  Offset=x & limit=y 

a filter of mask        & mask=*.*   ( example  &mask=*.mp3 )

a filter of direction   & rev     to invert listing of files

HFS ~ HTTP File Server / Re: when will possible see this:
« on: October 08, 2007, 07:33:23 PM »
In that case everything of let us let us advances our watches of 10 years follows. LOL ;D

HFS ~ HTTP File Server / Re: Find and Replace for the template editor.
« on: October 08, 2007, 01:44:19 PM »
Another solution would be to be able to use,

 or a template which would be in the same directory as hfs.exe,
 then this one would be saved and reloaded in every runnning hfs under the name of hfs.tpl or;

 or we could use a link in ROOT (as virtual folder) of hfs in the form of file masked with as hfs.diff.tpl name,
 in this way if the file exists then this one would be in charge be loaded with instead of the others for the page
" http: // mysite "

if ROOT is assigned as a real folder, put hfs.diff.tpl into the real folder is same as below...

HFS ~ HTTP File Server / Re: Find and Replace for the template editor.
« on: October 08, 2007, 01:20:19 AM »
1 possibility to use internal editor, and not the popup windows with internal diff template?

2 context menu on a folder --> advanced--|
                                                        |-- Local Diff Template
                                                        |-- External hfs.diff.tpl
                                                        |-- ...

3 and we can use internal or external editor using a choice of editor into menu/options .

HFS ~ HTTP File Server / Re: Find and Replace for the template editor.
« on: October 07, 2007, 11:25:19 PM »
Rejetto, simply the possibility of being able to call a program of external edition which is launched with the extension .tpl, this extension would be associated by the user by " click straight ahead on the tpl " and " to open with by default " 
I associated at home the tpl with notepad ++ ....

HTML & templates / Re: Requesting a template edit
« on: October 05, 2007, 09:26:14 PM »
into template you can find this section

<div class="MessageHeader">
   <br />
<div class="MessageText">
   You need to login first, before you are able to acces the requested page.
   <br /><br /><br />
   <img src="/~img14" height="15"/><a href="../" class="MessageText"> Back to previous page..</a>
   <br />

Modify at your convenience so that it shows what you want, without forgetting the link

<a href="javascript:history.go(-1);"> CLICK HERE TO RETURN</a>

HTML & templates / Re: to rejetto about templates
« on: October 05, 2007, 08:52:11 AM »
to use "?offset=10&limit=20"

in tpl, you find [folder] section as default template
<tr><td>%new% %protected% <a href="%item-url%"?offset=10&limit=20"><img src="/~img_folder" /> <b>%item-name%</b></a>%comment%<td align=center><i>folder</i><td align=right>%item-modified%<td align=right>%item-dl-count%

"offset" is the first file who will appear 0=first
"limit " is number of total files

"?offset=0&limit=5" define files 1 to  6
"?offset=6&limit=5" define files 6 to  11
and ....

into a scrîpt somes variable are initiate deb=0 increment=limit_defined
<tr><td>%new% %protected% <a href="%item-url%"?offset=deb&limit=increment"><img src="/~img_folder" /> <b>%item-name%</b></a>%comment%<td align=center><i>folder</i><td align=right>%item-modified%<td align=right>%item-dl-count%

with two button like
<a name=preview onclick=preview()>PRE</a>   
associate with
 function preview()  {deb=deb-increment; if (deb<0) {deb=0}; return}

<a name=preview onclick=nextview()>NEXT</a>   
associate with
 function nextview()  {deb=deb+increment; if (deb>%number%) {deb=deb-increment}; return}

i don't know how to export the value corresponding to %number% in javascript , must be tested..

Post your tests an results


If you use "ADD FOLDER FROM DISK" in hfs to create a link towards a removable disk such a CD-ROM and if the removable disk is empty then the link does not appear in the web page and it is necessary to update having put a cd for example.

Pages: 1 ... 131 132 133 134