1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Lost Admin Permissions

Discussion in 'XenForo Questions and Support' started by Cal, Apr 23, 2013.

  1. Cal

    Cal Well-Known Member

    Well not lost perhaps. I bought a forum from another guy and it's been hell getting it to work. Long story short I got it working. YAY. However I do not have the admin login or password. So I am a member on my own site. NOT YAY. How do I give myself admin permissions? I also would like to be the official super admin....

    ((this is like step one out of 10. I still need to convert it to VB...then import it into an existing Xenforo forum....))

    Nevermind. Figured it out via phpmyadmin and the database directly.
     
  2. Biker

    Biker Well-Known Member

    Put your userid number on the appropriate line in your config.php file.
     
  3. Cal

    Cal Well-Known Member

    Naw that wasn't it. Thank you though biker. I found it directly in the database under the xf_user table.
     
  4. Biker

    Biker Well-Known Member

    You still need to add your ID to config.php. That's what identifies you as a superadmin.
     
  5. borbole

    borbole Well-Known Member

    Go to phpmyadmin and at the SQL box run this query:

    Code:
    UPDATE xf_user SET user_group_id = 3 WHERE user_id = x;
    Where x equals your uid. Then enter your uid at the config.php file. i.e. at this part.

    PHP:
    $config['superAdmins'] = 'x';
    Hope it helps.
     
    Cal likes this.
  6. Cal

    Cal Well-Known Member

    Yeah I had that already. That was the easy part lol.
     
    borbole likes this.

Share This Page