Vai al contenuto

Separare i topic importanti


najaru

Messaggi raccomandati

Per creare una netta separazione tra i topic importanti e quelli normali è possibile eseguire queste modifiche:

ACP -Look & Feel -> Manage Skin Sets & Templates > scegli la skin -> Templates ->Forum View -> forumIndexTemplate.

Trovare

<table class='ipb_table topic_list' summary='{$this->lang->words['forum_topic_list']} "{$forum_data['name']}"' id='forum_table'>

 

Cancellare queste linee
 

            <tr class='header'>                <th scope='col' class='col_f_icon'> </th>                <th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>                <th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>                <th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>                <th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>                <if test="topicsismod:|:$this->memberData['is_mod'] == 1">                    <th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>                </if>            </tr>

 
 
 

Poi trovare
 
 
 

<!-- BEGIN TOPICS -->


poco sopra il begin topic inserire il codice seguente tra l'ultimo if di chiusura e l'ultimo tr di chiusura

                <!-- Addition for pinned topics separator; Wim G 2010-02-13; BEGIN PART1-->                <tr class='header'>                    <th scope='col' class='col_f_icon'> </th>                    <th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>                    <th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>                    <th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>                    <th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>                    <if test="topicsismod:|:$this->memberData['is_mod'] == 1">                        <th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>                    </if>                </tr>


e poco sotto, subito dopo questo:

<if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">				{parse striping="forumTable" classes="row1,row2"}				<foreach loop="topics:$topic_data as $tid => $data">


aggiungere

<!-- Addition for pinned topics separator; Wim G 2010-02-13; BEGIN PART2-->          <if test="!$this->subHeadShow">                    <tr class='subhead altbar'>                    <th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>                    <if test="$data['pinned']">                     Discussioni importanti                    <else />                     Discussioni                    </if>                    </th>                    </tr>                    <tr class='header2'>                    <th scope='col' class='col_f_icon'> </th>                    <th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>                    <th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>                    <th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>                    <th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>                    <if test="topicsismod:|:$this->memberData['is_mod'] == 1">                    <th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>                    </if>                    </tr>                    <if test="$this->subHeadShow=1"> </if>                    </if>                    <if test="$data['pinned']">                    <if test="$this->hasPinned=1"> </if>                    <else />                    <if test="$this->hasPinned">                    <if test="$this->hasPinned=0"> </if>                    <tr class='subhead altbar'>                    <if test="$this->memberData['is_mod'] == 1">                    <th scope='col' colspan='6'>                    <else />                    <th scope='col' colspan='5'>                    </if>                     Forum Topics                    </th>                    </tr>                    <tr class='header2'>                    <th scope='col' class='col_f_icon'> </th>                    <th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>                    <th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>                    <th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>                    <th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>                    <if test="topicsismod:|:$this->memberData['is_mod'] == 1">                    <th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>                    </if>                    </tr>                    </if>                </if>


dovrebbe essere poi seguito da un altro if di apertura

Il risultato è questo:
new-look.jpg


[source]Wim G di http://www.fountainpennetwork.com/forum/[/source]

Modificato da Skillman_92
Link al commento
Condividi su altri siti

Crea un account o accedi per lasciare un commento

Devi essere un membro per lasciare un commento

Crea un account

Iscriviti per un nuovo account nella nostra community. È facile!

Registra un nuovo account

Accedi

Sei già registrato? Accedi qui.

Accedi Ora
  • Chi sta navigando   0 utenti

    • Nessun utente registrato visualizza questa pagina.
×
×
  • Crea Nuovo...

Informazioni importanti

Abbiamo inserito dei cookies nel tuo dispositivo per aiutarti a migliorare la tua esperienza su questo sito. Puoi modificare le impostazioni dei cookie, altrimenti puoi accettarli cliccando su continua. to insert a cookie message.