Skocz do zawartości

[resources.invisionpower.com - pliki] Skinning > Adding Topic Markers to LoFi skin


Rekomendowane odpowiedzi

Opublikowano

To add topic markers to the LoFi skin, make these 3 changes to your lofi skin:

In boardIndexTemplate

Find

                                  <li>
                                   <h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$forum_data['name']}</a> <span class='desc'>( {$forum_data['topics']} {$this->lang->words['topics']} / {$forum_data['posts']} {$this->lang->words['replies']} )</span></h4>
                                   <if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
                                       <h4 class='hide'>{$this->lang->words['subforums']}</h4>
                                       <ol class='subforums'>
                                       <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
                                           <li><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>

Replace With

                              <li><h4>
                                           <if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
                                               <a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}&i=1" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>
                                                   {parse replacement="{$forum_data['img_new_post']}"}
                                               </a>


                                           <else />
                                               {parse replacement="{$forum_data['img_new_post']}"}
                                           </if>

                                   <a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$forum_data['name']}</a> <span class='desc'>( {$forum_data['topics']} {$this->lang->words['topics']} / {$forum_data['posts']} {$this->lang->words['replies']} )</span></h4>
                                           <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'>
                                               <foreach loop="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>

In forumIndexTemplate

Find

<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> <span class='desc'>( {$forum_data['topics']} {$this->lang->words['topics']} / {$forum_data['posts']} {$this->lang->words['replies']} )</h4>

Replace With

<h4><a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&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 + "{$forum_data['id']}" );
                                   </script>


<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> <span class='desc'>( {$forum_data['topics']} {$this->lang->words['topics']} / {$forum_data['posts']} {$this->lang->words['replies']} )</h4>

In ipb_style.css

Find

ol.lofi_list.lofi_blogs {
   margin-bottom: 10px;
}

After Add

        ol.subforums li {
           background: transparent url(http://forum.invisionize.pl/public/style_images/blue-orange/bullet_black.png) no-repeat 3px 4px;
           color: #1d3652;
           font-size: 0.85em;
           padding: 0 4px 0 15px;            
       }

       ol.subforums li.newposts {
           background: transparent url(http://forum.invisionize.pl/public/style_images/blue-orange/bullet_green.png) no-repeat 0px 0px;
           color: #1d3652;
           font-size: 0.85em;
           padding: 0 4px 0 16px;            
       } 

Wyświetl pełny artykuł

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.