How do I delete old posts by checking the delete box
![lions10](https://secure.gravatar.com/avatar/bf051a0bb01cc3fffd54003f422d9f61/?default=https%3A%2F%2Fvanillicon.com%2Ffa41a42e0eca4e3082d5bdf79c391e34_100.png&rating=g&size=100)
I can delete posts one at a time then confirm okay. That's to slow.
When I check the delete box on ea post then hit delete to delete a mass of them i get error msg that I am not authorized to do that.
I do the admins get authorized to do that?
Best Answers
-
whu606 MVP
Nothing wrong with not knowing, but I think you would have got more help by saying so, and asking for clarification.
In your install of Vanilla there are a collection of folders and files.
One of those folders is applications.
In there is a folder called vanilla.
In there is a folder called controllers.
In there is a file called class.moderationcontroller.php
Open that file with whatever editor you have.
Find the relevant entry (it may not be exactly line 291.)
If the line shows vanilla.comment change it to vanilla.comments
Save the file.
You're done.
An important by-the-by - you should upgrade to the latest stable version of Vanilla, which is 2.0.18.8, for security reasons.
8
Answers
@lions10
Welcome.
Which version of Vanilla are you using? If you aren't sure, go to Dashboard, and scroll down to the bottom right of the page.
If it is 2.0.18.x, are you using the Split/Merge plugin or Split/Merge FE?
This worked for the FE version, and may well work for the original:
Line 291of applications/vanilla/controllers/class.moderationcontroller.php says
$this->Permission('Vanilla.Comment.Delete', TRUE, 'Category', 'any');
There is no vanilla.comment it SHOULD say
$this->Permission('Vanilla.Comments.Delete', TRUE, 'Category', 'any');
Making that change should do the trick.
Way over my head
Well, you've rejected a working solution.
Good luck getting anyone to give you another solution that works and is 'in your depth'.
I appreciate your response a few weeks ago but don't know where to go with making the fix. I will look around some more. I am not familiar with the makings or workings of Vanilla. We are using 2.0.18.4
"Change this to that" is no rocket science...
@lions10
Nothing wrong with not knowing, but I think you would have got more help by saying so, and asking for clarification.
In your install of Vanilla there are a collection of folders and files.
One of those folders is applications.
In there is a folder called vanilla.
In there is a folder called controllers.
In there is a file called class.moderationcontroller.php
Open that file with whatever editor you have.
Find the relevant entry (it may not be exactly line 291.)
If the line shows vanilla.comment change it to vanilla.comments
Save the file.
You're done.
An important by-the-by - you should upgrade to the latest stable version of Vanilla, which is 2.0.18.8, for security reasons.
I follow your instructions but I'm new to an Admin role and i don't know if anyone is still using the forum that set it up. I don't see where to get to the collection of folders and files you mention. And apparently i need to sign up for more access because i get rejected when trying to reply to your email.
@lions10
You need access to the webserver that is hosting the forum to view and edit those files.
i get rejected when trying to reply to your email.
I don't know what that means, I am afraid.
Thanks for your help. I understand what to do but I don't have access to the web servers. However, I found the guy that does and he will make the update when he does some other stuff.
Thanks again.