rejetto forum

Live 3 With Delete, Rename, New Folder, and Change User Pass

0 Members and 1 Guest are viewing this topic.

robert watton

  • Guest
Hi

yes that looks good , could you post the hfs template and ill try and do some work on it :)

thanks rob


Offline uvbeenzaned

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
I'm still working on it.  The server template only works with IE8 or above.  I've created a warning that will come up if you're using a version of IE that's less than version 8 (with options and links to upgrade), but I can't seem to do something similar for the other browsers.  It only works 100% in Opera 9.0 and above and Firefox 3.0 and above.  Safari only 4.0 or above.  All versions of Google Chrome ironically.  I want to be able to warn people if they're using a browser that's too old to work with the server template so they don't think the website's screwed up. 

Since the release of IE8, all the browsers must've made an agreement or something 'cuz if a website works in IE8, it'll work the same way in ALL other newest versions of browsers.  This is great.  We're almost out of the stone age. ;D
Have you had any progress so far?  I'd sure like to know!
Antec 900 Gaming Case, Nvidia XFX 780i 3 Way SLI Motherboard, 6 GB RAM, EVGA-Nvidia GeForce 9800 GTX + and Nvidia GeForce 8600 GT using 2 Way SLI, Pentium Dual Core Processor, Core Speed=2.6 MHz, 3 Monitors, 1150 GBs of hd storage, Win7=YEAH!


Offline Sapphirescales

  • Occasional poster
  • *
    • Posts: 73
    • View Profile
I should have everything finalized by Friday.  I'm working on a VERY complicated website at the moment and I just don't have the time for this.  On top of needing to finish this, like always I seem to link everything improperly.  So many resources are linked through my server so I can't release it like it is right now.  If I did, it'd kill my bandwidth with all you guys sucking off my connection. ;D  I just gotta stop linking the resources like this!  It takes me five hours just to make sure everything's re-linked properly!


Offline uvbeenzaned

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
Well I understand that!  I'm interested in web design too!  I've been learning all the code!  First time I looked at html css and javascript I was like  :o!  Well your is awesome work and take as much time as you need to make that template  ;).  I fix computer problems and build them to get my pay.  I also keep up with my mini itx server at home which always has software probs.  I just got Win 7 intstalled on my main machine mentioned in my signature!  I'm loving it!  You have win 7 it yet?
« Last Edit: December 04, 2009, 08:26:57 PM by uvbeenzaned »
Antec 900 Gaming Case, Nvidia XFX 780i 3 Way SLI Motherboard, 6 GB RAM, EVGA-Nvidia GeForce 9800 GTX + and Nvidia GeForce 8600 GT using 2 Way SLI, Pentium Dual Core Processor, Core Speed=2.6 MHz, 3 Monitors, 1150 GBs of hd storage, Win7=YEAH!


Offline n70_music

  • Occasional poster
  • *
    • Posts: 6
    • View Profile
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?
Thanks!


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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?

Thanks!


You have to enable folder file permission.in hfs

Right click folder give account access or all aynomois
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline n70_music

  • Occasional poster
  • *
    • Posts: 6
    • View Profile
thanks you answered!
Can you specify more? Include description image? :'(

I am an amateur ;D


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
I will when I can, sry work has me travels the USA, construction. I'll gladly put screen shots and share
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline n70_music

  • Occasional poster
  • *
    • Posts: 6
    • View Profile
I'll waiting....
« Last Edit: April 19, 2018, 09:05:53 AM by n70_music »



Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
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.
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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]
[+special:strings]
option.paged=1
COMMENT this option causes your file list to be paged by default

option.newfolder=1
option.move=1
option.comment=1
option.rename=1
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>
<center>
{.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='setComment.call(this)'>{.!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});
    });'>{.!Rename.}</button>
.}
{.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>
</center>
</fieldset>

and script codes that run form action:

Code: [Select]
[ajax.mkdir|no log]
{.check session.}
{.set|x|{.postvar|name.}.}
{.break|if={.pos|\|var=x.}{.pos|/|var=x.}|result=forbidden.}
{.break|if={.not|{.can mkdir.}.}|result=not authorized.}
{.set|x|{.force ansi|%folder%{.^x.}.}.}
{.break|if={.exists|{.^x.}.}|result=exists.}
{.break|if={.not|{.length|{.mkdir|{.^x.}.}.}.}|result=failed.}
{.add to log|User %user% created folder "{.^x.}".}
{.pipe|ok.}

[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.}
{.break|if={.exists|{.^y.}.}|result=exists.}
{.break|if={.not|{.length|{.rename|{.^x.}|{.^y.}.}.}.}|result=failed.}
{.add to log|User %user% renamed "{.^x.}" to "{.^y.}".}
{.pipe|ok.}

[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.}.}
    {.set|y|{.^dst.}/{.^fn.}.}
    {.if not |{.exists|{.^x.}.}|{.^x.}: {.!not found.}|{:
        {.if|{.exists|{.^y.}.}|{.^y.}: {.!already exists.}|{:
            {.if|{.length|{.move|{.^x.}|{.^y.}.}.} |{:
                {.set|log|{.chr|13.}{.^fn.}|mode=append.}
                {.move|{.^x.}.md5|{.^y.}.md5.}
                {.move|{.^x.}.comment|{.^y.}.comment.}
            :} | {:
                {.set|log|{.chr|13.}{.^fn.} (failed)|mode=append.}
                {.maybe utf8|{.^fn.}.}: {.!not moved.}
            :}/if.}
        :}/if.}
    :}.}
    ;
:}.}
{.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.}.}.}.}
:}.}
{.pipe|ok.}

[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.}

[special:alias]
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]
[folder]
<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-added="%item-added%"
item-dl-count="%item-dl-count%"
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=""/>.}
</a>
<div><a href="%item-url%" title="Click to Enter">%item-name%</a><span>%item-added%</span></div>
</div>

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

(ALOT OF TIRAL AND ERROR!)

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

your better off grabbing a better - diofferent template: https://rawr.thatstevensguy.com/
« Last Edit: April 28, 2018, 08:12:26 PM by bmartino1 »
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing



Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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:

https://drive.google.com/file/d/1gMts8CH8mroJ1ialWDc9ljVO_eU0qQsA/view?usp=sharing

please extract the zip files to root of c:

path
c:/webroot/hfs.exe

*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
« Last Edit: May 16, 2018, 02:39:33 AM by bmartino1 »
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
@ 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.
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing