Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2002
    Location
    Las Vegas
    Posts
    797

    Modernbill & vBulletin 3 [ account creation question ]

    i see an option in modernbill to auto create account via forum

    but my question is can this auto create accounts into a different group of choice ?

  2. #2
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,574
    Probably not, I'd assume you'd need to do something custom for that.
    MediaLayer, LLC - www.medialayer.com Learn how we can make your website load faster, translating to better conversion rates for your business!
    The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business

  3. #3
    Join Date
    Jan 2002
    Location
    Boston
    Posts
    5,010
    I created a group called 'Clients' in VB and setup my mod_forums file to add the users to that group when they are created, you just change the group number I think it is setup to #2 by default.

  4. #4
    Join Date
    Apr 2002
    Location
    Las Vegas
    Posts
    797
    $sql = "INSERT INTO ".$forum_table_prefix."user
    (username, salt, password, passworddate, email, styleid, parentemail,
    showvbcode, usertitle, joindate, daysprune, lastvisit, lastactivity, usergroupid, timezoneoffset,
    options, maxposts, threadedmode, startofweek, ipaddress, pmpopup, referrerid,
    reputationlevelid, reputation, autosubscribe, birthday, birthday_search)
    VALUES
    ('" . addslashes(htmlspecialchars_uni($username)) . "',
    '" . addslashes($salt) . "',
    '" . addslashes($hashedpassword) . "',
    '". date("Y-m-d") ."',
    '" . addslashes(htmlspecialchars_uni($email)) . "',
    '1',
    '',
    '1',
    '" . addslashes($usertitle) . "',
    '" . time() . "',
    '0',
    '" . time() . "',
    '" . time() . "',
    '9', <<< right here right ?
    '0',
    '7255',
    '-1',
    '0',
    '1',
    '127.0.0.1',
    '1',
    '',
    '5',
    '10',
    '-1',
    '$birthday',
    '$birthday_search')";

  5. #5
    Join Date
    Jan 2002
    Location
    Boston
    Posts
    5,010
    Yup that's it You can also edit the $usertitle at the beginning of the vB code.

  6. #6
    Join Date
    Apr 2002
    Location
    Las Vegas
    Posts
    797
    thank you

    would code above work on vb 3.5.X ?

  7. #7
    Join Date
    Jan 2002
    Location
    Boston
    Posts
    5,010
    Quote Originally Posted by Ivan23
    thank you

    would code above work on vb 3.5.X ?
    I know it was coded for 3.0 but it works still fine for me on 3.5.x so far.

  8. #8
    Join Date
    Apr 2002
    Location
    Las Vegas
    Posts
    797
    thank you for your time


    really helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •