Hi _ck_
I've added an extra field on post form using following code on theme's function.php
if (defined('BACKPRESS_PATH')) {
add_action( 'bb-post.php', 'custom_post_fields');
} else {
add_action( 'bb_post.php', 'custom_post_fields');
}function custom_post_fields() {
global $topic;
$topic_id = $topic->topic_id;
bb_update_topicmeta( $topic_id, 'link', $_POST['link'] );
}function topic_meta($key, $topic_id = 0) {
global $topic;
$topic_id = $topic->topic_id;
return bb_get_topicmeta($topic_id, $key);
}
then I added the following field on post-form.php
<input name="link" type="text" id="link" size="50" maxlength="100" tabindex="34" required="required" />
--------
And it works fine. BUT
Now, I want to allow users to edit this extra custom field on edit form too, if ever they want to edit after submission. what should I do? Can you please give me a solution?
- Thanks!