Welcome to Geeklog Saturday, October 21 2017 @ 06:20 am EDT


Status: offline

koalasoft

Forum User
Full Member
Registered: 09/03/2005
Posts: 242
Location:Mexico
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
**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/2004
Posts: 555
Location:Champaign, Illinois
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
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: offline

koalasoft

Forum User
Full Member
Registered: 09/03/2005
Posts: 242
Location:Mexico
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
**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/2004
Posts: 555
Location:Champaign, Illinois
whatever you named your combobox in memberdetail.thtml
$_POST['combobox_name']

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: offline

koalasoft

Forum User
Full Member
Registered: 09/03/2005
Posts: 242
Location:Mexico
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
**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::

All times are EDT. The time is now 06:20 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content