rejetto forum

How to use a macro ??

Guest · 21 · 15960

0 Members and 1 Guest are viewing this topic.

HFS-lover

  • Guest
Thanks rejetto

you are completely right

we are using the second case here , cuz we know that personal features cant be added into HFS ( u said that ) , it must be done with scripts
well you can add it to interface if you dont mind


i added bin=0 in Live-3.0.0 template , but it just doesn't work 

i just attached the template i m using now , i edited NewLive3-FULL.tpl file


check it , make it work and please upload it again for me , or just tell me where to edit the code , i just want a working template to delete files permanently


thanks alot bro


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
Sorry for the late reply.
The template you attached has serious problems.
It has a doubled deletion system, that's very confusing.

By clicking the gray "delete" button, you are using the standard system, and no macro will be used.
By clicking the red X, you are using a user scripted system, that's actually bugged. Consider these lines

{.if|{.and| {.get|can delete.} | {.urlvar|deleteroot.} .}|{:
{.delete|%folder-resource%\{.urlvar|fldname.}|bin=0.}
:}/if.}

it's checking for delete permission (ok), and then for the variable "deleteroot", that doesn't exist, because it's "fldname" that was named just after.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
from next release you will be able to just add this event script

[+file deleting]
{.delete|%item-deleting%|bin=0.}


it will work with any template using the standard deletion method.


HFS-lover

  • Guest
Thanks rejetto , i really like that , i just use default template , simple and best

Waiting for next release :D

Thanks alot , i really appreciate your efforts

 


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
it may take a while until i publish a new version.
since you need this feature so badly, and it may take several days before i publish next release, here is a #246 including the feature
http://www.sendspace.com/file/3aw554
« Last Edit: September 24, 2009, 10:14:12 AM by rejetto »


HFS-lover

  • Guest
 ;D ;D ;D ;D it works fine  :o , now i can take control of my server easily :D to remove the junk from browser

Thanks alot