Example #1
0
?>

<p>
	<label for="post_content"><?php 
_e('Post:');
?>
<br />
		<textarea name="post_content" cols="50" rows="8" tabindex="32" id="post_content"><?php 
echo apply_filters('edit_text', get_post_text());
?>
</textarea>
	</label>
</p>

<?php 
if (bb_get_user(get_post_author_id()) && bb_is_subscriptions_active()) {
    ?>
<p id="post-form-subscription-container" class="left">
	<?php 
    bb_user_subscribe_checkbox('tab=33');
    ?>
</p>
<?php 
}
?>

<p class="submit">
	<input type="submit" name="Submit" value="<?php 
esc_attr_e('Edit Post &raquo;');
?>
" tabindex="34" />
add_action('bb_init', 'bb_filter_feed_content');
add_action('init_roles', 'bb_init_roles');
add_filter('map_meta_cap', 'bb_map_meta_cap', 1, 4);
// Actions
add_action('bb_head', 'bb_generator');
add_action('bb_head', 'bb_template_scripts');
add_action('bb_head', 'wp_print_scripts');
add_action('bb_head', 'wp_print_styles');
add_action('bb_head', 'bb_rsd_link');
add_action('bb_head', 'bb_pingback_link');
if ($bb_log->type === 'console') {
    add_action('bb_head', array(&$bb_log, 'console_javascript'));
    add_action('bb_admin_head', array(&$bb_log, 'console_javascript'));
}
add_action('bb_send_headers', 'bb_pingback_header');
add_action('bb_admin_print_scripts', 'wp_print_scripts');
add_action('bb_user_has_no_caps', 'bb_give_user_default_role');
add_action('do_pingbacks', array('BB_Pingbacks', 'send_all'), 10, 1);
add_action('bb_init', 'bb_register_default_views');
add_action('set_current_user', 'bb_apply_wp_role_map_to_user');
add_filter('bb_pre_get_option_gmt_offset', 'wp_timezone_override_offset');
// Subscriptions
if (bb_is_subscriptions_active()) {
    add_action('bb_new_post', 'bb_notify_subscribers');
    add_action('bb_insert_post', 'bb_user_subscribe_checkbox_update');
    add_action('topicmeta', 'bb_user_subscribe_link');
    add_action('edit_form', 'bb_user_subscribe_checkbox');
    add_action('post_form', 'bb_user_subscribe_checkbox');
}
add_action('bb_post-form.php', 'bb_anonymous_post_form');
unset($filters, $filter);
Example #3
0
    ?>
<p id="post-form-forum-container">
	<label for="forum-id"><?php 
    _e('Forum');
    ?>
		<?php 
    bb_new_topic_forum_dropdown('tab=37');
    ?>
	</label>
</p>
<?php 
}
?>

<?php 
if (bb_is_user_logged_in() && bb_is_subscriptions_active()) {
    ?>
<p id="post-form-subscription-container" class="left">
	<?php 
    bb_user_subscribe_checkbox('tab=38');
    ?>
</p>
<?php 
}
?>

<p id="post-form-submit-container" class="submit">
	<input type="submit" id="postformsub" name="Submit" value="<?php 
esc_attr_e('Send Post &raquo;');
?>
" tabindex="39" />