Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > uCash & uShop
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
error in my admin cp Details »»
error in my admin cp
Version: , by djjeffa djjeffa is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-05-2005 Last Update: Never Installs: 0
 
No support by the author.

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);
		}

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-05-2005, 09:28 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-05-2005, 09:54 PM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05441 seconds
  • Memory Usage 2,244KB
  • Queries Executed 16 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete