vBulletin Integration: Assign User to Administrator group?

Discussion in 'Integration' started by AdamCapriola, Aug 17, 2010.

  1. AdamCapriola

    AdamCapriola New Member

    Joined:
    Jul 10, 2010
    Messages:
    27
    Support hasn't answered any of my questions in the past so I'm coming here for help...

    I bought the vBulletin integration plugin and am trying to make a hidden "Admin" product so that incase something weird happens, I will never lose control of my WordPress and vBulletin products.

    The WordPress plugin lets me set a user to be added as an Administrator.

    The vBulletin plugin only lets me go as high as Moderator... any reason for this?

    I don't understand why Administrator isn't an option.

    Thanks so much,

    Adam
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Adam ,
    Edit /amember/plugins/protect/vbulletin3/vbulletin3.inc.php and change this in get_groups function:
    PHP:
    $q = @mysql_query("SELECT usergroupid, title FROM {$this->config['db']}usergroup WHERE adminpermissions <= 0 AND usergroupid > 1",$this->db->conn);
    to
    PHP:
    $q = @mysql_query("SELECT usergroupid, title FROM {$this->config['db']}usergroup",$this->db->conn);
  3. AdamCapriola

    AdamCapriola New Member

    Joined:
    Jul 10, 2010
    Messages:
    27
    Thanks so much Alexander!!

Share This Page