Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Scripts for Mass changing of groups
  • Posted: 18.07.2003, 08:03
     
    3DTheory
    rank:
    Helper Helper
    registered:
     April 2003
    Status:
    offline
    last visit:
    31.03.06
    Posts:
    182
    Ok what I've created here is a stand alone script. Has to be used by itself.

    I wrote this cause I have 5 groups that am always swapping users around in

    This script presents you with a list of all the members.
    It lists the date they registered, their user points, then a check box for each group.
    Also has a check box to delete the user.

    Here is a screen shot, since it's hard for me to explain.
    http://www.mpiii.com/useradmin.gif
    http://www.mpiii.com/useradmin.gif
    I use color coding, cause when the page loads.
    It checks the boxes for the groups the user is currently in.
    This way if you go checking things on and off. You can always tell which groups the user was in.

    If you are not familiar with PHP. I don't recommend you use this.
    If you do, and you have been looking for a similar script.
    Then go ahead and grab this.
    It's a very nice script which I worked very hard on.
    Would be interesting if someone could turn it into a module

    Well here it is.
    www.mpiii.com/useradmin.zip

    I WARN YOU!!!
    Please don't use this unless you know what you're doing.

    For this to work "out of the box"
    You need to edit the DB name, password, etc.
    And your table prefix must be set to nuke_

    If yours are different, simpy edit the script.
    Hopefully you can get it working for whatever your scenario.

    The basis is there though. So maybe this will help some people.

    Before using this.. backup your stuff.
    I have included alot of comments in the code. So you should be able to edit it to suit any situation.

    ------------

    EDIT..
    Ok the script now works for up to 30 Groups.
    The zip file has been updated.

    BUT ***WARNING****
    In your nuke_groups table
    If your groups don't go in sequential order (1, 2, 3, 4, 5, 6, 7, 8, 9. etc.)
    Then this won't work.
    If you have (1, 2, 3, 4, 6, 9, etc)
    Then this script will break.
    You can't be missing any numbers.
    Hope that makes sense.
  • Posted: 23.08.2003, 21:29
     
    kage12
    rank:
    Helper Helper
    registered:
     July 2003
    Status:
    offline
    last visit:
    13.09.03
    Posts:
    108
    hey, im a 'petty programer' i guess... i can do stuf but im still learning lot .. but im gonna try to turn this into a module .. mostly just for something to do and for fun .. doesnt meen ill accualy accomplish it .. but good chance i will .. so if anyone else alrady has please let me know .. otherwise ill let you know if i get it working
  • Posted: 23.08.2003, 22:45
     
    3DTheory
    rank:
    Helper Helper
    registered:
     April 2003
    Status:
    offline
    last visit:
    31.03.06
    Posts:
    182
    Have at it.
    The script has been heavily modified since this original post.
    Someone else tried converting it to a module but did not succeed.

    See this post for history on the script.
    http://mods.postnuke.com/modules.php?op=modload&name=News&file=article&sid=1829

    Keep me up to date please.
  • Posted: 11.10.2003, 11:25
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6534
    Hmm, I just wrote a new version of the Groups module, maybe I'll see if I can put this in to it :)
  • Posted: 11.10.2003, 20:07
     
    3DTheory
    rank:
    Helper Helper
    registered:
     April 2003
    Status:
    offline
    last visit:
    31.03.06
    Posts:
    182
    Please contact me via email

    webmaster AT mpiii DOT com

    Thanks.

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula