Author Topic: [SOLVED] MAJOR PROBLEM WITH SHOP AND LOAD.PHP PLZ HELP  (Read 2196 times)

pspmasterPRO

  • Guest
[SOLVED] MAJOR PROBLEM WITH SHOP AND LOAD.PHP PLZ HELP
« on: August 22, 2007, 09:13:14 am »
in cpanel go to this part

// Set up the contextual user array.
   $context['user'] = array(
      'id' => &$ID_MEMBER,
      'is_logged' => !$user_info['is_guest'],
      'is_guest' => &$user_info['is_guest'],
      'is_admin' => &$user_info['is_admin'],
      'is_mod' => false,
      'username' => &$user_info['username'],
      'language' => &$user_info['language'],
      'email' => &$user_info['email']


then when I try to add some code to fix the shop like this

// Set up the contextual user array.
   $context['user'] = array(
      'id' => &$ID_MEMBER,
      'is_logged' => !$user_info['is_guest'],
      'is_guest' => &$user_info['is_guest'],
      'is_admin' => &$user_info['is_admin'],
      'is_mod' => false,
      'username' => &$user_info['username'],
      'language' => &$user_info['language'],
      // Begin SMFShop MOD New Version
      'money' => &$user_info['money'],
      'moneyBank' => &$user_info['moneyBank'],
      // End SMFShop MOD New Version

      // Begin SMFShop MOD New Version
      'money' => &$user_info['money'],
      'moneyBank' => &$user_info['moneyBank'],
      // End SMFShop MOD New Version

      'email' => &$user_info['email']


Then when I save it the shole script deletes it self I don't now why but PLZ you try something now the shop dosn't work you can't gain credits anymore.

PLZ try add

                         // Begin SMFShop MOD New Version
      'money' => &$user_info['money'],
      'moneyBank' => &$user_info['moneyBank'],
      // End SMFShop MOD New Version

      // Begin SMFShop MOD New Version
      'money' => &$user_info['money'],
      'moneyBank' => &$user_info['moneyBank'],
      // End SMFShop MOD New Version

to the end of

'language' => &$user_info['language'],

so the code is in between

'language' => &$user_info['language'],

and

'email' => &$user_info['email']



so tell me am I doing something wrong whats the problem and PLZ help   

 :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(
     

Offline Daniel15

Re: MAJOR PROBLEM WITH SHOP AND LOAD.PHP PLZ HELP
« Reply #1 on: August 24, 2007, 04:21:31 pm »
Firstly, please only make one post for your problem
Secondly, please do not use the editor in cPanel, it's quite buggy. Instead, download the file via FTP, edit it using an editor on your computer (eg. Notepad++ or even just Notepad), and then reupload the file.

pspmasterPRO

  • Guest
Re: [SOLVED] MAJOR PROBLEM WITH SHOP AND LOAD.PHP PLZ HELP
« Reply #2 on: August 25, 2007, 03:57:22 am »
NVM I solved it everything works fine and yah the php editor in cpnael is buggy  :(