Author |
Topic  |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 01 June 2013 : 00:43:33
|
I have installed the "Admin Level" mod and the "Recipe" mod and I love both of them! 
However; I can not figure out how to allow my administrators privileges to approve recipes that have been submitted. I am the only one who can approve a recipe.
If someone could help me with that, or, even better. . .tell me if I can somehow eliminate the need for recipes to be approved I would greatly appreciate it!
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 01 June 2013 : 01:41:14
|
"Recipe.asp"
Two choices:
Line 724, change the 0 to a 1
So the surrounding code looks like this:
if mlev=4 then
strSql = strSql & ", " & "1"
else
strSql = strSql & ", " & "0"
end if
strSql = strSql & ", " & "0"
OR
Change lines 721-725 so the code looks like this:
strSql = strSql & ", " & "1"
strSql = strSql & ", " & "0"
|
Edited by - Carefree on 01 June 2013 01:44:23 |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 01 June 2013 : 02:36:17
|
Carefree, this isn't working for me. I log in on one of my administrator's accounts; I click on the "Recipe" link; I click on the "Admin Recipe" link and I receive the following error message.
You are not authorized!
Your Administrative rights are not high enough to view this page.
Here are lines 721 - 726
if mlev=4 then strSql = strSql & ", " & "1" else strSql = strSql & ", " & "1" end if strSql = strSql & ", " & "0"
I tried both of your suggestions but neither worked. Doesn't the above look correct?
Not sure if it's important for you to know, but my admins are at the Maintenance Administrator level.
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 01 June 2013 : 02:38:35
|
That message is caused by the admin levels mod. You need to add the "admin_recipe.asp" file to the page in your admin console. |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 01 June 2013 : 02:40:56
|
And place the admin level at 1?
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 01 June 2013 : 03:06:45
|
Following the same steps as above, in clicking on the "Recipe" link, the only thing that changed was to cause the admin to have to log in like we have to with the Admin Options, but then the same error was received, Carefree.
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 01 June 2013 : 08:21:00
|
Okay, I had the old version of the "inc_adminlevels.asp" file!
It's working fine now.
Thank you so much, Carefree!
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 01 June 2013 : 10:51:41
|
If you remove the review requirement, you should also remove the message that a recipe is pending approval. To do so, look for these lines (appx 742-746):
if mlev=4 then Response.write frLang(strLangRecipe00520) & " " & vbNewLine else Response.write frLang(strLangRecipe00530) & " " & vbNewLine end if
Change them to say:
Response.write frLang(strLangRecipe00520) & " " & vbNewLine |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 01 June 2013 : 11:46:32
|
Done.
This is just wonderful!
THANK YOU!!
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
|
Topic  |
|