Hi, again. I've tryed to put this on another forum and I have a problem. When a moderator tryes to acces the mod cp, he gets this message: The requested URL /modcp/login.php was not found on this server. I've tryed to fix this by empty cache folder (I'm using eXtreme Styles MOD). This worked on the first board I installed it, but now it did not help. If I remove re-login from pagestart.php, then it works. So it seems to be an issue with the way my forum creates the URL. It's strange because on my computer, using XAMPP, it works just fine. But not on this online board. Do you have any idea what could be wrong?
Hi, awhile ago I posted about the mod panel just coming up as a white page, so I got it to work now! If anyone wants this topic for reference I included the link below, thanks for the great mod! I have a free phpbb2 hosting section on my site, and that was the first mod I installed on it!
Hy, Milkman! Both work perfectly, thanks a lot! I couldn't do it without your help, much apreciated. Also, I put Mega Mail and Admin Userlist using your "Add New Modules" tutorial and all is fine.
About my first request, I've just tryed your sugestion and it does not work, moderastors still can not edit other moderators profiles.
About my second request, now. Sorry, but I think you did not understand very well what I want. Probably because of my bad english. Please take a look at this pics:
When looking at the index page, on the viewonline section, at the bottom, moderators do not see hidden users. They see what simple users see. Only admin see hidden users, and they see them in italic mode (like <i>this</i>. But when looking in the view online section from the moderator panel, moderators see hidden users. What I want is to make the viewonline section from the mod panel, same as on index page. So that moderators will not see hidden users.
Thanks for your effort, but I do want moderators to edit hidden users profiles and to see them in the selection box, so I can't really use your code. But someone reading this, maybe will need it.
Your second request is (I think) easier than your first, so I'll start there. In line 13 of the code you have pasted above change the <= to a < and I think that should allow moderators to edit each other. Remember that there are two blocks of code that use $can_edit and you should edit both of them.
Your first request is not so easy... I'm assuming you're referring to a user's online visibility, in which case they will still be in the memberlist (unless you have modded that too). The first thing to do is remove people from the select list. Near the bottom of admin_users.php you'll find a SQL query. You need to make it look like this (note the new line at 4):
$sql = 'SELECT user_id, username
FROM ' . USERS_TABLE . '
WHERE user_id != ' . ANONYMOUS . '
AND user_allow_viewonline = 1
ORDER BY username';
Next you need to edit the bit of code you pasted above, for your second point. Make that line look like this (a new && clause at the end of the line) :
Finally, after the second $can_edit = you should add (to stop moderators even seeing hidden profiles):
if($this_userdata['user_allow_viewonline'] == 0){
redirect('modcp/admin_users.php');
}
Do test this thoroughly but I think it should cover what you need. It won't effect the "Find Username" popup box, that's a core part of phpbb that I don't want to tweak as it'll break things like Private Messages too.
Hy, Milkman! I got another support question for you. Moderators can't edit admins and other mods profiles. I want them to be able to change other mods, but not admins. So I need to change this part (in admin_users.php):
It's working now, but moderators see hidden users, wich I don't like. I would like it if only admin could see hidden users, like in the forum index. I've tryed to take some code from viewonline.php but couldn't manage get it to work, untill now. Can you please give me a hand?
Hi Daniel, that is still correct. If you have a look through the user_edit_body compared to the one in admin you'll find that there's a lot of extra code to just display fields instead of input fields when a Moderator looks at an Admin's profile. You can use your own user_select_body if you like, the one provided with modcp has been moded to include a dropdown list to make it easier to find users.
Can you please tell me if this instruction (from your FAQ) is still accurate?
Q: How to make my template compliant with the Mod CP? A: You can replace all files in templates/your_theme/modcp with your files from templates/your_theme/admin except for user_select_body.tpl and user_edit_body.tpl, all other files are exactly the same.
Hi, thanks for replying, I set the template as subsilver, and checked the directory, and the modcp folder is in there with all the files, that didnt fix it _
Wow it's been a long time since I had a ModCP help... I'm guessing that you're using a template other than subSilver? You need to make sure that the modcp files got installed for your template. Have a look in your template and see if there is a modcp directory, if not copy it from subSilver (or from the modcp download) and finger's crossed everything will work fine.
Hi Jackson, how is your post data formatted? CURL needs it like this: "Hello=World&Foo=Bar&Baz=Wombat"; perhaps you could paste some code for me to have a look at?
What if you need to send a post request and actually have values to send, but are still getting this error? If I change it to a get request (and don't pass any data), I don't get this error... but I need to pass data for the api I'm using. Any thoughts?
Re: Moderator CP
wrote:
Hi, again. I've tryed to put this on another forum and I have a problem. When a moderator tryes to acces the mod cp, he gets this message: The requested URL /modcp/login.php was not found on this server. I've tryed to fix this by empty cache folder (I'm using eXtreme Styles MOD). This worked on the first board I installed it, but now it did not help. If I remove re-login from pagestart.php, then it works. So it seems to be an issue with the way my forum creates the URL. It's strange because on my computer, using XAMPP, it works just fine. But not on this online board.
Do you have any idea what could be wrong?
Fri 15th May, 2009
Re: Moderator CP
wrote:
Hi, awhile ago I posted about the mod panel just coming up as a white page, so I got it to work now! If anyone wants this topic for reference I included the link below, thanks for the great mod! I have a free phpbb2 hosting section on my site, and that was the first mod I installed on it!
http://www.phpbbhacks.com/forums/moderator-control-panel-issue-vt74733.html
-Dillon
Tue 21st April, 2009
Re: Moderator CP
wrote:
Hy, Milkman! Both work perfectly, thanks a lot! I couldn't do it without your help, much apreciated. Also, I put Mega Mail and Admin Userlist using your "Add New Modules" tutorial and all is fine.
Thanks again, you are a great guy!
Daniel
Tue 7th April, 2009
Re: Moderator CP
Ah, I see what you mean now! Let's have another try at fixing the
$can_editproblem first... Remove both of theseAnd replace both of the
$can_editlines with this:For your other problem have a look in
modcp/index.phpand find (line 385 for me)And replace it with:
Mon 6th April, 2009
Re: Moderator CP
wrote:
Hy, Milkman! Thanks for reply.
About my first request, I've just tryed your sugestion and it does not work, moderastors still can not edit other moderators profiles.
About my second request, now. Sorry, but I think you did not understand very well what I want. Probably because of my bad english. Please take a look at this pics:
When looking at the index page, on the viewonline section, at the bottom, moderators do not see hidden users. They see what simple users see. Only admin see hidden users, and they see them in italic mode (like <i>this</i>
. But when looking in the view online section from the moderator panel, moderators see hidden users. What I want is to make the viewonline section from the mod panel, same as on index page. So that moderators will not see hidden users.
Thanks for your effort, but I do want moderators to edit hidden users profiles and to see them in the selection box, so I can't really use your code. But someone reading this, maybe will need it.
Mon 6th April, 2009
Re: Moderator CP
Hi Daniel,
Your second request is (I think) easier than your first, so I'll start there. In line 13 of the code you have pasted above change the
<=to a<and I think that should allow moderators to edit each other. Remember that there are two blocks of code that use$can_editand you should edit both of them.Your first request is not so easy... I'm assuming you're referring to a user's online visibility, in which case they will still be in the memberlist (unless you have modded that too). The first thing to do is remove people from the select list. Near the bottom of
admin_users.phpyou'll find a SQL query. You need to make it look like this (note the new line at 4):Next you need to edit the bit of code you pasted above, for your second point. Make that line look like this (a new && clause at the end of the line) :
Finally, after the second
$can_edit =you should add (to stop moderators even seeing hidden profiles):Do test this thoroughly but I think it should cover what you need. It won't effect the "Find Username" popup box, that's a core part of phpbb that I don't want to tweak as it'll break things like Private Messages too.
Mon 6th April, 2009
Re: Moderator CP
wrote:
Hy, Milkman! I got another support question for you. Moderators can't edit admins and other mods profiles. I want them to be able to change other mods, but not admins. So I need to change this part (in admin_users.php):
I want them to be able to edit other mods profiles. Thanks!
Mon 6th April, 2009
Re: Moderator CP
wrote:
Hy, Milkman! Thanks for reply.
It's working now, but moderators see hidden users, wich I don't like. I would like it if only admin could see hidden users, like in the forum index. I've tryed to take some code from viewonline.php but couldn't manage get it to work, untill now. Can you please give me a hand?
Daniel
Sun 5th April, 2009
Re: Moderator CP
Hi Daniel, that is still correct. If you have a look through the user_edit_body compared to the one in admin you'll find that there's a lot of extra code to just display fields instead of input fields when a Moderator looks at an Admin's profile. You can use your own user_select_body if you like, the one provided with modcp has been moded to include a dropdown list to make it easier to find users.
Sat 4th April, 2009
Re: Moderator CP
wrote:
Hy, Milkman! Thanks for your great MOD
Can you please tell me if this instruction (from your FAQ) is still accurate?
Thanks you!
Daniel (Romania)
Fri 3rd April, 2009
Re: Moderator CP
wrote:
Hi, thanks for replying, I set the template as subsilver, and checked the directory, and the modcp folder is in there with all the files, that didnt fix it
_-Dillon
Wed 18th March, 2009
Re: Moderator CP
Wow it's been a long time since I had a ModCP help... I'm guessing that you're using a template other than subSilver? You need to make sure that the modcp files got installed for your template. Have a look in your template and see if there is a
modcpdirectory, if not copy it from subSilver (or from the modcp download) and finger's crossed everything will work fine.Sat 14th March, 2009
Re: Moderator CP
wrote:
I installed your mod, and when a moderator goes to the moderator panel, it is just a blank white page, any ideas?
I am running:
phpBB 2.0.23
Thanks,
Dillon
Fri 13th March, 2009
Re: cURL Error 26: Failed to open/read local data from file/application
Hi Jackson, how is your post data formatted? CURL needs it like this:
"Hello=World&Foo=Bar&Baz=Wombat"; perhaps you could paste some code for me to have a look at?Sun 28th December, 2008
Re: cURL Error 26: Failed to open/read local data from file/application
Hello!
What if you need to send a post request and actually have values to send, but are still getting this error? If I change it to a get request (and don't pass any data), I don't get this error... but I need to pass data for the api I'm using. Any thoughts?
Wed 24th December, 2008