954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Syntax problem!

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...

bigbud
Newbie Poster
3 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

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

'1,2';

MattEvans
Veteran Poster
Moderator
1,386 posts since Jul 2006
Reputation Points: 522
Solved Threads: 64
 

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

phper
Posting Whiz in Training
213 posts since Nov 2006
Reputation Points: 22
Solved Threads: 19
 
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['SpecialUsers']['superadministrators'] = '1';

bigbud

bigbud
Newbie Poster
3 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

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.

cscgal
The Queen of DaniWeb
Administrator
19,433 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

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

bigbud
Newbie Poster
3 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

No problem. :)

cscgal
The Queen of DaniWeb
Administrator
19,433 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You