We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] No delete code
Topic Started: Dec 11 2011, 08:39 PM (907 Views)
SandyC (PM)
Member Avatar
Member
[ *  *  *  * ]
Board Address: http://s15.zetaboards.com/Sandys_Place/index/
Board Software: Zetaboards.
Description: What I'd like to be able to do is take away the delete option for my staff only and have it so if they have to delete a topic or thread, it'll go straight to the trash rather than be forever lost. I don't know if it's possible to disable the delete for the staff and not the root admin or not but I'd like it if the staff could only trash posts and threads and not send them off to oblivion.

If it can be done, I'd like it so I'm the only one that can delete posts and threads from the forum or empty the trash.

I don't know if this ones possible or not, but getting a bit tired of the accidental deletes with the trash and delete options being close together.
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
You can search the database like so

http://resources.zetaboards.com/pages/znrdb#zb|delete|1|0,0

by going here

http://resources.zetaboards.com/pages/znrdb
Offline Profile Goto Top
 
SandyC (PM)
Member Avatar
Member
[ *  *  *  * ]
Done that and couldn't find anything.
Offline Profile Goto Top
 
Brendan
Member Avatar


Did you try using the Force 'Delete' Button to Trash Posts code?

Posts in the topic suggest that the code doesn't work, but I just tried it on my test board and it works fine.
Offline Profile Goto Top
 
SandyC (PM)
Member Avatar
Member
[ *  *  *  * ]
No, I haven't tried that, my searches came up blank earlier. Will this allow anything to be deleted from the trash? I also wonder if a bit more could be added so that only a root admin can empty the trash?
Offline Profile Goto Top
 
Brendan
Member Avatar


I only tested it with posts, I don't see why it wouldn't work with topics.

You can setup your trash can so that only admins can view it and they would be the only ones to empty it if they choose to.
Offline Profile Goto Top
 
SandyC (PM)
Member Avatar
Member
[ *  *  *  * ]
I currently have the trash set up so mods and admin can see it. My problem is that with having the delete and trash so close together in the list of mod actions, I wanted to disable the delete function and have it so the staff can only trash posts and threads with the emptying of the trash only available to the root admin, or member 1.

Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Javascripts
Code:
 
<style type="text/css">
select[name="modopts_menu"] option[value="4"], select[name="topicopts_menu"] option[value="1"], #trash_footer button, #trashcan input {
display: none;
}
</style>
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
if ($('#top_info strong a:contains(Sandy)').length) {
$('#trash_footer button, #trashcan input').show();
}
</script>
That will hide the delete options from the drop menus and only have the delete option in the trash can available to you.
Offline Profile Goto Top
 
SandyC (PM)
Member Avatar
Member
[ *  *  *  * ]
Thanks Cory, much appreciated. :)
Offline Profile Goto Top
 
lightfire
Member Avatar
littlegraycloud
[ *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic