 | |  | | | ReviewPost How do I...? Wondering how to do something in ReviewPost? |
January 4th, 2006, 02:07 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Oct 2005 Location: Maryland
Posts: 85
| Allow mods to edit user list?
How can I add the link to the "edit users" category to the moderators menu of allowed tasks? It's in the admionistrators menu but I want to allow the mods to do it, too.
|
| |
January 4th, 2006, 09:21 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
well two things in adm-user.php you would move the line in bold outside the conditional clause say below it Code: Content visible to verified customers only.
In adm-user.php this add in bold
if ( $User['adminedit'] != 1 || $User['moderator'] != 1 ) {
|
| |
January 4th, 2006, 10:50 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Oct 2005 Location: Maryland
Posts: 85
|
I assume you meant the first edit to be in adm-misc.php since it isn't found in adm-users.php. So I moved that highlighted line out of the if statement in adm-misc. Then I changed the line in admin-users to add the $User['moderator'] != 1 statement.
I get the link to edit users and to bulk move in the moderators list now. But when they click on edit users, they get "You are not a valid administrator! " whereas the bulk move seems to work (although haven't carried it all the way through) but it doesn't get the "not an admisnistrator" message.
Any ideas?
Last edited by ace67; January 4th, 2006 at 10:58 PM.
|
| |
January 5th, 2006, 07:32 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
Yes my idea is that whatever moderator you have that says this is not a moderator.
That statement would be pretty explicit here
essentially this is the same thing
if ( $User['adminedit'] == 0 && $User['moderator'] == 0 ) {
did you edit adm-user.php and add the text in bold?
if ( $User['adminedit'] != 1 || $User['moderator'] != 1 ) {
cause if you did as long as the usergroup the user is in has moderator access they should be able to get past that error message cause $User['moderator'] would equal 1
|
| |
January 5th, 2006, 10:22 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Oct 2005 Location: Maryland
Posts: 85
|
In adm-users.php, changed line 18 from
if ( $User['adminedit'] != 1 ) {
to:
if ( $User['adminedit'] != 1 || $User['moderator'] != 1 ) {
In adm-misc.php, moved
$adminmenu .= "$userhtml<a href=\"{$Globals['maindir']}/adm-misc.php?admact=move\" target=\"mainFrame\">Bulk Move</a><br />";
from line 1448 to line 1450. Line 1449 is the close bracket for the if conditional.
Usergroup "Moderator" has "Mod Access" set to yes, "Admin Access" set to no.
Bulk Move works. Edit Users does not. |
| |
January 5th, 2006, 11:08 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
If your mod hits edit users and gets that message it can only mean one thing that I see. That moderators access is set to NO. Try making this line
if ( $User['adminedit'] != 1 ) {
to say this
if ( $User['adminedit'] == 0 && $User['moderator'] == 0 ) {
Last edited by Chuck S; January 5th, 2006 at 11:13 AM.
|
| |
January 7th, 2006, 03:51 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Oct 2005 Location: Maryland
Posts: 85
|
Made that last change and now it works for the moderators. Thank you, Chuck.
|
| |
January 7th, 2006, 05:41 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
Not a problem buddy
|
| |
July 13th, 2006, 12:01 PM
|
#9 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,172
|
Can I use this hack also in PP 5.31?
What else do I need to do in PP 5.31, if I want to give moderators more privileges
a) to ban users
b) delete users
c) access to e-mail address etc. of users
For security reasons, there should be ideally different "levels" of moderators. I.e. new modertaors shall have no acces to e-mail adresses etc., in case it turns out, they do a bad job and can then (if you fight with them) misuse the e-mail adresses.
Last edited by snoopy5; July 13th, 2006 at 12:17 PM.
|
| |
July 13th, 2006, 03:14 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
This edit should still be valid
|
| |
November 15th, 2006, 02:27 PM
|
#11 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,172
|
this would be a good feature for a the new PP version. In pp 5.5. it is not yet available..
|
| |
November 15th, 2006, 03:13 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
Please add any suggestions for Photopost in the proper forum. This is not a suggestions forum nor is this thread under Photopost Pro |
| |
November 15th, 2006, 04:05 PM
|
#13 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,172
| Quote:
Originally Posted by Chuck S Please add any suggestions for Photopost in the proper forum. This is not a suggestions forum nor is this thread under Photopost Pro  |
But you said in July, this could also be used for PP 5.31, or do I miss here something?
|
| |
January 29th, 2007, 05:45 AM
|
#14 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,172
|
HI
would this hack still work in PP 5.62?
|
| |
January 29th, 2007, 06:46 AM
|
#15 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,172
|
update: I tried this code in PP 5.62. But I get an error, as soon as I try to get into the ACP by clicking on "Administrator". Both as a moderator and as as an admin:
------------
Parse error: parse error, unexpected '<' in /homepages/xxx/fotos/adm-misc.php on line 982
-----------
How can I make this work?
|
| |
January 29th, 2007, 10:36 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
This is not a photopost thread so wrong program and code
|
| |
January 29th, 2007, 10:40 AM
|
#17 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,172
|
uuuppss, sorry...
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 06:35 AM. | |