Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member PlopCat's Avatar
    Join Date
    Aug 2010
    Location
    USA
    Posts
    13

    Unhappy Add User ID & Forum Becomes Unusable

    What I'm trying to do is add my admin so he can edit under the "Limited Guest Viewing System" &
    "Register Take-Over Message Count" message in admin control panel in the forum.

    When he clicks on the edit link ^ he gets
    Sorry, you don't have permission to access the administrative controls on this page.

    If you need to access this page, ask your lead administrator to enable your permissions for this page using the Administrator Permissions section of the control panel.
    Under that there's another link "Administrator Permissions" he gets this
    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';

    I'm adding them from here in cPanel under the in the config.php file:
    Account name>File manager>Web Root (public_html/www)>Forum>Includes>config.php and click Edit


    So the whole point of this post is the error I get when his user ID is inserted to try to make him a super administrator:
    Parse error: syntax error, unexpected T_VARIABLE in /home/database name/public_html/forum/includes/config.php on line 116
    And of course the the whole forum is unusable.

    It says in the php code that I can add another user in there & think I'm doing it right. My ID is already in there so there will be two users.

    My ID is like this already & works fine '1';
    I've tried every which way to add him after me but get the same results

    Why is this error coming up & what can I do about it?
    I'll add this too. And what extra permissions will he get if he's added?

    Thanks

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,893
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Can't help with the permissions for the forum question, you'll have to take that up with the software vendor. But it sounds to me like you're editing the file incorrectly somehow. Are you indeed editing line 116?

  3. #3
    Member PlopCat's Avatar
    Join Date
    Aug 2010
    Location
    USA
    Posts
    13

    Default

    Quote Originally Posted by Infopro View Post
    Can't help with the permissions for the forum question, you'll have to take that up with the software vendor. But it sounds to me like you're editing the file incorrectly somehow. Are you indeed editing line 116?
    Thanks for answering. Yeah, I ask here in regards that it is cPanel I'm working in. I hope I am correct in this.

    Line 116 is
    ****** USERS WITH ADMIN LOG PRUNING PERMISSIONS ******
    I took myself out of that line even. That throws me for the
    ****** SUPER ADMINISTRATORS ******
    it is on line 133.
    I've tried the regular "Edit" & the "Code editor". Both result in the error message.

    Anyone else care to give this a shot?

    Thanks

  4. #4
    Member PlopCat's Avatar
    Join Date
    Aug 2010
    Location
    USA
    Posts
    13

    Default

    Anyone? Or am I seeing this wrong as not a cPanel question?

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    It's more applicable to ask the forum where the script is made, which appears to be a forum of some sort. The forum name wasn't mentioned (phpBB, SMF, etc, on what it happens to be).

    Anything to do with a specific script or application that isn't one we make would be easier to post on that script's forum as they are the experts for errors relating to it.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member PlopCat's Avatar
    Join Date
    Aug 2010
    Location
    USA
    Posts
    13

    Default

    Thank you. That helps me more.

    In the script at the top it says
    All PHP code in this file is ?2000-2009 Jelsoft Enterprises Ltd....
    And also (which may of answered my own question in part):
    ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
    +---------------------------------------------------------+
    | If you get any errors while attempting to connect to |
    | MySQL, you will need to email your webhost because we |
    | cannot tell you the correct values for the variables |
    | in this file.
    I still am not sure what code it is but I will ask my host on both of these questions.

    Thanks for the explanation to this noob

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    It sounds like it's vBulletin based on it having Jelsoft at the top for the copyright. Their forum is at the following location:

    vBulletin Forum
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,893
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cPanelTristan View Post
    It sounds like it's vBulletin based on it having Jelsoft at the top for the copyright. Their forum is at the following location:

    vBulletin Forum
    It also sounds like either a very out of date forum, or nulled.

    It should say:

    || # Copyright ©2000-2010 vBulletin Solutions Inc. All Rights Reserved.

  9. #9
    Member PlopCat's Avatar
    Join Date
    Aug 2010
    Location
    USA
    Posts
    13

    Default

    Thanks for both reply's Infopro & straightening the code thing up. I'll try the other forum.
    We're using 3.8.5 so I don't know if that's why it said 2000-2009 Jelsoft... or not.

Similar Threads & Tags
Similar threads

  1. how to block or add filter to stop posting bad words in forum.
    By s1llyforyou in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-15-2008, 10:49 PM
  2. How do I add a front page to my forum?
    By Thudner Gaming in forum New User Questions
    Replies: 6
    Last Post: 06-28-2006, 05:31 AM
  3. Forum - add on - add roating banner
    By got2lurveit in forum New User Questions
    Replies: 0
    Last Post: 12-23-2004, 08:40 AM
  4. HELP! using a subdomain of an add-on domain for a forum
    By sublogJ in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-31-2003, 09:47 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube