Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected


Trentide

Recommended Posts

Please help!!! I'm trying to center my site and add a border.....Here's the suspicious code:(the browser mentions line 53 - that would be <div class="fixcenter">

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

<div class="fixcenter">

}

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 

Thanks for looking. I hope I can fix it! -Jason-

Link to comment
Share on other sites

It's strange where you got the instruction from to put '<div class="fixcenter">' there?

Yes, I think you should be able to solve it once you read the instruction (or you come up with this div class yourself?)

 

Ken

 

Please help!!! I'm trying to center my site and add a border.....Here's the suspicious code:(the browser mentions line 53 - that would be <div class="fixcenter">

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

<div class="fixcenter">

}

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 

Thanks for looking. I hope I can fix it! -Jason-

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

I was reading the instructions for "a fixed width site" contribution:

 

http://www.oscommerce.com/community/contributions,2710.

 

And that's what they said to do. I don't know much about coding but here's the instructions:

 

In /catalog/includes/header.php

-------------------------------

immediately below this piece of code

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

 

add

 

<div class="fixcenter">

 

Is there a way to fix it? Please let me know. Thanks, Jason

Link to comment
Share on other sites

Right, it does say immediate below, which is after '?>', but you insert it in the middle of that code! :)

 

Ken

I was reading the instructions for "a fixed width site" contribution:

 

http://www.oscommerce.com/community/contributions,2710.

 

And that's what they said to do. I don't know much about coding but here's the instructions:

 

In /catalog/includes/header.php

-------------------------------

immediately below this piece of code

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

 

add

 

<div class="fixcenter">

 

Is there a way to fix it? Please let me know. Thanks, Jason

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

I know..I tried putting it at the end like it said, and didn't get any results. I then tried where you see it and, of course, still no results. I eventually put it back to where it told me too and it worked. If there was an extra space or something at the end would that have make a difference? I honestly don't know what I did differently this time than last. Thanks, Jason

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...