Subject: To add new user in customized group.

Posted on: 19/06/09 08:03pm
By: koalasoft

How I can do so that at the moments that a user registers itself in the site, this is added besides the group; "Logged-in Users" one adds a group that I have created, for example "Group A".

Some idea?

Grettings !! Mr. Green

Re: To add new user in customized group.

Posted on: 20/06/09 07:37am
By: suprsidr

Try adding a function to path_to_geeklog/system/lib-custom.php
PHP Formatted Code

    function CUSTOM_userCreate($uid,$bulkimport=false){
        // your add to group code here.
    }
 

You can edit the example function that may already be there.
Then turn on custom registration.

-s

Re: To add new user in customized group.

Posted on: 20/06/09 12:37pm
By: koalasoft

Ok, but...

For example, I have a list of groups in combobox in " memberdetail.thtml" like:

select option: ....
Group A
Group B
Group C

How I say to him to the system in that group to add the user when the group of the list chooses.

Grettings !! Mr. Green

Re: To add new user in customized group.

Posted on: 20/06/09 04:10pm
By: suprsidr

whatever you named your combobox in memberdetail.thtml
$_POST['combobox_name']

-s

Re: To add new user in customized group.

Posted on: 24/07/09 12:53pm
By: koalasoft

Quote by: suprsidr

whatever you named your combobox in memberdetail.thtml
$_POST['combobox_name']

-s



sorry but I do not understand .. Oops! Oops!

one example please !! :pray:


Grettings !! Mr. Green

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=87835