Syntax problem!

Reply

Join Date: Dec 2006
Posts: 3
Reputation: bigbud is an unknown quantity at this point 
Solved Threads: 0
bigbud bigbud is offline Offline
Newbie Poster

Syntax problem!

 
0
  #1
Dec 1st, 2006
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...
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: Syntax problem!

 
0
  #2
Dec 1st, 2006
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.
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 187
Reputation: phper is an unknown quantity at this point 
Solved Threads: 15
phper's Avatar
phper phper is offline Offline
Junior Poster

Re: Syntax problem!

 
0
  #3
Dec 1st, 2006
Can you please provide the code you are using to insert the new user?
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 3
Reputation: bigbud is an unknown quantity at this point 
Solved Threads: 0
bigbud bigbud is offline Offline
Newbie Poster

Re: Syntax problem!

 
0
  #4
Dec 2nd, 2006
Originally Posted by phper View Post
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,047
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 129
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Syntax problem!

 
0
  #5
Dec 2nd, 2006
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.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 3
Reputation: bigbud is an unknown quantity at this point 
Solved Threads: 0
bigbud bigbud is offline Offline
Newbie Poster

Re: Syntax problem!

 
0
  #6
Dec 2nd, 2006
Thank you so much, doubtless I will have many more questions before long...
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,047
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 129
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Syntax problem!

 
0
  #7
Dec 2nd, 2006
No problem.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC