Dear all,
In my BBpress site I have a 'Terms of Service' plug in for the users to accept during registration.
Now, when people forget to accept the terms they get an error page. Unfortunately the layout of this error page is messed up.
You see what I mean when you go to http://204.12.19.206/register.php register and leave the accept check box unchecked.
In my (very) limited knowledge of PHP I think the culprit is in the below code:
function terms_of_service_check() { // examine the answer
if ($_POST && (!isset($_POST['terms_of_service']) || $_POST['terms_of_service']!="agree")) {
bb_get_header(); ?>
<br clear='both' /><h2 id='register' style='margin-left:2em;'>
<div class="indent">
<h2 id="register"><?php _e('?'); ?></h2>
<p align='center'><font size='-1'><?php _e("Oei, zoals je ziet is er iets fout gegaan. Je bent waarschijnlijk vergeten akkoord te gaan met de gebruiksvoorwaarden"); ?>
<br /><a href='register.php'><?php _e("Ga terug"); ?>.</a></font>
<?php bb_get_footer();
exit;
}
}
Please let me know if you need the whole code.
Thanks,
Ben