Jump to content
Sign in to follow this  
AndrewDesigns

Cum fac să-mi afiseze subforumurile pe 3 coloane !?

Recommended Posts

Imagine postată

Pentru ca subforumurile tale sa arate ca in imaginea de mai sus trebuie sa parcurgi urmatorii pasi :
Mergi la:

AdminCP > Look & Feel > (choose skin) > ipb_styles.css

Adauga la sfarsitul CSS-ului:

table.ipb_table ol.subforums1 {margin-top: 3px;float: left;width: 33%;}table.ipb_table ol.subforums1 li{background: url('/forum/public/style_images/marble/subforum_nonew.png') no-repeat 0 50%;padding: 0 15px 0 15px;margin: 0;float: left;}table.ipb_table .subforums1 li.unread { font-weight: bold; background-image: url('/forum/public/style_images/marble/subforum_new.png'); }table.ipb_table ol.subforums2 {width: 33%;overflow: hidden;}table.ipb_table ol.subforums2 li {background: url('/forum/public/style_images/marble/subforum_nonew.png') no-repeat 0 50%;padding: 0 15px 0 15px;margin: 0;float: left;}table.ipb_table .subforums2 li.unread { font-weight: bold; background-image: url('/forum/public/style_images/marble/subforum_new.png'); }table.ipb_table ol.subforums3 {width: 33%;overflow: hidden;}table.ipb_table ol.subforums3 li {background: url('/forum/public/style_images/marble/subforum_nonew.png') no-repeat 0 50%;padding: 0 15px 0 15px;margin: 0;float: left;}table.ipb_table .subforums3 li.unread { font-weight: bold; background-image: url('/forum/public/style_images/marble/subforum_new.png'); }

In codul de mai sus trebuie sa editezi link-urile catre imaginile "subforum_new.png" si "subforum_nonew.png".
Trebuie editat directorul forumului (daca este altul decat "/forum") si directorul cu imaginile temei (in loc de "marble" scrie numele directorului cu imaginile temei tale) !
Daca imaginile "subforum_new.png" si "subforum_nonew.png" au alt nume trebuie editate si ele !

Mergi la:

AdminCP > Look & Feel > (choose skin) > Board Index > boardIndexTemplate


Cauta:

<ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'>												   <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">													  <if test="showSubForumsLit:|:$__data[3]"><li class='unread'><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>


Inlocuieste ce e mai sus cu:

<ol class='ipsList_inline ipsType_small subforums2' id='subforums_{$forum_data['id']}'><foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"></ol> <ol class='ipsList_inline ipsType_small subforums3' id='subforums_{$forum_data['id']}'><if test="showSubForumsLit:|:$__data[3]"><li class='unread'><else /><li></if></foreach></ol> <ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'><foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"></ol> <ol class='ipsList_inline ipsType_small subforums1' id='subforums_{$forum_data['id']}'><if test="showSubForumsLit:|:$__data[3]"><li class='unread'><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>



Daca vrei sa faci aceeasi chestie si in Forum View, mergi la:

AdminCP > Look & Feel > (choose skin) > Forum View > forumIndexTemplate

si fa acelasi lucru ca in boardIndexTemplate !
Numai bine !

Share this post


Link to post
Share on other sites

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...