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 ] Delete button to trash posts
Topic Started: Aug 10 2012, 02:57 PM (629 Views)
hissae2-ZNR
Member
[ * ]
Board Address: http://themarioforums.com
Board Software: Zetaboards
Description: (What you want your code to do)

I'd like the delete button to trash posts instead of delete them. I know there's already a code for this but it doesn't work for me because I don't use the built-in trash can, I created my own section for trash because it can do more. Is there any way I can have a code that moves posts to a different section when using the delete button?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$('select[name="modopts_menu"] option[value="4"]').val('12');
</script>
That will turn the delete option into the move option.

If you're referring to posts instead of topics, I could make the delete button put a tick mark in the post checkbox, which will allow a staff member to split the posts. The best option probably is to just remove the option to delete posts.
Offline Profile Goto Top
 
hissae2-ZNR
Member
[ * ]
Cory
Aug 10 2012, 03:09 PM
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$('select[name="modopts_menu"] option[value="4"]').val('12');
</script>
That will turn the delete option into the move option.

If you're referring to posts instead of topics, I could make the delete button put a tick mark in the post checkbox, which will allow a staff member to split the posts. The best option probably is to just remove the option to delete posts.
That worked, thank you Cory, what would the code be to make the trash topics option into move as well?

And to remove the option to delete posts wouldn't I have to take away the global mod and change it to forum mod? This would also stop moderators from appearing on the admin and mod list because we have the remove forum moderators from admin/mod list installed as well. So if you could do that that would be great. :)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
$('select[name="modopts_menu"] option[value="4"], select[name="modopts_menu"] option[value="13"]').val('12');
</script>
Use that instead to have it affect the trash option as well.

You can remove the delete button directly from the Admin CP:

Admin CP Posted Image Themes Posted Image Themes Posted Image Edit Theme Images Posted Image Edit Images (Post Buttons) Posted Image Delete Post

If you want to remove it with CSS you can do that too:

Admin CP Posted Image Themes Posted Image Board Template Posted Image Javascripts
Code:
 
<style type="text/css">
td.c_footicons a[onclick] {
display: none;
}
</style>
Offline Profile Goto Top
 
hissae2-ZNR
Member
[ * ]
Perfect, thank you! :D

One last thing - How would I make the trash posts and delete posts options in the For Selected Posts moderation menu split posts instead?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
$('select[name="topicopts_menu"] option[value="1"], select[name="topicopts_menu"] option[value="2"]').val('3');
</script>
Use that.
Offline Profile Goto Top
 
hissae2-ZNR
Member
[ * ]
Perfect. Thanks. :)
Offline Profile Goto Top
 
Ardy
Member Avatar
.
[ *  *  *  *  * ]
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