Organise viewtopic_body individually

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Ideas Centre
User avatar
Thunder86
Registered User
Posts: 104
Joined: Fri Apr 07, 2023 6:21 am

Organise viewtopic_body individually

Post by Thunder86 »

Hey! Is there any extension available which is able to organise the viewforum_body.html?

The standard is:
Subforums,
Announcements
Topics

I would prefer:

Announcements,
Subforums
Topics
Last edited by Thunder86 on Sun Jun 30, 2024 6:06 pm, edited 2 times in total.
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3626
Joined: Wed Oct 27, 2004 11:35 pm
Name: William

Re: Organise viewtopic_body individually

Post by bonelifer »

From your description I assume you meant viewforum_body.html:

Code: Select all

<!-- INCLUDE overall_header.html -->
<!-- EVENT viewforum_forum_title_before -->
<h2 class="forum-title"><!-- EVENT viewforum_forum_name_prepend --><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a><!-- EVENT viewforum_forum_name_append --></h2>
<!-- EVENT viewforum_forum_title_after -->

<!-- IF FORUM_DESC or MODERATORS or U_MCP -->
<div>
    <!-- IF FORUM_DESC --><div style="display: none !important;">{FORUM_DESC}<br /></div><!-- ENDIF -->
    <!-- IF MODERATORS --><p><strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->{L_COLON}</strong> {MODERATORS}</p><!-- ENDIF -->
</div>
<!-- ENDIF -->

<!-- IF S_FORUM_RULES -->
<div class="rules<!-- IF U_FORUM_RULES --> rules-link<!-- ENDIF -->">
    <div class="inner">
        <!-- IF U_FORUM_RULES -->
        <a href="{U_FORUM_RULES}">{L_FORUM_RULES}</a>
        <!-- ELSE -->
        <strong>{L_FORUM_RULES}</strong><br />
        {FORUM_RULES}
        <!-- ENDIF -->
    </div>
</div>
<!-- ENDIF -->

<!-- IF .topicrow and not S_DISPLAY_ACTIVE -->
<div class="forumbg announcement">
    <div class="inner">
        <ul class="topiclist">
            <li class="header">
                <dl class="row-item">
                    <dt><div class="list-inner">{L_ANNOUNCEMENTS}</div></dt>
                    <dd class="posts">{L_REPLIES}</dd>
                    <dd class="views">{L_VIEWS}</dd>
                    <dd class="lastpost"><span>{L_LAST_POST}</span></dd>
                </dl>
            </li>
        </ul>
        <ul class="topiclist topics">
            <!-- BEGIN topicrow -->
            <!-- IF topicrow.S_POST_ANNOUNCE or topicrow.S_POST_GLOBAL -->
            <li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF -->">
                <dl class="row-item {topicrow.TOPIC_IMG_STYLE}">
                    <dt title="{topicrow.TOPIC_FOLDER_IMG_ALT}">
                        <div class="list-inner">
                            <a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
                            <br />
                            {L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} &raquo; <time datetime="{topicrow.FIRST_POST_TIME_RFC3339}">{topicrow.FIRST_POST_TIME}</time>
                        </div>
                    </dt>
                    <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                    <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
                    <dd class="lastpost">
                        <span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
                            <br /><time datetime="{topicrow.LAST_POST_TIME_RFC3339}">{topicrow.LAST_POST_TIME}</time>
                        </span>
                    </dd>
                </dl>
            </li>
            <!-- ENDIF -->
            <!-- END topicrow -->
        </ul>
    </div>
</div>
<!-- ENDIF -->

<!-- IF S_HAS_SUBFORUM -->
<!-- IF not S_IS_BOT and U_MARK_FORUMS -->
<div class="action-bar compact">
    <a href="{U_MARK_FORUMS}" class="mark-read rightside" data-ajax="mark_forums_read">{L_MARK_SUBFORUMS_READ}</a>
</div>
<!-- ENDIF -->
<!-- INCLUDE forumlist_body.html -->
<!-- ENDIF -->

<!-- IF .topicrow and not S_DISPLAY_ACTIVE -->
<div class="forumbg">
    <div class="inner">
        <ul class="topiclist">
            <li class="header">
                <dl class="row-item">
                    <dt><div class="list-inner">{L_TOPICS}</div></dt>
                    <dd class="posts">{L_REPLIES}</dd>
                    <dd class="views">{L_VIEWS}</dd>
                    <dd class="lastpost"><span>{L_LAST_POST}</span></dd>
                </dl>
            </li>
        </ul>
        <ul class="topiclist topics">
            <!-- BEGIN topicrow -->
            <!-- IF not topicrow.S_POST_ANNOUNCE and not topicrow.S_POST_GLOBAL -->
            <li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF -->">
                <dl class="row-item {topicrow.TOPIC_IMG_STYLE}">
                    <dt title="{topicrow.TOPIC_FOLDER_IMG_ALT}">
                        <div class="list-inner">
                            <a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
                            <br />
                            {L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} &raquo; <time datetime="{topicrow.FIRST_POST_TIME_RFC3339}">{topicrow.FIRST_POST_TIME}</time>
                        </div>
                    </dt>
                    <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                    <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
                    <dd class="lastpost">
                        <span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
                            <br /><time datetime="{topicrow.LAST_POST_TIME_RFC3339}">{topicrow.LAST_POST_TIME}</time>
                        </span>
                    </dd>
                </dl>
            </li>
            <!-- ENDIF -->
            <!-- END topicrow -->
        </ul>
    </div>
</div>
<!-- ENDIF -->

<!-- IF S_DISPLAY_POST_INFO or .pagination or TOTAL_POSTS or TOTAL_TOPICS -->
<div class="action-bar bar-top">

    <!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
    <!-- EVENT viewforum_buttons_top_before -->

    <a href="{U_POST_NEW_TOPIC}" class="button" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->">
        <!-- IF S_IS_LOCKED -->
        <span>{L_BUTTON_FORUM_LOCKED}</span> <i class="icon fa-lock fa-fw" aria-hidden="true"></i>
        <!-- ELSE -->
        <span>{L_BUTTON_NEW_TOPIC}</span> <i class="icon fa-pencil fa-fw" aria-hidden="true"></i>
        <!-- ENDIF -->
    </a>
    <!-- EVENT viewforum_buttons_top_after -->
    <!-- ENDIF -->

    <!-- IF S_DISPLAY_SEARCHBOX -->
    <div class="search-box" role="search">
        <form method="get" id="forum-search" action="{S_SEARCHBOX_ACTION}">
            <fieldset>
                <input class="inputbox search tiny" type="search" name="keywords" id="search_keywords" size="20" placeholder="{L_SEARCH_FORUM}" />
                <button class="button button-search" type="submit" title="{L_SEARCH}">
                    <i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">{L_SEARCH}</span>
                </button>
                <a href="{U_SEARCH_FORUM}" class="button button-search-end" title="{L_SEARCH_ADV}">
                    <i class="icon fa-cog fa-fw" aria-hidden="true"></i><span class="sr-only">{L_SEARCH_ADV}</span>
                </a>
                {S_SEARCH_LOCAL_HIDDEN_FIELDS}
            </fieldset>
        </form>
    </div>
    <!-- ENDIF -->

    <div class="pagination">
        <!-- IF not S_IS_BOT and U_MARK_TOPICS and .topicrow --><a href="{U_MARK_TOPICS}" class="mark" accesskey="m" data-ajax="mark_topics_read">{L_MARK_TOPICS_READ}</a> &bull; <!-- ENDIF -->
        {TOTAL_TOPICS}
        <!-- IF .pagination -->
        <!-- INCLUDE pagination.html -->
        <!-- ELSE -->
        &bull; {PAGE_NUMBER}
        <!-- ENDIF -->
    </div>

</div>
<!-- ENDIF -->

<!-- IF S_NO_READ_ACCESS -->
<div class="panel">
    <div class="inner">
        <strong>{L_NO_READ_ACCESS}</strong>
    </div>
</div>
<!-- ENDIF -->

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
<form action="{S_LOGIN_ACTION}" method="post">
    <div class="panel">
        <div class="inner">
            <div class="content">
                <h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
            </div>
        </div>
    </div>
    {S_LOGIN_REDIRECT}
</form>
<!-- ENDIF -->

<!-- EVENT viewforum_body_markforums_after -->

<!-- INCLUDE overall_footer.html -->
William Jacoby - Community Team
Knowledge Base | phpBB Board Rules | Search Customisation Database
Please don't contact me via PM or email for phpBB support .

phpBB Modders is looking for developers! If you have phpBB experience and want to join us, click here!
User avatar
Thunder86
Registered User
Posts: 104
Joined: Fri Apr 07, 2023 6:21 am

Re: Organise viewtopic_body individually

Post by Thunder86 »

Perfect! Is there no extension available ? If so, I will change the html file
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3626
Joined: Wed Oct 27, 2004 11:35 pm
Name: William

Re: Organise viewtopic_body individually

Post by bonelifer »

Will see what I can do.
William Jacoby - Community Team
Knowledge Base | phpBB Board Rules | Search Customisation Database
Please don't contact me via PM or email for phpBB support .

phpBB Modders is looking for developers! If you have phpBB experience and want to join us, click here!
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3626
Joined: Wed Oct 27, 2004 11:35 pm
Name: William

Re: Organise viewtopic_body individually

Post by bonelifer »

Thunder86 wrote: Sun Jun 30, 2024 6:07 pm Perfect! Is there no extension available ? If so, I will change the html file
Here it is as a style. Set your current style in the styles.cfg file and make prosilver_custom your default style. The viewforum_body.html file will override the one in the parent.

Style: https://github.com/phpbbmodders/prosilv ... /tree/main
William Jacoby - Community Team
Knowledge Base | phpBB Board Rules | Search Customisation Database
Please don't contact me via PM or email for phpBB support .

phpBB Modders is looking for developers! If you have phpBB experience and want to join us, click here!

Return to “Extension Requests”