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 ... 121 122 [123] 124
1831
HFS ~ HTTP File Server / Re: Active directory for users
« on: October 09, 2007, 10:14:31 PM »
bacter:


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.

http://www.emutribu.org/index.php?topic=3344.0 for french explanation and http://www.g6ftpserver.com/en/home
for the creator language supported Chinese |Deutsch |English |Français |Japanese ;)

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



1833
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
 

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

[sym-Marcel]
votre langue est le français

[sym-Bob]
how do you do?

[sym-~Rejetto]
buongiorno amico Rejetto


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

[sym-~]
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://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <title>****YOUR TITLE****: %folder%</title>
.
.
.
</head>

<body>
%login-link%
%loggedin%
</body>
</html>


[login-link]
 

 here you put your first web page into multilanguage like  this link  http://strassburg.ath.cx:4136/

[loggedin]
%sym-%user%%

[style]
.
.
.

[sym-user1]
   include "main template for user 1
.
.
.

[sym-usern]
   include "main template for user n"






1835
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"



1836
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


1837
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

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




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

1840
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 ++ ....

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

[unauthorized]
<div class="MessageHeader">
   Unauthorized
</div>
   <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 />
    &nbsp;
</div>


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>

1842
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
[folder]
<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
 
[folder]
<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

thanks

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

1844
HTML & templates / Re: to rejetto about templates
« on: October 04, 2007, 06:28:08 PM »
Several things are not informed in the help assistant of hfs editor
 
An update of this in the next version beta version would  be indeed.

I read a post concerning %time% and %date% what is it of their use? wich section and information are they return?

1845
HTML & templates / to rejetto about templates
« on: October 04, 2007, 02:04:48 PM »
A little adpatation for the display of files in web page:

1 It is possible to sort out 'by name',  'by date' and 'by download' , but also nearly sort out the possibility 'by type (.ext )'; an oversight I hope?

2 is there a possibility to limit the number of filesshown on screen  to create a multi-systeme pages
1 ...  12 13 14 15 16  ....  45  as in forums?

A general option would allow to select the number max of files shown by page with variable %FILES-PAGES% with can be modified into template like %FILES-PAGES%=(UNLIMITED|x) (x= nb files/page) and create sections  as [up] with [PAGE-]and [PAGE+] a minimum of javascript being the necessary , good on

Pages: 1 ... 121 122 [123] 124