Admin area on topic.php – default Kakumei theme
-
The admin functions on the topic.php page (where one can delete, close, stick or move a post) takes up three lines. View source:
<div class="admin">[Stick topic (to front)]
[<form id="topic-move" method="post" action="http://domain/bbpress/topic-move.php">
<fieldset>
<div>
<input type="hidden" name="topic_id" value="5" />
<label for="forum-id">Move to</label>
<select name="forum_id" id="forum-id"">
<option value="4"></option>
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
<option value="5" selected="selected"></option>
</select>
<input type="hidden" id="_wpnonce" name="_wpnonce" value="(number)" /><input type="submit" name="Submit" value="Move" />
</div>
</fieldset>
</form>]</div>
</div>
The first line ends with a ”.
I’ve examined the topics.php page, found the ‘<?php bb_topic_admin(): ?>’, and found the function in bbpress/bb-includes/functions.bb-templates.php.
if ( !$dropdown )return;
$r = $before . ‘<form id=”topic-move” method=”post” action=”‘ . bb_get_uri( ‘bb-admin/topic-move.php’, null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN ) . ‘”>’ . “n”;
$r .= ‘<fieldset>’ . “n”;
$r .= ‘<div>’ . “n”;
$r .= ‘<input type=”hidden” name=”topic_id” value=”‘ . $topic->topic_id . ‘” />’ . “n”;
$r .= ‘<label for=”forum-id”>’. __( ‘Move to’ ) . ‘</label>’ . “n”;
$r .= $dropdown . “n”;
$r .= bb_nonce_field( ‘move-topic_’ . $topic->topic_id, ‘_wpnonce’, true , false );
$r .= ‘<input type=”submit” name=”Submit” value=”‘ . __( ‘Move’ ) . ‘” />’ . “n”;
$r .= ‘</div>’ . “n”;
$r .= ‘</fieldset>’ . “n”;
$r .= ‘</form>’ . $after;
I thought the problem might be the div after the fieldset, so I changed it to span, but that did not correct the problem. I can not read or understand the function.
Is it possible to get the move option on the same line as the delete, close and stick options?
- You must be logged in to reply to this topic.

I’ve downloaded svn packages (I run the Ubuntu distribution of Linux on my computers) and am working through documentation. I’ll get it sooner or later. Thanks!