Ugh. I feel like I’m so close to getting this to work.
Rather than try to create a BP page, a WP page was created with a template. The template contains the following code:
<?php
/*
Template Name: Question
*/
?>
<?php get_header() ?>
<div id="bp-container">
<div class="padder">
<div id="new-topic-post">
<br><br>
<h5>How To Ask A Great Question And Get It Answered</h5>
Maybe you are stuck on a homework problem or do not understand a particular concept. Don't panic. TheChemBook.com is a great place to ask your questions.
First search to see if someone else has asked about the problem. Next, search <a href="/wiki/index.php/TCB:_Chemistry_Online_Textbook">The Chemistry Text</a> by reading the section on the topic.
If none of this helps, start a new topic by completing the form below.
Start with a great headline. Avoid saying, "I'm lost" or "how do I do problem 12?"
A great headline might be "Determining Significant Figures - Captured Zeros"
Next, type as much detail as possible, for example, add the exact wording of the problem you are trying to answer.
Finally, explain the problem <strong>and what you have tried</strong>.
The more details you add then the faster someone can help you.
Teachers are available at irregular intervals, therefore, make sure that you help others with their questions, too.
<br><br>
<?php if ( is_user_logged_in() ) : ?>
<?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>
<form action="" method="post" id="forum-topic-form" class="standard-form">
<?php do_action( 'groups_forum_new_topic_before' ) ?>
<a name="post-new"></a>
<h5><?php _e( 'Post a New Topic:', 'buddypress' ) ?></h5>
<label><?php _e( 'Title:', 'buddypress' ) ?></label>
<input type="text" name="topic_title" id="topic_title" value="" />
<label><?php _e( 'Content:', 'buddypress' ) ?></label>
<textarea name="topic_text" id="topic_text"></textarea>
<label><?php _e( 'Tags (comma separated):', 'buddypress' ) ?></label>
<input type="text" name="topic_tags" id="topic_tags" value="" />
<label><?php _e( 'Post In Group Forum:', 'buddypress' ) ?></label>
<select id="topic_group_id" name="topic_group_id">
<option value="">----</option>
<?php while ( bp_groups() ) : bp_the_group(); ?>
<?php if ( bp_group_is_forum_enabled() && 'public' == bp_get_group_status() ) : ?>
<option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option>
<?php endif; ?>
<?php endwhile; ?>
</select><!-- #topic_group_id -->
<?php do_action( 'groups_forum_new_topic_after' ) ?>
<div class="bp-submit">
<input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ) ?>" />
<input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ) ?>" />
</div>
<?php wp_nonce_field( 'bp_forums_new_topic' ) ?>
</form><!-- #forum-topic-form -->
<?php else : ?>
<div id="message" class="info">
<p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( BP_GROUPS_SLUG . '/create/' ) ) ?></p>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer() ?>
Now – the header has gone wild on the whole site, the buttons at the top right disappear on the WP page for ask-a-question, and NO submit button is showing when logged into the site.
Link: http://www.thechembook.com/ask-a-question/
Any thoughts on what is wrong with the code?
Update: Looking at the source after the page loads – the form is not completing; that is, no </form> is being served.