rejetto forum

Software => HFS ~ HTTP File Server => FHFS => Topic started by: lucky509 on December 27, 2013, 05:38:04 AM

Title: How to hide delete account option
Post by: lucky509 on December 27, 2013, 05:38:04 AM
Any body plz help me how to remove the delete account option for user accounts.
Title: Re: How to hide delete account option
Post by: bmartino1 on December 31, 2013, 05:07:13 PM
That's more of a question for a programmer as it is "hard wired" in the gui(some templates macro coding can fix this...), the question is what are you trying to do that you need to disable account deletion?
Title: Re: How to hide delete account option
Post by: lucky509 on January 02, 2014, 10:11:05 AM
Disable access to account deletion for user accounts or hiding account deletion
Title: Re: How to hide delete account option
Post by: rejetto on January 05, 2014, 09:45:43 PM
see the picture attached.
you mean this button?

there's no easy way to do it.
Title: Re: How to hide delete account option
Post by: lucky509 on January 06, 2014, 04:55:20 AM
please find the snapshot.After logging into user logging page below getting this options.

No need to display this option in user accounts.only administrator account must have privileges to delete account.
Title: Re: How to hide delete account option
Post by: rejetto on January 06, 2014, 07:53:42 PM
that is a template you installed in hfs, OR it not even hfs, because i never saw that kind of page.

if it's a template you can try editing the template to remove that link.
Title: Re: How to hide delete account option
Post by: lucky509 on January 07, 2014, 08:29:40 AM
but i am ot installed any extra templates.Download regular file and useing it
Title: Re: How to hide delete account option
Post by: JGraceffo on January 08, 2014, 07:54:14 PM
Rejetto, that looks like the web interface for fhfs, i've been working with it all day so it caught my eye!

Lucky, it looks like you have installed a kind of a modified version of hfs called fhfs, there is a sub forum here for support for fhfs which is where this should have probably been posted. 

I was bored at work so I took a look and found where that 'delete my account' code is located in the html document.  Go to where the files for fhfs are installed, find "footer-new", open it with notepad and find the line that says "<a href="/~delete-confirm" class="footlink" style="margin:4px; ">Delete my Account</a>

Delete that line and save, and that should remove the delete my account option from the footer.  There will still be one of those seperating vertical lines, there so it won't look as pretty, but if you want, you can play around with the code to see how to remove it.

*Disclaimer* I don't work with rejetto or raybob, and have very limited experience with html, so make sure to make backups, and change the code at your own risk! Also, there very well may be some administrator option somewhere to do this easily without modifying html code...
Title: Re: How to hide delete account option
Post by: raybob on January 21, 2014, 02:58:50 PM
That doesn't remove the actual functionality itself, anyone who knows the function exists can just type the page directly in the URL.  Also I'm pretty sure there's an option in the administrator console to easily disable account deletion but I must ask: why would you want to do that?  I think that users who create their accounts should be able to delete them.
Title: Re: How to hide delete account option
Post by: JGraceffo on January 28, 2014, 10:15:25 PM
That doesn't remove the actual functionality itself, anyone who knows the function exists can just type the page directly in the URL.

True Enough, I suppose you could theoretically delete the delete-confirm.tpl file to make sure they couldn't access it after doing the changes I suggested?

Quote
Also I'm pretty sure there's an option in the administrator console to easily disable account deletion but I must ask: why would you want to do that?  I think that users who create their accounts should be able to delete them.

I thought I checked all the options in the admin console and didn't see the option. I saw the option to disable deleting of files, but not the account itself. 

I'm not sure about lucky, but I wanted to disable account deletion because I had set up accounts specifically for employees, and I didn't want those employees to be able to delete their accounts (say if they were let go, or even just by accident, the things people do accidentally never cease to amaze me).

Title: Re: How to hide delete account option
Post by: raybob on January 29, 2014, 12:11:36 AM
I think if you delete delete-confirm.tpl and ajax.accountdeletion.tpl, and take out the links in main page html.tpl and footer-new.tpl you should be fine  :)