Exemple #1
0
				<label for="topic_title"><?php 
        _e('Title:', 'buddypress');
        ?>
</label>
				<input type="text" name="topic_title" id="topic_title" value="<?php 
        bp_the_topic_title();
        ?>
" maxlength="100" />

				<label for="topic_text"><?php 
        _e('Content:', 'buddypress');
        ?>
</label>
				<textarea name="topic_text" id="topic_text"><?php 
        bp_the_topic_text();
        ?>
</textarea>

				<label><?php 
        _e('Tags (comma separated):', 'buddypress');
        ?>
</label>
				<input type="text" name="topic_tags" id="topic_tags" value="<?php 
        bp_forum_topic_tag_list();
        ?>
" />

				<?php 
        do_action('bp_group_after_edit_forum_topic');
        ?>
Exemple #2
0
		<?php if ( bp_group_is_member() ) : ?>

			<?php if ( bp_is_edit_topic() ) : ?>

				<div id="edit-topic">

					<?php do_action( 'bp_group_before_edit_forum_topic' ) ?>

					<p><strong><?php _e( 'Edit Topic:', 'buddypress' ) ?></strong></p>

					<label for="topic_title"><?php _e( 'Title:', 'buddypress' ) ?></label>
					<input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title() ?>" />

					<label for="topic_text"><?php _e( 'Content:', 'buddypress' ) ?></label>
					<textarea name="topic_text" id="topic_text"><?php bp_the_topic_text() ?></textarea>

					<?php do_action( 'bp_group_after_edit_forum_topic' ) ?>

					<p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" /></p>

					<?php wp_nonce_field( 'bp_forums_edit_topic' ) ?>

				</div>

			<?php else : ?>

				<div id="edit-post">

					<?php do_action( 'bp_group_before_edit_forum_post' ) ?>