1
Jakobo
A Quick and dirty hack: Add "Remove user from group" functionality to findusers.php
  • 2004/4/9 2:30

  • Jakobo

  • Just popping in

  • Posts: 61

  • Since: 2003/12/18


After racking my brain on this a half dozen different ways...

1) clone the system module "groups" and name it "delgroups"

2) make the following edits:
modules/system//admin/delgroups/xoops_version.php
linechange to
34
$modversion['description'] = "User Groups Configuration (Delete Groups Mod)";
39$modversion['official'] = 0;
42$modversion['adminpath'] = "admin.php?fct=delgroups";


modules/system/admin/findusers/main.php
lineinsert this
399
: echo "".sprintf("Remove from %s group"$add2group->getVar('name'))."";


No, this is far from perfect, and the language settings aren't working yet. It's entire purpose is to make it possible to use the "find users for this group" feature to remove a user via the search tool. You will come to appreciate even this hacky solution when your user base is more than 3000 users. Sifting through the member id-sorted list to remove a user from the "registered users" group is a pain.

Sysmod Devs: using the select box in findusers.php with a name of fct to call a module's "default action" was a cruel cruel trick, and I couldn't find a better way. Any and all feedback is encouraged, because I am sure there are a half dozen other ways to accomplish this... :)

Login

Who's Online

350 user(s) are online (224 user(s) are browsing Support Forums)


Members: 0


Guests: 350


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