Error help please


  -----  
Author Message

Trish20646
Member

Thu Sep 13, 2007 2:14 pm   Post subject: Error help please
Hello Smile

I'm not real great with php and I was wondering if you could help me out please. I installed Shop 3.1.0 and I've installed the Effects shop 2.0.1.

I'm receiving this error and can't figure out how to fix it.

Parse error: syntax error, unexpected T_ELSE in /home/jmdinfon/public_html/duganenterprisesinc/playgroup/phpBB2/viewtopic.php on line 1231

Last edited by Trish20646 on Thu Sep 13, 2007 5:49 pm; edited 1 time in total
 

Thoul
Administrator

Thu Sep 13, 2007 2:31 pm   Post subject: Re: Error help please
Can you save a copy of this file as a .txt file, upload it somewhere, and post a link to it please? The file is too long to be contained in a post here, so I can't see the cause of the problem.
 

Trish20646
Member

Thu Sep 13, 2007 5:48 pm   Post subject:
 

Thoul
Administrator

Thu Sep 20, 2007 9:27 pm   Post subject: Re: Error help please
This section of your file has a couple of problems:

Code:

      $user_items .= ( $img_src ) ? '<img src="' . $img_src . '" title="' . $row['item_name'] . '" alt="' . $row['tem_name'] . '" border="0" />' : '';
   $usernameurl = append_sid('shop.'.$phpEx.'?action=inventory&searchid='.$postrow[$i]['user_id'], true);
}
else  ( $board_config['viewtopic'] == 'link' )


Changing that to this will take care of it:

Code:

      $user_items .= ( $img_src ) ? '<img src="' . $img_src . '" title="' . $row['item_name'] . '" alt="' . $row['tem_name'] . '" border="0" />' : '';
   }
   $usernameurl = append_sid('shop.'.$phpEx.'?action=inventory&searchid='.$postrow[$i]['user_id'], true);
}
else if ( $board_config['viewtopic'] == 'link' )
 

Trish20646
Member

Sat Sep 22, 2007 10:11 pm   Post subject:
Applause Applause Applause

That worked thanks so much Smile

I'm runing into another error though and I can't figure it out. I was wondering if you could take a look at it.
Here is the current error I'm getting:
It is when I am trying to view the profile and trying to register. From what I can tell everything is in it's place and I need the ; that it is talking about. But then again I don't know much about PHP Laughing

Parse error: syntax error, unexpected ';' in /home/jmdinfon/public_html/duganenterprisesinc/playgroup/phpBB2/includes/usercp_register.php on line 1340


Here is the link to my text file for it:
http://www.duganenterprisesinc.com/playgroup/phpBB2/usercp_register.txt

Also, a lot of the effects don't work and I don't understand why. The glow effects and shadow effects don't work. I purchased an avatar ticket and loaded my avatar and it doesn't show up either. Not sure what could be causing these problems.

TIA for your help.

You are awesome Smile
 

Thoul
Administrator

Mon Sep 24, 2007 12:53 am   Post subject: Re: Error help please
Find this in your file:

Code:

      if ( $effects->profile_edit_check($userdata) && $userdata['user_allowavatar']//
// Effects Store - End Code Alteration
//------------------------------------------------------------------------------ && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )


Change it to:

Code:

      if ( $effects->profile_edit_check($userdata) && $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )
//
// Effects Store - End Code Alteration
//------------------------------------------------------------------------------   


That will fix that error.

The glow and shadow problem may be coming from the template you're using. Look at the documentation in the contrib/ folder with the hack. There's a file in there that discusses this.
 

Trish20646
Member

Mon Sep 24, 2007 10:17 am   Post subject:
Thumbs Up WHOOO HOOOO You rock.

Thanks so much for the fixes and also thanks for taking the time to look over them for me.
 

Page 1 of 1
Display posts from previous: