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
  • Pages:
  • 1
[ C ] Replace Delete button to Trash button in posts; can be closed
Topic Started: Aug 16 2015, 01:10 AM (414 Views)
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
ZB
URL in profile
We've recently had a moderator delete a couple of posts by accident, and they couldn't be recovered. Would it be possible that instead of the delete button actually deleting posts, it'll send them to the trash? Can the same be done with topics?
Edited by Tyler Dream, Aug 16 2015, 01:10 AM.
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
There is codes to completely remove the delete option,
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Eh, don't really like that option :P
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
Try this
http://support.zathyus.com/topic/5088378/1/
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Already have this code installed, I meant in the mod tools :P
Offline Profile Goto Top
 
-The-
Member Avatar
#the { display: none; }
[ *  *  *  *  * ]
Try this code: http://support.zathyus.com/single/?p=18059905&t=5088378
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
This code is for the mod tools right?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
That's the code I previously linked you to that removes all the delete topic/post options and changes the text of the 'trash' options to 'delete'.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
For some reason I didn't decide to use but I dont remember why. I'll get back to you
Oh, does it work for admins? because It it'll delete them for me but it works for moderators
Edited by Tyler Dream, Aug 16 2015, 11:54 AM.
Offline Profile Goto Top
 
Jason
Member Avatar
Member
[ *  *  *  *  * ]
I think that's because the code looks specifically to see if the user is not an admin, but should be an easy fix to apply to admins and mods as well.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Can that be done? Then i'd use It :D
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Just remove the if statement to make it apply to all users:
Code:
 
if ($.zb.stat.admin == 0) {
Code:
 
}
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
so this?

Code:
 
<script type="text/javascript">
$("select[name=modopts_menu] option[value=4]").remove();
$("select[name=modopts_menu] option[value=13]").html("Delete Topic");
$("select[name=topicopts_menu] option[value=1]").remove();
$("select[name=topicopts_menu] option[value=2]").html("Delete Post(s)");
$("span.right a:contains('Delete Topic')").remove();
$("tr.c_postfoot .c_footicons span.left a").eq(2).remove();
}
</script>
?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
}
That as well.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Missed that one. Thank you Cory :)
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Closed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1