Jump to content
  • Tutorial:
    3.x

    • 4.x

    • 3.x

    Sign in to follow this  

    Separare i topic importanti


    Askancy

    Si prega di essere consapevoli del fatto che questi commenti sono stati copiati qui da un'altra fonte e che la data e l'ora indicata per ciascun commento potrebbero non essere corretta.

    Message added by Askancy

    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

    Sign in to follow this  


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Crea Nuovo...

Important Information

By using this site, you agree to our Terms of Use.