Thursday, February 18, 2010

vBulletin - change access superadministrator

Sorry, you dont have permission to access the admnistrative controls on this page.

If you need to access.. bla bla bla...


hmm.. camner nak buat nih... dah login menggunakan username nazril.. sepatutnya full administrator dah diberikan pada username nazril, rupanya masih ada limit permission..

cara senang ialah login guna username admin lah kan.. tp username admin n password tu da lupa lah or orang lain pegang..

asalkan ada full access pada server tu da bleh buat dah..

ok salah satu cara ubah config dalam config.php seperti error message dibawah ini.



Sorry, you are not allowed to edit administrator permissions.

If you think you should have permission to access this page, you will need to edit the $config['SpecialUsers']['superadministrators'] variable in the includes/config.php file.

To allow the administrators to access this page, edit the variable to include the user IDs of those administrators should have access, separating each user ID with a comma, like this:

$config['SpecialUsers']['superadministrators'] = '1,25,57';

To allow only a single administrator to access this page, simply add that user's ID with no commas, like this:

$config['SpecialUsers']['superadministrators'] = '1';



OK..
mula2..
login server dgn su password.. pastu su -
cari ini includes/config.php ok.
tambah user ID seperti line coding diatas ok .
mcmmana nak tau user ID?
masuk database mysql
dbname, username n password ada kat dlm config.php tu.. semak disitu..
note to self:lihat dlm laptop, mydocument vBulletinpermission.txt

mysql -u[username] -p [dbname]

bila dah masuk mysql
show tables; tgk berapa bnyk table yg ada.. carik table yg berkenaan iaitu user

describe user; nak tgk apa field dlam table user tadi.. sbb nak cari field username

select * from user where username ="nazril";

so da bleh tau dah apakah ID untuk user bernama nazril.


ok skarang ni da bleh tutup mysql.

dan bleh la vi includes/config.php tadi.. n masukkan user ID dalam coding diataas tadi..

sekian.

No comments: