rejetto forum
May 25, 2012, 06:03:08 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Add delete function to template  (Read 6833 times)
0 Members and 2 Guests are viewing this topic.
allclownsareevil
Occasional poster
*
Offline Offline

United Kingdom United Kingdom

Posts: 4


View Profile
« 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 Offline

Italy Italy

Posts: 11830


View Profile
« 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 Offline

United Kingdom United Kingdom

Posts: 4


View Profile
« 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!  Grin

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 Offline

Italy Italy

Posts: 11830


View Profile
« Reply #3 on: October 10, 2008, 10:14:05 AM »

it will improve your html knowledge Wink
Logged
allclownsareevil
Occasional poster
*
Offline Offline

United Kingdom United Kingdom

Posts: 4


View Profile
« Reply #4 on: October 10, 2008, 10:16:53 AM »

that it will  Cheesy
Logged
allclownsareevil
Occasional poster
*
Offline Offline

United Kingdom United Kingdom

Posts: 4


View Profile
« 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.  Undecided


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 Offline

Italy Italy

Posts: 11830


View Profile
« Reply #6 on: October 10, 2008, 07:36:36 PM »

trial-error is a very common practice with computers Wink

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 Wink
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #7 on: January 19, 2009, 08:12:18 AM »

Stephen post moved to
http://www.rejetto.com/forum/index.php?topic=6557.0
Logged
Fysack
Insane poster
*****
Offline Offline

Norway Norway

Posts: 378


present picture


View Profile WWW Email
« Reply #8 on: March 03, 2009, 05:32:07 PM »

man`o`man you gonna live to be 100 rejetto  Kiss
Logged

it`s no greater pleasure, than someone is happy that you exist
aceventurars
Occasional poster
*
Offline Offline

Singapore Singapore

Posts: 2


View Profile
« 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
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #10 on: May 07, 2009, 06:01:59 AM »

   
You have to use a recent beta version of hfs (The delete option is included):

Topic beta:
http://www.rejetto.com/forum/index.php?board=33.0
The last beta:
http://www.dovedove.it/hfs/hfs237.exe

Then you give the property "Delete" to the accounts allowed to... delete.  Smiley

Your choosing folder -> Right click -> Properties... -> Delete
« Last Edit: May 07, 2009, 09:19:46 AM by SilentPliz » Logged
aceventurars
Occasional poster
*
Offline Offline

Singapore Singapore

Posts: 2


View Profile
« 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
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« 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.


* 2009-05-07_140449.png (25.35 KB, 401x435 - viewed 378 times.)
« Last Edit: May 07, 2009, 07:18:11 AM by SilentPliz » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 19, 2012, 01:04:41 PM
anything