1471
phppp
Re: about delete webmaster
  • 2004/2/27 20:00

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Version: 2.06
Problem: Webmaster group user can not be removed
Temporary solution:

file: modules/system/admin/groups/main.php

Line 227 - 230

} else {
$member_handler->removeUsersFromGroup($groupid, $uids);
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_DBUPDATED);
}

==>:

if(1!=$xoopsUser->uid()){ // Not the super webmaster? action denied!
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_ADMINNO);
}
$new_uids=array();
for($i=0;$i<count($uids);$i++){
if(1!=$uids[$i]) $new_uids[]=$uids[$i]; // Not the super webmaster? removal is permitted
}
$uids=$new_uids;

}//else {
$member_handler->removeUsersFromGroup($groupid, $uids);
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_DBUPDATED);
//}



1472
phppp
Re: White page after I remove a user from admin's group !
  • 2004/2/27 19:14

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

king76 wrote:
Yes possible, but why now i can remove user from admin's group


Of coz this modification can let you remove an admin.
If you just wanna remove an admin, that's ok.

However, the upgrade of 2.06, as I understand, is try to make admin management more secure by putting some restrict.

If you change XOOPS_GROUP_ADMIN to "XOOPS_GROUP_ADMIN", what will be the consequence?

Try to find out the difference between XOOPS_GROUP_ADMIN and "XOOPS_GROUP_ADMIN", you may find the reason.




1473
phppp
Re: about delete webmaster
  • 2004/2/27 18:02

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Refer to this topic

If you want to make it work before the next XOOPS release, you have to modify the file:
modules/system/admin/groups/main.php

around line 227



1474
phppp
Re: White page after I remove a user from admin's group !
  • 2004/2/27 17:30

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

esoho wrote:
open modules/system/admin/groups/main.php
found under
if ($groupid == XOOPS_GROUP_ADMIN) {
replace with
if ($groupid == 'XOOPS_GROUP_ADMIN') {


I would suspect this solution.




1475
phppp
Re: Allow view debug mode for admin only??
  • 2004/2/27 15:04

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

yoyo2021 wrote:
Hum! If I put the hack, that not work...

It dont show any bug!

But if I dont put the hack, I have 23 Notice...

???



Make sure $xoopsUser is handled before it is being called.





1476
phppp
Re: Registering By E-mail
  • 2004/2/25 5:10

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

rgiord54 wrote:
It will do that, but will it send e-mail if you activate without activation?


Modify these two files:
register.php
user.php



1477
phppp
Re: delete users bug
  • 2004/2/23 16:42

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

onokazu wrote:
This actually was a new bug found in 2.0.6, and I have just committed a fix on CVS.

Add the following line to /modules/system/admin/users/main.php, just after line 93

$deluser =& $member_handler->getUser($memberslist_id[$i]);

so it will look like below:

$deluser =& $member_handler->getUser($memberslist_id[$i]);
$groups = $deluser->getGroups();

We will be making the release of 2.0.6.1 or 2.0.7 very soon which includes this fix.


Is it a feature or bug that webmasters can not be removed?
If it's a feature, it should be prompted when trying to remove a webmaster.

What I am doing: set a super webmaster, for say the Administrator created during installation. Only this webmaster has the permission to remove other webmasters. This super webmaster can not be removed or terminated.



1478
phppp
Re: Forum Help!
  • 2004/1/29 15:53

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Modify the function Forum::getAllPosts
as well as relevant codes in viewtopics.php
some errors there




TopTop
« 1 ... 145 146 147 (148)



Login

Username:
Password:

Lost Password? Register now!

Who's Online

82 user(s) are online (52 user(s) are browsing Support Forums)


Members: 0


Guests: 82


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits