allclownsareevil
Occasional poster
Offline
 United Kingdom
Posts: 4
|
 |
« on: October 10, 2008, 08:57:18 AM » |
|
Hello,
Firstly thanks for the program and templates.
I have a question that hopefully is easy enough to answer. I'm using a black template for hfs and until this morning was using ver 2.2 152build. However I notice there are many later beta builds released now.
My question is, how would I go about updating the program to the latest build and then adding the delete funtion to the template?
I've cheked out the tpl files and can see the delete function in there but I'd appreciate a little help, if anyone knows.
Thanks in advance.
clowns
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11830
|
 |
« Reply #1 on: October 10, 2008, 09:01:08 AM » |
|
edit the template add this before the file list <form method='post' id='filelist'>
this after <input type='hidden' name='action' value='delete'> <input style='margin-left:1em' type='submit' value='Delete selected' onclick='return confirm("Are you sure?")'> </form>
this to every file and folder {.if|{.get|can delete.}| <input type='checkbox' name='selection' value="%item-url%"> .}
|
|
|
|
|
Logged
|
|
|
|
allclownsareevil
Occasional poster
Offline
 United Kingdom
Posts: 4
|
 |
« Reply #2 on: October 10, 2008, 10:04:41 AM » |
|
Hey rejetto, Thanks for the reply and again for the hard work with HFS. I did what you suggested and had partial success. My result was I had the checkboxes, the delete button and the ability to delete the files. The only problem was that the checkboxes refused to display in the table alongside the filenames. Instead they displayed across the top of the table in a row. Not sure why. So close!  I don't want to hassle you any further, so I guess I'm going to try and edit the original template file with some new colours. Thanks again.
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11830
|
 |
« Reply #3 on: October 10, 2008, 10:14:05 AM » |
|
it will improve your html knowledge 
|
|
|
|
|
Logged
|
|
|
|
allclownsareevil
Occasional poster
Offline
 United Kingdom
Posts: 4
|
 |
« Reply #4 on: October 10, 2008, 10:16:53 AM » |
|
that it will 
|
|
|
|
|
Logged
|
|
|
|
allclownsareevil
Occasional poster
Offline
 United Kingdom
Posts: 4
|
 |
« Reply #5 on: October 10, 2008, 01:45:50 PM » |
|
Well it didn't help my html skills so much, I trawled through my template and finally got the bits working I needed ... some by trial and error though.  The problem was I'm was using an old template and trying to update lots of components. Just thrown a donation your way, should have done it sooner. Thanks for the help, keep up the good work.
|
|
|
|
« Last Edit: October 10, 2008, 01:50:08 PM by allclownsareevil »
|
Logged
|
|
|
|
|
rejetto forum
|
 |
« Reply #5 on: October 10, 2008, 01:45:50 PM » |
|
Do you like this software?
Consider even $2
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11830
|
 |
« Reply #6 on: October 10, 2008, 07:36:36 PM » |
|
trial-error is a very common practice with computers  Just thrown a donation your way, should have done it sooner. Thanks for the help, keep up the good work.
ah, it was you, thank you again 
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11830
|
 |
« Reply #7 on: January 19, 2009, 08:12:18 AM » |
|
|
|
|
|
|
Logged
|
|
|
|
|
Fysack
|
 |
« Reply #8 on: March 03, 2009, 05:32:07 PM » |
|
man`o`man you gonna live to be 100 rejetto 
|
|
|
|
|
Logged
|
it`s no greater pleasure, than someone is happy that you exist
|
|
|
aceventurars
Occasional poster
Offline
 Singapore
Posts: 2
|
 |
« Reply #9 on: May 07, 2009, 12:07:30 AM » |
|
Where should I add the codes to in the default template?? I wan to have a delete function using the default template but I do not know how to. Please help....Thanks
|
|
|
|
|
Logged
|
|
|
|
|
|
aceventurars
Occasional poster
Offline
 Singapore
Posts: 2
|
 |
« Reply #11 on: May 07, 2009, 06:44:12 AM » |
|
Thanks for your reply...How do i give the property "Delete" to the accounts allowed to... delete??I cannot find it.
|
|
|
|
|
Logged
|
|
|
|
|
SilentPliz
|
 |
« Reply #12 on: May 07, 2009, 07:08:19 AM » |
|
In the VFS box, right-click on a folder, choose properties...
There is a small display bug with the "tabs" in the latest beta, click on "flags" then on "Permissions" to refresh.
Everything is here ... I will let you discover the rest.
|
|
|
« Last Edit: May 07, 2009, 07:18:11 AM by SilentPliz »
|
Logged
|
|
|
|
|