+++++++++++++++++++++++++++++++++++++++++++++++++
// +++++++ What to do? +++++++
// +++++++ Queries to Run (1) +++++++
// +++++++ File Modifications (7) +++++++
// +++++++ Templates To Add (1) +++++++
+++++++++++++++++++++++++++++++++++++++++++++++++
What does this do?
It restricts usergroups from deleting posts, pertaining mainly to Super Moderators and Moderators.
If you don't trust you moderators when it comes to deleting certain posts or trust their judgement then editing should be suffice enough.
Here you can disable those usergroups from deleting any posts.
Enjoy.
Edit: big thanks to Boofo for helping me sort some issues out and getting things back on track
g-force2k2
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
i made an error i will fix the changes and update tomarrow ;\ don't have a forum to test with at the moment so i'll re add later... sorry about that...
Originally posted by Boofo Tmakeyesnocode("Can delete own threads by deleting the first post","candeletethread",0);
yeah i know i make some techincal errors ;\ i ain't that great so sorry if a make a few mistakes... i ain't perfect i'll admit that just used to knowing where things are i forget a small thing like usergroup
After adding it after the first occurrance, I can still edit posts so that looks good. You haven't tested this yet? Shouldn't it be in the beta section until it is fully tested at least once?
I did test it boofo just didn't notice that there were two differen't if ($action=="deletepost") {
my friend allows me to test on his forum but hes not on right now ;\
i tested it but after you stated the issue about two different actions that got me... so i'll do another final test tomarrow... and i'll have to take into consideration the editing perms...
but i did test and it didn't allow for deletion but better sure to make sure there isn't anything added before reattaching something that is...
$perms=getpermissions();
if(!$perms[candeleteposts]) {
eval("standarderror(\"".gettemplate("error_cantdeleteposts")."\");");
exit;
}
// +++++++ Start Checking Delete Post Permissions [ End ] +++++++
I don't see what harm that could do and i've overlooked the coding and the first seems to be checking permissions and the second seems to carry out the actions... so adding to both is probably the best way to go until i can further look into it
It worked fine with just doing it after the first one. If they can't get the permisssion, they can't carry anything out. Go ahead and test it with both if you want and let me know how it goes. I am going to leave it as is for now. If it ain't broke, I don't want to break it.
yeah i know what you mean... but i guess better safe then sorry thanks for the help alot Boofo and thanks for testing the edit option for me... just so you know i reattached and added the template addon to the
PHP Code:
$templatesused
if you wanted to just add that in... but thanks for the help
No problem. Glad to help. Now I expect to see my name up in lights as the Ultimate Beta Tester (is there such a thing and if there is, isn't being proud of that a little strange?)