Page 1 of 1

Posted: Mon Mar 07, 2011 7:32 am
by jacob
Some of you may recognize this error
Parse error: syntax error, unexpected T_STRING in /home1/earlyret/public_html/forum/my-templates/bbgrunge/register-success.php on line 7
Here's the file (line 7 is the really long one). I'm sure this is a really trivial problem to a php programmer. Something like a missing underscore or quote?!
<?php bb_get_header(); ?>
<h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> ยป <?php _e('Register'); ?></h3>
<h2 id="register"><?php _e('Great!'); ?></h2>
<p><?php printf(__('Your registration as <strong>%s</strong> was successful. It is currently being held for approval and should go through within 24 hours. You may or may not receive a notification. If you don't get one try logging in again after 24 hours. If you haven't received a password, click on lost password and a working one will be sent to you. If this does not work, write an email to jacob at earlyretirementextreme dot com using the email address you registered with. Sorry about the hassle, but it has been necessary to implement this to avoid spammers.'), $user_login) ?></p>
<?php bb_get_footer(); ?>


Posted: Mon Mar 07, 2011 12:08 pm
by ishidav
You have a single quote in your text (as an apostrophe) ending your string early. Escape it with a backslash in front.
http://php.net/manual/en/language.types.string.php


Posted: Mon Mar 07, 2011 6:16 pm
by jacob
Ugh! I even have two of them. Thanks!