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 - bmartino1

Pages: [1] 2 3 ... 50
I still need to clean this up:

But this is live template 3.0.0
(With live 3.0.1 code)

This template was created by another user and I rescently pull code and put it back together.

This will accomplish your request.
*Due to live 3.0.1 file ae changea and code change to generate, I don't know nor have access to get you the create new folder option.

It is on my to-do list for cleaning up files and simplify the template code.

@ leo :) i did it :)

Sorry for being a little off the forum (I'm barely having free time lately). About what you want, I think the most easy solution is to "clone" (copy and paste) the code of the "Select" or "Sort" buttons (from the Live 3 template), and add the buttons you want, copying only the functions found on the default template. I'm not good editing templates, so, it's not an easy task for me (it could take me a lot of time, which I currently don't have). May be you or someone else here could do this.

Love the simplicty, and ease / look
( if eel like i can finaly use standard html coding to hfs again :)

On another not,

I think the CSS and HTML code (JavaScript could active the login box, here is what w3 schools has about it.0

looking into this

I only know of a php soulion to the web form, w3 scholls claims thaetre is a jhavascript (ajax/arco/etc)
way to acomplis a login form

thanks fr your help/support and work danny

The encoding is an issue inside hfs, not the webpage.

Adding a web page character set will still alow a browser to see the character set code:

Code: [Select]
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">

I would add a vitural folder that is password protected
Then add a real folder

Then try your code above.

Will probably be a week when I'm at a PC to try and test things again.

An excellent question, one o don't have an answer to nor way to accomplish ATM.

Rejeto may be of better help here

OK, with some wor and fidleing, (mostly seaching the form for the files

I have put together a waorking version of live 3.0 and teh template here to bring live the rename etc funtions

you can donwload the files (everything) from my google drive:

please extract the zip files to root of c:


*how to

using the live 3.0 template (fond archive via post that had all files
(edited all tempaltes to add / change header info)

in advance mode change file to live 3.00

exctarct the new contens file (all in zip folders under tempalte folder under my full working config)
and dragg teh tpl live 3.-full to the home icon in hfs (the install template optiong will appear

*thats it... a folder with login credentail will activate the hfs program

sorry took so long, fianly got back to a workign pc to do this :P

HTML & templates / Re: build 299, still trying to log in, from a phone
« on: April 28, 2018, 02:25:48 PM »
if you require a true login page, you may need ftp acess, in with i would refer you to fhfs:

then you login page would be

other wise tablets would get a simalar login message:
see picture

HTML & templates / Re: build 299, still trying to log in, from a phone
« on: April 28, 2018, 02:19:14 PM »
android devices on smart phone will pull up authentication windows (via default html code) from the default hfs html code...

Except on a protected resource, when visiting any page, you auto user aynomous

so first on a folder for your phone users,
you will have to set an account for login access on hfs

you may need to enable an option that when loging in throws the users name and passwords into the url for browsing

see pictures:

TSG, would be faster / better or dj ...

sorry was looking at  the orginal live v3,  different realize this is an old post for a file no longer aviabale... for a modded template version of live...

we will have to add stuff to the orginal template and recode it

I'm just pulling the code form the default template, i have not edited nor added code, and will take me some time to code it up. I have very little time with current occupations :( ....

IN the end,
there will need to be an account setup with access and delete permision

and code copied form the default template to the live template to run the script for the desired actions....

live has diffent names and different script run then the default so we will have to read code and change the arcordingly....
those button will only work on 1 file not multple selected (so the4re will be bad code adn posible bug hangup even if teh template is codced corectly for one file use....

How to start:

first hfs default code and special string added to the special stings section to the live template
Code: [Select]
COMMENT this option causes your file list to be paged by default

COMMENT with these you can disable some features of the template. Please note this is not about user permissions, this is global!

next the button to click form the hfs default:
box actions

Code: [Select]
<fieldset id='actions'>
<legend><img src="/~img18"> {.!Actions.}</legend>
{.if|{.can mkdir.}|
<button id='newfolderBtn' onclick='ezprompt(this.innerHTML, {type:"text"}, function(s){
ajax("mkdir", {name:s});
    });'>{.!New folder.}</button>
{.if|{.can comment.}|
<button id='commentBtn' onclick=''>{.!Comment.}</button>
{.if|{.get|can delete.}|
<button id='deleteBtn' onclick='if (confirm("{.!confirm.}")) submit({action:"delete"}, "{.get|url.}")'>{.!Delete.}</button>

{.if|{.and|{.!option.move.}|{.can move.}.}| <button id='moveBtn' onclick='moveClicked()'>{.!Move.}</button> .}
{.if|{.can rename.}|
<button id='renameBtn' onclick='
            var a = selectedItems();
                if (a.size() != 1)
return alert("You must select a single item to rename");
ezprompt(this.innerHTML, {type:"text"}, function(s){
ajax("rename", {from:getItemName(a[0]), to:s});
{.if|{.get|can archive.}|
<button id='archiveBtn' onclick='if (confirm("{.!confirm.}")) submit({}, "{.get|url|mode=archive|recursive.}")'>{.!Archive.}</button>
<a href="{.get|url|tpl=list|sort=|{.if not|{.length|{.?search.}.}|{:folders-filter=\|recursive:}.}.}">{.!Get list.}</a>

and script codes that run form action:

Code: [Select]
[ajax.mkdir|no log]
{.check session.}
{.break|if={.not|{.can mkdir.}.}|result=not authorized.}
{.set|x|{.force ansi|%folder%{.^x.}.}.}
{.add to log|User %user% created folder "{.^x.}".}

[ajax.rename|no log]
{.check session.}
{.break|if={.not|{.can rename.}.}|result=forbidden.}
{.break|if={.is file protected|{.postvar|from.}.}|result=forbidden.}
{.break|if={.is file protected|{.postvar|to.}.}|result=forbidden.}
{.set|x|{.force ansi|%folder%{.postvar|from.}.}.}
{.set|y|{.force ansi|%folder%{.postvar|to.}.}.}
{.break|if={.not|{.exists|{.^x.}.}.}|result=not found.}
{.add to log|User %user% renamed "{.^x.}" to "{.^y.}".}

[ajax.move|no log]
{.check session.}
{.set|dst|{.force ansi|{.postvar|dst.}.}.}
{.break|if={.not|{.and|{.can move.}|{.get|can delete.}|{.get|can upload|path={.^dst.}.}/and.}.} |result={.!forbidden.}.}
{.set|log|{.!Moving items to.} {.^dst.}.}
{.for each|fn|{.replace|:|{.no pipe||.}|{.force ansi|{.postvar|files.}.}.}|{:
{.break|if={.is file protected|var=fn.}|result=forbidden.}
    {.set|x|{.force ansi|%folder%.}{.^fn.}.}
    {.if not |{.exists|{.^x.}.}|{.^x.}: {.!not found.}|{:
        {.if|{.exists|{.^y.}.}|{.^y.}: {.!already exists.}|{:
            {.if|{.length|{.move|{.^x.}|{.^y.}.}.} |{:
            :} | {:
                {.set|log|{.chr|13.}{.^fn.} (failed)|mode=append.}
                {.maybe utf8|{.^fn.}.}: {.!not moved.}
{.add to log|{.^log.}.}

[ajax.comment|no log]
{.check session.}
{.break|if={.not|{.can comment.}.} |result=forbidden.}
{.for each|fn|{.replace|:|{.no pipe||.}|{.postvar|files.}.}|{:
{.break|if={.is file protected|var=fn.}|result=forbidden.}
    {.set item|{.force ansi|%folder%{.^fn.}.}|comment={.encode html|{.force ansi|{.postvar|text.}.}.}.}

[ajax.changepwd|no log]
{.check session.}
{.break|if={.not|{.can change pwd.}.} |result=forbidden.}
{.if|{.length|{.set account||password={.force ansi|{.postvar|new.}.}.}/length.}|ok|failed.}

check session=if|{.{.cookie|HFS_SID_.} != {.postvar|token.}.}|{:{.cookie|HFS_SID_|value=|expires=-1.} {.break|result=bad session}:}
can mkdir=and|{.get|can upload.}|{.!option.newfolder.}
can comment=and|{.get|can upload.}|{.!option.comment.}
can rename=and|{.get|can delete.}|{.!option.rename.}
can change pwd=member of|can change password
can move=or|1
escape attr=replace|"|&quot;|$1
commentNL=if|{.pos|<br|$1.}|$1|{.replace|{.chr|10.}|<br />|$1.}
add bytes=switch|{.cut|-1||$1.}|,|0,1,2,3,4,5,6,7,8,9|$1 bytes|K,M,G,T|$1bytes

!!! Don't just add code form the default to the live tempalte ... You will have to recode certtain areas, this is teh defautl tempalte code and button when cliced action

you will have to find the live template code where the lock icon and delete icon and add a folder and etc function you want form the default.

as you can see hfs looks at
Code: [Select]
info in a  " [ " and  " ] " if live already has a name then in the " [ " and  " ] " then we can add code form the default and thoruw them in there respeted areas...

live breaks parts of it webpage and uses javascrip and ohter to form its web page

there is a blank section of " [ " and  " ] "
that just load the basic html side

then there brackets in live like this code:

Code: [Select]
<div class="item folder {.if not|{.or|{.get|can archive.}|{.get|can delete.}.}| off .}"
item-access="{.if|{.get|can access.}| You can access this item! | This item is protected. .}"
item-comment="{.replace|>| &gt; |<| &lt; |"|&#38;#38;#34;|%item-comment%.}">
<a href="%item-url%" title="Click to Enter">
<img src="/template/{.!theme.}/images/icons/folder.gif" alt=""/>
{.if|{.get|is new.}|<img class="new" src="/template/{.!theme.}/images/new.png" alt=""/>.}
<div><a href="%item-url%" title="Click to Enter">%item-name%</a><span>%item-added%</span></div>

this code efect folder and only folders
we will be adding data to this area and files and much more...


witch is why it is not a fast nor easy insert code here:....

your better off grabbing a better - diofferent template:

I will when I can, sry work has me travels the USA, construction. I'll gladly put screen shots and share

HFS ~ HTTP File Server / Re: Slutions possibles avec BOx Fibre SFR
« on: April 18, 2018, 08:46:51 PM »
I see, then you will need a viyual box running a VM off something that has wine x86 support. Wotjch will run hfs

Hi !
I download live 3.0.1 template, and this template have not this Delete, Rename, New Folder, and Change User Pass function.
How to add or enable "Delete, Rename, New Folder, and Change User Pass" with Live 3.0.1 template?


You have to enable folder file hfs

Right click folder give account access or all aynomois

HFS ~ HTTP File Server / Re: Slutions possibles avec BOx Fibre SFR
« on: April 13, 2018, 07:58:15 AM »
if the sfr fiber box is anything like the adtron fiber box i used to install and tested hfs on at Volo ISP internet work, then HFS on a win pc should work fine.

1gb up 1gb down Champaign il.

you may have to edit some hfs setting adn uncheck some defautl setting like the expermiental speed

ISP is blocking your port, you will have to do some portforawding and possible port triggering on open ports and chage ports in you server config. not familiar with the game...

Pages: [1] 2 3 ... 50