Hi, I am a relative newbie to PHP no doubt I will run into no end of problems, speaking of which :sad: I have implemented a vb board and need to add another admin. Apparently it mentions that the ID of the person be added after the superadmins line which is set to 1 at the moment, is the correct syntax; '1','2'; ?

I have tried this with spaces and it still refuses to allow anymore than 1
any help would be greatly appreciated...

Dani AI

Generated

Quick summary and context: this is a vBulletin configuration/syntax issue. is correct that the normal workflow is to give other people administrator privileges from inside the Admin Control Panel rather than trying to append IDs by hand in a config file. was also on the right track about quoting/formatting being the likely culprit when you try to add more than one entry. 's request for the actual line would have helped diagnose a parse or format problem.

Practical guidance: use the Admin Control Panel to promote a user to the Administrators usergroup and then set their Administrator Permissions. That avoids syntax mistakes and keeps permissions auditable. Only edit the config file as a last resort. If editing is unavoidable, make a full backup of config.php and the database first, mirror the exact format already used in the file, and test on a development copy so a small typo does not take the board offline. After any change, clear vBulletin caches and verify you can log in as the intended admin.

Troubleshooting checklist: confirm you edited the correct file, watch for stray whitespace or BOM at the top of PHP files, check PHP error logs or run a PHP linter for parse errors if the site goes blank, and verify file permissions. Limit super-administrator access to trusted accounts and keep backups before making structural changes.

Recommended Answers

All 6 Replies

i've never looked at vbulletin but i imagine '1','2'; breaks the line too early.. try:

'1,2';

Can you please provide the code you are using to insert the new user?

Can you please provide the code you are using to insert the new user?

// ****** SUPER ADMINISTRATORS ******
// The users specified below will have permission to access the administrator permissions
// page, which controls the permissions of other administrators
$config = '1';

bigbud

You only need one super administrator (as defined in config.php). The job of the super administrator is to be able to add other administrators and set their permissions, which you can do from within the admin control panel. Just select the user you want and move them into the Administrators usergroup. Then, from within the admin control panel, click on Administrator Permissions to define what portions of the admin control panel they should have access to.

Thank you so much, doubtless I will have many more questions before long...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.