Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Uncheck Edit Post
Topic Started: Dec 11 2007, 04:29 AM (1,405 Views)
Eureka
Member
[ *  *  * ]
EDIT: I'M NO LONGER SUPPORTING THIS. SORRY.

This has been annoying me for a bit, so I decided to code up a snippet for it. For groups that have the option to whether or not to show the edit message, the default checkbox is always checked. :( I'm asking myself why it would be checked by default since you already gave them the option to NOT have it displayed. Seems unreasonable. By default, it should be unchecked.

Place this above the copyright
Quote:
 

<script>
// Uncheck Edited Checkbox by Eureka @ TCZ [thecodingzone.com]
var _mctrl = "admin";

$(function(){if(((_mctrl.match(/admin/i)&&$("#menu_acp"))||_mctrl.match(/mod/i)&&$("#menu_rcp"))&&location.href.match(/post/i)&&$("input[@type='checkbox']:last").parent().find("input").length==3&&$("input[@type='checkbox']:last").parent().prev().contains('Post Options'))$("input[@type='checkbox']:last").removeAttr("checked");});
</script>


I've made this mod a bit more friendly. Usually, I assume you only allow mods and or admins the ability to hide the edit line. So for the _mctrl, put admin to uncheck the box for admins ONLY, or put mod for it to work for both admins and mods.

If you guys want me to code up a snippet for certain groups, please let me know. Of course, I'll need more than one person in favor of such mod.

Enjoy
Edited by Eureka, Jan 1 2008, 06:46 PM.
Offline Profile Quote Post Goto Top
 
Christian
Member Avatar
Member
[ *  *  * ]
I allow other groups such as the members and the custom "elite" group. Can you make it so it works for these two groups as well?
Offline Profile Quote Post Goto Top
 
Dennis
Member Avatar
Member Extraordinaire

Nice code, though I prefer it how ZB does it over IF. I think it's best to show that you edited it, so I prefer having it there by default so I don't forget to check it. I can see how some would prefer it the other way, though.
Offline Profile Quote Post Goto Top
 
Christian
Member Avatar
Member
[ *  *  * ]
Oh, I'd also like to point out when you're making a topic, the "Show emoticons" box is unchecked, so this doesn't exactly only uncheck the edited post box, rather than the last checkable box in the post reply/new topic area. Anyway to fix this?
Edited by Christian, Dec 12 2007, 12:50 PM.
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
LordSesshomaru88
Dec 12 2007, 12:49 PM
Oh, I'd also like to point out when you're making a topic, the "Show emoticons" box is unchecked, so this doesn't exactly only uncheck the edited post box, rather than the last checkable box in the post reply/new topic area. Anyway to fix this?
Ugh, copied the old version of the code. Apparently when I pressed Ctrl + C the last time to copy it and paste it here, it didn't override my prior version. :S

Fixed. Thanks ;)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · User Created Codes · Next Topic »
Add Reply