vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   error in my admin cp (https://vborg.vbsupport.ru/showthread.php?t=73842)

djjeffa 01-05-2005 09:21 PM

error in my admin cp
 
i must have did a boo boo cause in tha admin cp when i go to user group manager i get :Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/djjeffa/public_html/vb/admincp/usergroup.php on line 139

line 139
Code:

'shouthierarchy' => 5, 'shoutmaxdaily' =>0
here is some of the coding wher line 139 is
Code:

// set default numeric permissions
                        $usergroup = array(
                                'pmquota' => 0, 'pmsendmax' => 5, 'attachlimit' => 1000000,
                                'avatarmaxwidth' => 50, 'avatarmaxheight' => 50, 'avatarmaxsize' => 20000,
                                // ## <ucs>
                                'profilepicmaxwidth' => 100, 'profilepicmaxheight' => 100, 'profilepicmaxsize' => 25000, 'uttstore_discount' => 0'
                                // ## </ucs>,
                                'shouthierarchy' => 5, 'shoutmaxdaily' =>0
                        );

                }
                print_table_header($vbphrase['add_new_usergroup']);
        }
        else
        {
                $usergroupid = intval($_REQUEST['usergroupid']);
                $usergroup = $DB_site->query_first("
                        SELECT * FROM " . TABLE_PREFIX . "usergroup
                        WHERE usergroupid = $usergroupid
                ");

                $ug_bitfield = array();
                foreach($_BITFIELD['usergroup'] AS $permissiongroup => $fields)
                {
                        $ug_bitfield = array_merge(convert_bits_to_array($usergroup["$permissiongroup"], $fields) , $ug_bitfield);
                }


Link14716 01-05-2005 09:28 PM

Yes, there is something wrong there.

Replace this:
PHP Code:

            $usergroup = array(
                
'pmquota' => 0'pmsendmax' => 5'attachlimit' => 1000000,
                
'avatarmaxwidth' => 50'avatarmaxheight' => 50'avatarmaxsize' => 20000,
                
// ## <ucs>
                
'profilepicmaxwidth' => 100'profilepicmaxheight' => 100'profilepicmaxsize' => 25000'uttstore_discount' => 0'
                // ## </ucs>,
                '
shouthierarchy' => 5, 'shoutmaxdaily' =>0
            ); 

With this:
PHP Code:

            $usergroup = array(
                
'pmquota' => 0'pmsendmax' => 5'attachlimit' => 1000000,
                
'avatarmaxwidth' => 50'avatarmaxheight' => 50'avatarmaxsize' => 20000,
                
'profilepicmaxwidth' => 100'profilepicmaxheight' => 100'profilepicmaxsize' => 25000'uttstore_discount' => 0,
                
'shouthierarchy' => 5'shoutmaxdaily' => 0
            
); 

Always look for comma placement.

djjeffa 01-05-2005 09:54 PM

Quote:

Originally Posted by Link14716
Yes, there is something wrong there.

Replace this:
PHP Code:

            $usergroup = array(
                
'pmquota' => 0'pmsendmax' => 5'attachlimit' => 1000000,
                
'avatarmaxwidth' => 50'avatarmaxheight' => 50'avatarmaxsize' => 20000,
                
// ## <ucs>
                
'profilepicmaxwidth' => 100'profilepicmaxheight' => 100'profilepicmaxsize' => 25000'uttstore_discount' => 0'
                // ## </ucs>,
                '
shouthierarchy' => 5, 'shoutmaxdaily' =>0
            ); 

With this:
PHP Code:

            $usergroup = array(
                
'pmquota' => 0'pmsendmax' => 5'attachlimit' => 1000000,
                
'avatarmaxwidth' => 50'avatarmaxheight' => 50'avatarmaxsize' => 20000,
                
'profilepicmaxwidth' => 100'profilepicmaxheight' => 100'profilepicmaxsize' => 25000'uttstore_discount' => 0,
                
'shouthierarchy' => 5'shoutmaxdaily' => 0
            
); 

Always look for comma placement.

thank you for the fast and perfect responce
having a cellphone forum with over 10,000 members I know its hard to be ther to answer each question and I apreciate it.


All times are GMT. The time now is 04:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01263 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete