Status
Not open for further replies.
6 comments
Code:
<div class='category_block block_wrap'>
        <div class='box'><h3 class='maintitle'>{$forum_data['name']} {$this->lang->words['sub_forum_title']}</h3><div class='inset_row inset_padding'>
        <table cellspacing='0' class='ipb_table' summary="{$this->lang->words['cat_subforums']} '{$forum_data['name']}'">
            <tr class='header'>
                <th scope='col' class='col_c_icon'>&nbsp;</th>
                <th scope='col' class='col_c_forum'>{$this->lang->words['cat_name']}</th>
                <th scope='col' class='col_c_stats stats'>{$this->lang->words['forum_stats']}</th>
                <th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
            </tr>
            <!-- / CAT HEADER -->
            
            <foreach loop="subforums:$sub_forum_data as $_data">
                <if test="subforumdata:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
                    {parse striping="catTable" classes="row1,row2"}
                    <foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
                        <if test="isredirect:|:$forum_data['redirect_on']">
                            <tr class='{parse striping="catTable"} redirect_forum'>
                                <td class='altrow forum_icon_idx'>{parse replacement="f_redirect"}<div></div></td>
                                <td>
                                    <h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['goto_forum']}'>{$forum_data['name']}</a></h4>
                                    <p class='desc' style='padding-top: 3px;'>{$forum_data['description']}</p>
                                </td>
                                <td colspan='2'>
                                    {$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}
                                </td>
                            </tr>
                        <else />
                            <tr class='{parse striping="catTable"}'>
                                <td class='altrow forum_icon_idx'>
                                    <a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=forum&amp;forumid={$forum_data['id']}&amp;returntoforumid={$this->request['f']}" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>{parse replacement="{$forum_data['img_new_post']}"}</a>
                                    
                                    <script type='text/javascript'>
                                        ipb.global.registerMarker( 'forum_img_{$forum_data['id']}', "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
                                    </script><div></div>
This is the Thing :) Or i have to add more ?
 
Some More Data
Code:
                                <td>
                                    <h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['goto_forum']}'>{$forum_data['name']}</a></h4>
                                    <p class='desc' style='padding-top: 3px;'>{$forum_data['description']}</p>
                            
                                    <if test="showsubforums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
                                        <h5 class='hide'>{$this->lang->words['subforums']}</h5>
                                        <ol class='subforums' id='subforums_{$forum_data['id']}'>
                                        <foreach loop="sub_subforums:$forum_data['subforums'] as $__id => $__data">
                                            <if test="showSubForumsLit:|:$__data[3]"><li class='newposts'><else /><li></if><a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a></li>
                                        </foreach>
                                        </ol>
                                    </if>
                                    <!-- Skinnote: Clean up queued stuff -->
                                    <if test="seequeuedicon:|:$forum_data['_has_queued_and_can_see_icon']">
                                        <em class='moderated'><a href='{parse url="showforum={$forum_data['id']}&amp;modfilter=all" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['view_unapproved']}'>{parse expression="sprintf( $this->lang->words['f_queued'], $forum_data['queued_topics'], $forum_data['queued_posts'])"}</a></em>
                                    </if>
                                </td>
                                <td class='altrow stats'>
                                    <ul>
                                        <li>{$forum_data['topics']} {$this->lang->words['topics']}</li>
                                        <li>{$forum_data['posts']} {$this->lang->words['replies']}</li>
                                    </ul>
                                </td>
                                <td nowrap='nowrap'>
                                    <ul class='last_post'>
                                        <if test="hidelastinfo:|:$forum_data['hide_last_info']">
                                            <li>{$this->lang->words['f_protected']}</li>
                                        <else />
                                            <li><strong>{$this->lang->words['in_last_topic']} {$forum_data['last_topic_title']}</strong></li>
                                            <li>
                                                {$this->lang->words['forum_by']}
                                                <if test="lastpostername:|:isset($forum_data['last_poster_name']) AND $forum_data['last_poster_name']">
                                                    <if test="lastposterid:|:$forum_data['last_poster_id']">
                                                        <a href='{parse url="showuser={$forum_data['last_poster_id']}" seotitle="{$forum_data['seo_last_name']}" template="showuser" base="public"}'>{$forum_data['last_poster_name']}</a>{parse template="user_popup" group="global" params="$forum_data['last_poster_id'],$forum_data['seo_last_name']"}
                                                    <else />
                                                        {$this->settings['guest_name_pre']}{$forum_data['last_poster_name']}{$this->settings['guest_name_suf']}
                                                    </if>
                                                <else />
                                                    {$this->lang->words['f_none']}
                                                </if>
                                                <span class='topic_date'><a href='{parse url="showtopic={$forum_data['last_id']}&amp;view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="LONG"}</a></span>
                                            </li>
                                        </if>
                                    </ul>
                                </td>
                            </tr>
                        </if>
                    </foreach>
                </if>
            </foreach>
        </table><div class='inset_row inset_padding'>
    </div>

I am using different skin now; animate skin is hidden now.
 
Last edited:
OK to remove subforums like your picture change this:
PHP:
 <if test="showsubforums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
to this:
PHP:
 <if test="showsubforums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND count( $forum_data['subforums'] ) > 1000000 AND $forum_data['show_subforums']">

To give the category the same look as the pic use your class for the Torrents and Download links
in your current skin.
 
Status
Not open for further replies.
Back
Top