944,162 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1383
  • PHP RSS
Dec 1st, 2006
0

Syntax problem!

Expand Post »
Hi, I am a relative newbie to PHP no doubt I will run into no end of problems, speaking of which 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...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bigbud is offline Offline
3 posts
since Dec 2006
Dec 1st, 2006
0

Re: Syntax problem!

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

'1,2';
Last edited by MattEvans; Dec 1st, 2006 at 8:48 pm.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Dec 1st, 2006
0

Re: Syntax problem!

Can you please provide the code you are using to insert the new user?
Reputation Points: 15
Solved Threads: 17
Junior Poster
phper is offline Offline
189 posts
since Nov 2006
Dec 2nd, 2006
0

Re: Syntax problem!

Click to Expand / Collapse  Quote originally posted by phper ...
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bigbud is offline Offline
3 posts
since Dec 2006
Dec 2nd, 2006
0

Re: Syntax problem!

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002
Dec 2nd, 2006
0

Re: Syntax problem!

Thank you so much, doubtless I will have many more questions before long...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bigbud is offline Offline
3 posts
since Dec 2006
Dec 2nd, 2006
0

Re: Syntax problem!

No problem.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC