motaaa
10-21-2008, 07:54 PM
No matter what I do every single time anyone posts other than an administrator it says your post/thread has been submitted and will be created once it is approved by a moderator or something along those lines. I have a very large number of forums and a very large number of user groups that I would have to manually change permissions for. So even if someone did tell me how to fix it and it actually worked, it would take me about an hour or two manual work.
I was thinking there would be a really easy SQL query that someone could post for me to change all "required to be approved" permissions to NO. I don't know SQL but I made an example of how it would look below and I'm sure anyone with any SQL knowledge will know what I'm talking about and be able to fix the syntax.
Just in case you don't quite understand from my SQL example I also posted another "english" version of how the script would look. Then below that I wrote a description, so if you can't understand what I'm asking after reading all 3 of those then you probably can't code it anyway ;)
Variables Used:
RequiredModeration
The name I gave to the variable in SQL that determines if a post must be moderated/approved before it is posted. (1=YES & 0 = NO)
ForumPermissions
I think this actually may be right, it's the table in the SQL that contains the variable above. There may be more than one table that contains this variable but it would definitely be nice if it was just a 1 line SQL query to fix my problem.
SQL Query:
Do caps matter?
UPDATE FORUMPERMISSIONS SET REQUIREDMODERATION = 0 WHERE REQUIREDMODERATION = '1';
SQL Englishified:
//Set table & variable names
Table = 'ForumPermissions';
Var = 'RequiredModeration';
//Find & Compare "RequiredModeration = 1" in "ForumPermissions"
if ( FindCompare(Table) ( Var, 1) )
then
//If any RequiredModeration variables = 1 then change to 0
RequiredModeration = 0;
end
Description:
Open the table(s) that contains the variable(s) determining whether or not threads/posts need to be moderated/approved before they are submitted for others to see. Now search this table you just opened for the variable I described above, if the variable is 1 or YES (as in threads must be approved before they are submitted) then change it to 0 or NO.
End Note:
Alright that's it, easy as can be, right? This doesn't seem hard at all but I just don't know SQL syntax, what tables need to be updated, what the variable names are, or any of that stuff. Seems like a waste of time to learn all that for something as simple as this. I don't think anyone has ever put this much detail into a question for something so simple, so I hope SOMEONE is nice enough to answer ;)
I was thinking there would be a really easy SQL query that someone could post for me to change all "required to be approved" permissions to NO. I don't know SQL but I made an example of how it would look below and I'm sure anyone with any SQL knowledge will know what I'm talking about and be able to fix the syntax.
Just in case you don't quite understand from my SQL example I also posted another "english" version of how the script would look. Then below that I wrote a description, so if you can't understand what I'm asking after reading all 3 of those then you probably can't code it anyway ;)
Variables Used:
RequiredModeration
The name I gave to the variable in SQL that determines if a post must be moderated/approved before it is posted. (1=YES & 0 = NO)
ForumPermissions
I think this actually may be right, it's the table in the SQL that contains the variable above. There may be more than one table that contains this variable but it would definitely be nice if it was just a 1 line SQL query to fix my problem.
SQL Query:
Do caps matter?
UPDATE FORUMPERMISSIONS SET REQUIREDMODERATION = 0 WHERE REQUIREDMODERATION = '1';
SQL Englishified:
//Set table & variable names
Table = 'ForumPermissions';
Var = 'RequiredModeration';
//Find & Compare "RequiredModeration = 1" in "ForumPermissions"
if ( FindCompare(Table) ( Var, 1) )
then
//If any RequiredModeration variables = 1 then change to 0
RequiredModeration = 0;
end
Description:
Open the table(s) that contains the variable(s) determining whether or not threads/posts need to be moderated/approved before they are submitted for others to see. Now search this table you just opened for the variable I described above, if the variable is 1 or YES (as in threads must be approved before they are submitted) then change it to 0 or NO.
End Note:
Alright that's it, easy as can be, right? This doesn't seem hard at all but I just don't know SQL syntax, what tables need to be updated, what the variable names are, or any of that stuff. Seems like a waste of time to learn all that for something as simple as this. I don't think anyone has ever put this much detail into a question for something so simple, so I hope SOMEONE is nice enough to answer ;)