Topic: Location, registered, post count topic view order

Would below be correct way rearranging location, registered, post count topic view order.

From (location, registered, post count)

// Generate author information
        if ($cur_post['poster_id'] > 1)
        {
            if ($forum_config['o_show_user_info'] == '1')
            {
                if ($cur_post['location'] != '')
                {
                    if ($forum_config['o_censoring'] == '1')
                        $cur_post['location'] = censor_words($cur_post['location']);

                    $forum_page['author_info']['from'] = '<li><span>'.$lang_topic['From'].' <strong>'.forum_htmlencode($cur_post['location']).'</strong></span></li>';
                }

                $forum_page['author_info']['registered'] = '<li><span>'.$lang_topic['Registered'].' <strong>'.format_time($cur_post['registered'], 1).'</strong></span></li>';

                if ($forum_config['o_show_post_count'] == '1' || $forum_user['is_admmod'])
                    $forum_page['author_info']['posts'] = '<li><span>'.$lang_topic['Posts info'].' <strong>'.forum_number_format($cur_post['num_posts']).'</strong></span></li>';
            }

            if ($forum_user['is_admmod'])
            {
                if ($cur_post['admin_note'] != '')
                    $forum_page['author_info']['note'] = '<li><span>'.$lang_topic['Note'].' <strong>'.forum_htmlencode($cur_post['admin_note']).'</strong></span></li>';
            }
        }
    }

To (where now its post count, registered, location)

// Generate author information
        if ($cur_post['poster_id'] > 1)
        {
            if ($forum_config['o_show_user_info'] == '1')
            {
                if ($cur_post['location'] != '')
                {
                    if ($forum_config['o_censoring'] == '1')
                        $cur_post['location'] = censor_words($cur_post['location']);
                        
                    if ($forum_config['o_show_post_count'] == '1' || $forum_user['is_admmod'])
                    $forum_page['author_info']['posts'] = '<li><span>'.$lang_topic['Posts info'].' <strong>'.forum_number_format($cur_post['num_posts']).'</strong></span></li>';
                    }

                $forum_page['author_info']['registered'] = '<li><span>'.$lang_topic['Registered'].' <strong>'.format_time($cur_post['registered'], 1).'</strong></span></li>';

                $forum_page['author_info']['from'] = '<li><span>'.$lang_topic['From'].' <strong>'.forum_htmlencode($cur_post['location']).'</strong></span></li>';
                }

            if ($forum_user['is_admmod'])
            {
                if ($cur_post['admin_note'] != '')
                    $forum_page['author_info']['note'] = '<li><span>'.$lang_topic['Note'].' <strong>'.forum_htmlencode($cur_post['admin_note']).'</strong></span></li>';
            }
        }
    }

Never messed with PunBB code before and I wanted to make sure I did that right... appears to work.
View http://www.genmb.com/topic/1/test-post/

Would appreciate something, thanks.

Signature

Re: Location, registered, post count topic view order

Yes, everything is fine. The displaying order of these fields  depends on the order in which you add new elements  to the $forum_page['author_info'] array.

Re: Location, registered, post count topic view order

Thanks for responding Slavok.

PunBB code is different then what I'm used too.

Signature