Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 11:12 am EDT

Geeklog Forums

To add new user in customized group.


Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
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::
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
Try adding a function to path_to_geeklog/system/lib-custom.php
Text 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
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
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::
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
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
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
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::
 Quote

All times are EDT. The time is now 11:12 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