FluxBB.org

Changeset 732

Show
Ignore:
Timestamp:
11/13/08 23:10:52 (8 weeks ago)
Author:
Paul
Message:

See note to r.719

Somebody needs to start reviewing the hooks in the changed files (r.719 onwards). There won't be any other substantive updates of these files so its safe to do the final hook placements.

Location:
fluxbb/branches/fluxbb-1.3-dev/upload
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/misc.php

    r656 r732  
    3838'Moderate forum'                        =>      'Moderate forum', 
    3939'Select'                                        =>      'Select',       // the header of a column of checkboxes 
     40'Cannot select'                         =>      'You cannot select the first post', 
    4041'Move'                                          =>      'Move', 
    4142'Merge'                                         =>      'Merge', 
     
    5758'Delete topic'                          =>      'Delete topic', 
    5859'Delete topics'                         =>      'Delete topics', 
     60'Select all forums title'       =>      'Select all forums on this page.', 
    5961'To new forum'                          =>      'to a new forum', 
    6062'Move to'                                       =>      'Destination forum:', 
  • fluxbb/branches/fluxbb-1.3-dev/upload/moderate.php

    r681 r732  
    115115        if ($tid < 1) 
    116116                message($lang_common['Bad request']); 
    117          
     117 
    118118        $forum_page['page'] = (!isset($_GET['p']) || $_GET['p'] <= 1) ? 1 : intval($_GET['p']); 
    119          
     119 
    120120        // Check for use of incorrect URLs 
    121121        confirm_current_url($forum_page['page'] == 1 ? forum_link($forum_url['moderate_topic'], array($fid, $tid)) : forum_sublink($forum_url['moderate_topic'], $forum_url['page'], $forum_page['page'], array($fid, $tid))); 
     
    144144                ($hook = get_hook('mr_delete_posts_form_submitted')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    145145 
     146                unset($forum_page['page']); 
     147 
    146148                $posts = isset($_POST['posts']) && !empty($_POST['posts']) ? $_POST['posts'] : array(); 
    147149                $posts = array_map('intval', (is_array($posts) ? $posts : explode(',', $posts))); 
     
    192194 
    193195                // Setup form 
    194                 $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0; 
     196                $forum_page['fld_count'] = 0; 
    195197                $forum_page['form_action'] = forum_link($forum_url['moderate_topic'], array($fid, $tid)); 
    196198 
     
    208210                ); 
    209211 
     212                // Setup main heading 
     213                $forum_page['main_hd'] = end($forum_page['crumbs']); 
     214 
    210215                ($hook = get_hook('mr_confirm_delete_posts_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    211216 
     
    213218                require FORUM_ROOT.'header.php'; 
    214219 
    215                 // START SUBST - <!-- forum_main --> 
     220                // START SUBST - <!-- forum_main_content --> 
    216221                ob_start(); 
    217222 
     
    219224 
    220225?> 
    221         <div class="main-content main-frm"> 
    222                 <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 
     226        <div class="content"> 
     227                <div class="section section-1 datafrm"> 
     228                <form method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 
    223229                        <div class="hidden"> 
    224230                                <?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?> 
    225231                        </div> 
    226 <?php ($hook = get_hook('mr_confirm_delete_posts_pre_fieldset')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    227                         <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>"> 
    228                                 <legend class="group-legend"><strong><?php echo $lang_misc['Delete posts'] ?></strong></legend> 
     232<?php ($hook = get_hook('mr_confirm_delete_posts_pre_group')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     233                        <div class="frm-group frm-group-1"> 
    229234<?php ($hook = get_hook('mr_confirm_delete_posts_pre_confirm_checkbox')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    230                                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 
     235                                <div class="sf-set frm-set frm-set-1"> 
    231236                                        <div class="sf-box checkbox"> 
    232237                                                <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="req_confirm" value="1" checked="checked" /></span> 
    233                                                 <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_common['Please confirm'] ?></span> <?php echo $lang_misc['Confirm post delete'] ?>.</label> 
     238                                                <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_common['Please confirm'] ?></span> <br /><small><?php echo $lang_misc['Confirm post delete'] ?></small></label> 
    234239                                        </div> 
    235240                                </div> 
    236 <?php ($hook = get_hook('mr_confirm_delete_posts_pre_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     241<?php ($hook = get_hook('mr_confirm_delete_posts_pre_group_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    237242                        </fieldset> 
    238 <?php ($hook = get_hook('mr_confirm_delete_posts_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     243<?php ($hook = get_hook('mr_confirm_delete_posts_group_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    239244                        <div class="frm-buttons"> 
    240                                 <span class="submit"><input type="submit" name="delete_posts_comply" value="<?php echo $lang_common['Delete'] ?>" /></span> 
    241                                 <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span> 
     245                                <p class="frm-actions"><span class="submit"><input type="submit" name="delete_posts_comply" value="<?php echo $lang_common['Delete'] ?>" /></span> <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span></p> 
    242246                        </div> 
    243247                </form> 
     248                </div> 
    244249        </div> 
    245250<?php 
     
    250255 
    251256                $tpl_temp = forum_trim(ob_get_contents()); 
    252                 $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main); 
     257                $tpl_main = str_replace('<!-- forum_main_content -->', $tpl_temp, $tpl_main); 
    253258                ob_end_clean(); 
    254                 // END SUBST - <!-- forum_main --> 
     259                // END SUBST - <!-- forum_main_content --> 
    255260 
    256261                require FORUM_ROOT.'footer.php'; 
     
    259264        { 
    260265                ($hook = get_hook('mr_split_posts_form_submitted')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     266 
     267                unset($forum_page['page']); 
    261268 
    262269                $posts = isset($_POST['posts']) && !empty($_POST['posts']) ? $_POST['posts'] : array(); 
     
    340347 
    341348                // Setup form 
    342                 $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0; 
     349                $forum_page['fld_count'] = 0; 
    343350                $forum_page['form_action'] = forum_link($forum_url['moderate_topic'], array($fid, $tid)); 
    344351 
     
    356363                ); 
    357364 
     365                // Setup main heading 
     366                $forum_page['main_hd'] = end($forum_page['crumbs']); 
     367 
    358368                ($hook = get_hook('mr_confirm_split_posts_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    359369 
     
    361371                require FORUM_ROOT.'header.php'; 
    362372 
    363                 // START SUBST - <!-- forum_main --> 
     373                // START SUBST - <!-- forum_main_content --> 
    364374                ob_start(); 
    365375 
     
    367377 
    368378?> 
    369         <div class="main-content main-frm"> 
    370                 <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 
     379        <div class="content"> 
     380                <div class="content content-1 datafrm"> 
     381                <form method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 
    371382                        <div class="hidden"> 
    372383                                <?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?> 
    373384                        </div> 
    374385<?php ($hook = get_hook('mr_confirm_split_posts_pre_fieldset')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    375                         <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>"> 
    376                                 <legend class="group-legend"><strong><?php echo $lang_misc['Split posts'] ?></strong></legend> 
    377                                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 
     386                        <div class="frm-group frm-group-1"> 
     387                                <div class="sf-set frm-set frm-set-1"> 
    378388<?php ($hook = get_hook('mr_confirm_split_posts_pre_subject')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    379389                                        <div class="sf-box text required"> 
     
    381391                                                <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="new_subject" value="" size="80" maxlength="70" /></span> 
    382392                                        </div> 
     393                                </div> 
    383394<?php ($hook = get_hook('mr_confirm_split_posts_pre_confirm_checkbox')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     395                                <div class="sf-set frm-set"> 
    384396                                        <div class="sf-box checkbox"> 
    385397                                                <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="req_confirm" value="1" checked="checked" /></span> 
     
    388400                                </div> 
    389401<?php ($hook = get_hook('mr_confirm_split_posts_pre_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    390                         </fieldset> 
     402                        </div> 
    391403<?php ($hook = get_hook('mr_confirm_split_posts_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    392404                        <div class="frm-buttons"> 
    393                                 <span class="submit"><input type="submit" name="split_posts_comply" value="<?php echo $lang_common['Split'] ?>" /></span> 
    394                                 <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span> 
     405                                <p class="frm-actions"><span class="submit"><input type="submit" name="split_posts_comply" value="<?php echo $lang_common['Split'] ?>" /></span> <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span></p> 
    395406                        </div> 
    396407                </form> 
     408                </div> 
    397409        </div> 
    398410<?php 
     
    403415 
    404416                $tpl_temp = forum_trim(ob_get_contents()); 
    405                 $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main); 
     417                $tpl_main = str_replace('<!-- forum_main_content -->', $tpl_temp, $tpl_main); 
    406418                ob_end_clean(); 
    407                 // END SUBST - <!-- forum_main --> 
     419                // END SUBST - <!-- forum_main_content --> 
    408420 
    409421                require FORUM_ROOT.'footer.php'; 
     
    424436        $forum_page['start_from'] = $forum_user['disp_posts'] * ($forum_page['page'] - 1); 
    425437        $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_posts']), ($cur_topic['num_replies'] + 1)); 
    426         $forum_page['items_info'] = generate_items_info($lang_misc['Posts'], ($forum_page['start_from'] + 1), ($cur_topic['num_replies'] + 1)); 
    427438 
    428439        // Generate paging links 
     
    456467 
    457468        // Setup main heading 
    458         $forum_page['main_head'] = sprintf($lang_misc['Moderate topic head'], forum_htmlencode($cur_topic['subject'])); 
    459  
    460         if ($forum_page['num_pages'] > 1) 
    461                 $forum_page['main_head_pages'] = sprintf($lang_common['Page info'], $forum_page['page'], $forum_page['num_pages']); 
     469        $forum_page['main_hd'] = sprintf($lang_misc['Moderate topic head'], '<a class="permalink" href="'.forum_link($forum_url['topic'], array($tid, sef_friendly($cur_topic['subject']))).'" rel="bookmark" title="'.$lang_topic['Permalink topic'].'">'.forum_htmlencode($cur_topic['subject']).'</a>'); 
    462470 
    463471        ($hook = get_hook('mr_post_actions_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     
    472480 
    473481?> 
    474         <div class="main-pagehead"> 
    475                 <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2> 
    476         </div> 
    477482        <form id="mr-post-actions-form" class="newform" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 
    478         <div class="main-content main-topic"> 
    479                 <div class="hidden"> 
    480                         <input type="hidden" name="csrf_token" value="<?php echo generate_form_token($forum_page['form_action']) ?>" /> 
    481                 </div> 
    482  
     483        <div class="content topic"> 
     484                <div class="setion section-1 posts"> 
     485                        <div class="hidden"> 
     486                                <input type="hidden" name="csrf_token" value="<?php echo generate_form_token($forum_page['form_action']) ?>" /> 
     487                        </div> 
     488                        <div class="section-hd"> 
     489                                <h2 class="hn"><span><?php echo $lang_topic['Posts'] ?></span></h2> 
     490                        </div> 
    483491<?php 
    484492 
     
    516524 
    517525                $forum_page['post_ident'] = array(); 
    518                 $forum_page['message'] = array(); 
    519526                $forum_page['author_title'] = ''; 
    520527                $forum_page['user_ident'] = array(); 
    521528                $cur_post['username'] = $cur_post['poster']; 
     529                $forum_page['post_options'] = array(); 
     530                $forum_page['post_actions'] = array(); 
     531                $forum_page['message'] = array(); 
    522532 
    523533                // Generate the post heading 
     
    533543                ($hook = get_hook('mr_row_pre_item_ident_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    534544 
     545                // Generate author identification 
     546                $forum_page['user_ident']['username'] = '<li class="username">'.(($cur_post['poster_id'] > '1') ? '<a title="'.sprintf($lang_topic['Go to profile'], forum_htmlencode($cur_post['username'])).'" href="'.forum_link($forum_url['user'], $cur_post['poster_id']).'">'.forum_htmlencode($cur_post['username']).'</a>' : '<strong>'.forum_htmlencode($cur_post['username']).'</strong>').'</li>'; 
     547                $forum_page['user_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($cur_post).'</span></li>'; 
     548 
    535549                // Generate the checkbox field 
    536550                if ($cur_post['id'] != $cur_topic['first_post_id']) 
    537                         $forum_page['item_select'] = '<p class="item-select"><input type="checkbox" id="fld'.$cur_post['id'].'" name="posts[]" value="'.$cur_post['id'].'" /> <label for="fld'.$cur_post['id'].'">'.$lang_misc['Select post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</label></p>'; 
    538  
    539                 // Generate author identification 
    540                 $forum_page['author_ident']['username'] = '<li class="username">'.(($cur_post['poster_id'] > '1') ? '<a title="'.sprintf($lang_topic['Go to profile'], forum_htmlencode($cur_post['username'])).'" href="'.forum_link($forum_url['user'], $cur_post['poster_id']).'">'.forum_htmlencode($cur_post['username']).'</a>' : '<strong>'.forum_htmlencode($cur_post['username']).'</strong>').'</li>'; 
    541                 $forum_page['author_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($cur_post).'</span></li>'; 
     551                        $forum_page['post_actions']['select'] = '<span class="select-post"><input type="checkbox" id="fld'.$cur_post['id'].'" name="posts[]" value="'.$cur_post['id'].'" /> <label for="fld'.$cur_post['id'].'">'.$lang_misc['Select post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</label></span>'; 
     552                else 
     553                        $forum_page['post_actions']['no_select'] = '<span class="noselect-post">'.$lang_misc['Cannot select'].'</span>'; 
     554 
     555                if (!empty($forum_page['post_actions'])) 
     556                        $forum_page['post_options']['actions'] = '<p class="post-actions">'.implode(' ', $forum_page['post_actions']).'</p>'; 
    542557 
    543558                // Give the post some class 
    544559                $forum_page['item_status'] = array( 
    545560                        'post', 
    546                         ($forum_page['item_count'] % 2 != 0) ? 'odd' : 'even' 
     561                        ($forum_page['item_count'] % 2 != 0) ? 'oddpost' : 'evenpost' 
    547562                ); 
    548563 
     
    577592                        <div class="<?php echo implode(' ', $forum_page['item_status']) ?>"> 
    578593                                <div id="p<?php echo $cur_post['id'] ?>" class="posthead"> 
    579                                         <h3 class="hn post-ident"><?php echo implode(' ', $forum_page['post_ident']) ?></h3> 
    580 <?php ($hook = get_hook('mr_post_actions_pre_item_select')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    581 <?php if (isset($forum_page['item_select'])) echo "\t\t\t\t".$forum_page['item_select']."\n" ?> 
     594                                        <div class="post-ident"> 
     595                                                <h3 class="hn"><?php echo implode(' ', $forum_page['post_ident']) ?></h3> 
    582596<?php ($hook = get_hook('mr_post_actions_new_post_head_option')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     597                                        </div> 
    583598                                </div> 
    584599                                <div class="postbody"> 
    585                                         <div class="post-author"> 
    586                                                 <ul class="author-ident"> 
    587                                                         <?php echo implode("\n\t\t\t\t\t\t", $forum_page['author_ident'])."\n" ?> 
    588                                                 </ul> 
     600                                        <div class="post-content"> 
     601                                                <div class="post-user"> 
     602                                                        <ul class="user-ident"> 
     603                                                                <?php echo implode("\n\t\t\t\t\t\t\t", $forum_page['user_ident'])."\n" ?> 
     604                                                        </ul> 
    589605<?php ($hook = get_hook('mr_post_actions_new_user_ident_data')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    590                                         </div> 
    591                                         <div class="post-entry"> 
    592                                                 <h4 class="entry-title"><?php echo $forum_page['item_subject'] ?></h4> 
    593                                                 <div class="entry-content"> 
    594                                                         <?php echo implode("\n\t\t\t\t\t\t\t", $forum_page['message'])."\n" ?> 
    595606                                                </div> 
     607                                                <div class="post-entry"> 
     608                                                        <h4 class="entry-title"><?php echo $forum_page['item_subject'] ?></h4> 
     609                                                        <div class="entry-content"> 
     610                                                                <?php echo implode("\n\t\t\t\t\t\t\t\t", $forum_page['message'])."\n" ?> 
     611                                                        </div> 
    596612<?php ($hook = get_hook('mr_post_actions_new_post_entry_data')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     613                                                </div> 
    597614                                        </div> 
    598615                                </div> 
    599                         </div> 
     616<?php if (!empty($forum_page['post_options'])): ?>                              <div class="postfoot"> 
     617                                        <div class="post-options"> 
     618                                                <?php echo implode("\n\t\t\t\t\t\t", $forum_page['post_options'])."\n" ?> 
     619                                        </div> 
     620                                </div> 
     621<?php endif; ?>                 </div> 
    600622<?php 
    601623 
     
    603625 
    604626?> 
     627                </div> 
    605628        </div> 
    606629<?php 
     
    614637 
    615638?> 
    616         <div class="main-options mod-options gen-content"> 
    617                 <p id="select-all"><a href="#" onclick="return Forum.toggleCheckboxes(document.getElementById('mr-post-actions-form'))"><?php echo $lang_misc['Select all'] ?></a></p> 
    618                 <p class="options"><?php echo implode(' ', $forum_page['mod_options']) ?></p> 
     639        <div id="mod-options" class="main-options"> 
     640                <h2 class="hn"><span><?php echo $lang_topic['Moderator options'] ?></span></h2> 
     641                <p class="options"><span id="select-all"><a href="#" onclick="return Forum.toggleCheckboxes(document.getElementById('mr-post-actions-form'))"><?php echo $lang_misc['Select all'] ?></a></span> <?php echo implode(' ', $forum_page['mod_options']) ?></p> 
    619642        </div> 
    620643        </form> 
     
    626649 
    627650        $tpl_temp = forum_trim(ob_get_contents()); 
    628         $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main); 
     651        $tpl_main = str_replace('<!-- forum_main_content -->', $tpl_temp, $tpl_main); 
    629652        ob_end_clean(); 
    630653        // END SUBST - <!-- forum_main --> 
     
    641664                // Check for use of incorrect URLs 
    642665                confirm_current_url(forum_link($forum_url['moderate_forum'], $fid)); 
    643                  
     666 
    644667                ($hook = get_hook('mr_confirm_move_topics_form_submitted')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    645668 
     
    739762                // Check for use of incorrect URLs 
    740763                confirm_current_url(forum_link($forum_url['moderate_forum'], $fid)); 
    741                  
     764 
    742765                $topics = isset($_POST['topics']) && is_array($_POST['topics']) ? $_POST['topics'] : array(); 
    743766                $topics = array_map('intval', $topics); 
     
    754777                if ($topics < 1) 
    755778                        message($lang_common['Bad request']); 
    756                  
     779 
    757780                // Check for use of incorrect URLs 
    758781                confirm_current_url(forum_link($forum_url['move'], array($fid, $topics))); 
    759782        } 
    760          
     783 
    761784        if (is_array($topics)) 
    762785        { 
     
    813836 
    814837        // Setup form 
    815         $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0; 
     838        $forum_page['fld_count'] = 0; 
    816839        $forum_page['form_action'] = forum_link($forum_url['moderate_forum'], $fid); 
    817840 
     
    831854 
    832855        //Setup main heading 
    833         $forum_page['main_head'] = end($forum_page['crumbs']).' '.$lang_misc['To new forum']; 
     856        $forum_page['main_hd'] = end($forum_page['crumbs']).' '.$lang_misc['To new forum']; 
    834857 
    835858        ($hook = get_hook('mr_move_topics_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     
    838861        require FORUM_ROOT.'header.php'; 
    839862 
    840         // START SUBST - <!-- forum_main --> 
     863        // START SUBST - <!-- forum_main_content --> 
    841864        ob_start(); 
    842865 
     
    844867 
    845868?> 
    846         <div class="main-content main-frm"> 
     869        <div class="content"> 
     870                <div class="section section-1 datafrm"> 
    847871                <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 
    848872                        <div class="hidden"> 
    849873                                <?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?> 
    850874                        </div> 
    851 <?php ($hook = get_hook('mr_move_topics_pre_fieldset')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    852                         <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>"> 
    853                                 <legend class="group-legend"><strong><?php echo $lang_misc['Move topic'] ?></strong></legend> 
     875<?php ($hook = get_hook('mr_move_topics_pre_group')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     876                        <div class="frm-group frm-group-1"> 
    854877<?php ($hook = get_hook('mr_move_topics_pre_move_to_forum')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    855                                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 
     878                                <div class="sf-set frm-set frm-set-1"> 
    856879                                        <div class="sf-box select"> 
    857880                                                <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_misc['Move to'] ?></span></label><br /> 
     
    881904                                </div> 
    882905<?php ($hook = get_hook('mr_move_topics_pre_redirect_checkbox')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    883                                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 
     906                                <div class="sf-set frm-set"> 
    884907                                        <div class="sf-box checkbox"> 
    885908                                                <span class="fld-input"><input type="checkbox" id="fld<?php echo (++$forum_page['fld_count']) ?>" name="with_redirect" value="1"<?php if ($action == 'single') echo ' checked="checked"' ?> /></span> 
    886                                                 <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_misc['Redirect topic'] ?></span> <?php echo ($action == 'single') ? $lang_misc['Leave redirect'] : $lang_misc['Leave redirects'] ?></label> 
     909                                                <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_misc['Redirect topic'] ?></span> <br /><small><?php echo ($action == 'single') ? $lang_misc['Leave redirect'] : $lang_misc['Leave redirects'] ?></small></label> 
    887910                                        </div> 
    888911                                </div> 
    889912<?php ($hook = get_hook('mr_move_topics_pre_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    890                         </fieldset> 
     913                        </div> 
    891914<?php ($hook = get_hook('mr_move_topics_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    892915                        <div class="frm-buttons"> 
    893                                 <span class="submit"><input type="submit" name="move_topics_to" value="<?php echo $lang_misc['Move'] ?>" /></span> 
    894                                 <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span> 
     916                                <p class="frm-actions"><span class="submit"><input type="submit" name="move_topics_to" value="<?php echo $lang_misc['Move'] ?>" /></span> <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span></p> 
    895917                        </div> 
    896918                </form> 
     919                </div> 
    897920        </div> 
    898921<?php 
     
    903926 
    904927        $tpl_temp = forum_trim(ob_get_contents()); 
    905         $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main); 
     928        $tpl_main = str_replace('<!-- forum_main_content -->', $tpl_temp, $tpl_main); 
    906929        ob_end_clean(); 
    907         // END SUBST - <!-- forum_main --> 
     930        // END SUBST - <!-- forum_main_content --> 
    908931 
    909932        require FORUM_ROOT.'footer.php'; 
     
    10041027 
    10051028        // Setup form 
    1006         $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0; 
     1029        $forum_page['fld_count'] = 0; 
    10071030        $forum_page['form_action'] = forum_link($forum_url['moderate_forum'], $fid); 
    10081031