Archives FluxBB.fr

Les archives de FluxBB.fr

Vous n'êtes pas identifié(e).

#1 03-08-2006 22:38:46

dridri
Membre

Petite modification pour le mod 'mark topic as read'

j'ai adapté le code du mod "mark topic as read" pour afficher l'image "nouveau post" dans les forums épinglés.

une fois le mod installé, ouvrir viewforum.php

TROUVER, ligne 187

[c]        if ($cur_topic['sticky'] == '1')
        {
            $subject = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$subject;
            $item_status .= ' isticky';
            $icon_text .= ' '.$lang_forum['Sticky'];
        }[/c]



REMPLACER PAR :

    [c]    // MOD: MARK TOPIC AS READ - adaptation pour les forums epingles

        if ($cur_topic['sticky'] == '1')
        {
                       
            if (!$pun_user['is_guest'] && topic_is_new($cur_topic['id'], $id,  $cur_topic['last_post']) && $cur_topic['moved_to'] == null)
            {
            $subject = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$subject;
            $icon_text .= ' '.$lang_common['New icon'];
            $item_status .= ' inew';
            $icon_type = 'icon inew';
            $subject = '<strong>'.$subject.'</strong>';
            $subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>';
            }
        else {
            $subject = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$subject;
            $item_status .= ' isticky';
            $icon_text .= ' '.$lang_forum['Sticky'];
            }
        }[/c]

Dernière modification par dridri (03-08-2006 22:39:25)


http://www.technolan.org | organisation de lans à Amiens (80)
Admin forum punBB et serveurs de jeux

Hors ligne

#2 04-08-2006 23:45:48

Kargai
Membre

Re : Petite modification pour le mod 'mark topic as read'

J'ai pas très bien compris ce que ça fait tongue
Quelqu'un peux m'éclairer svp ?

C'est l'image qui apparait quand on a un post non-lu qui s'applique sur les sujets épinglés ? Ou y'a un truc caché que je ne comprend pas ? tongue

Hors ligne

#3 05-08-2006 22:13:45

dridri
Membre

Re : Petite modification pour le mod 'mark topic as read'

Kargai a écrit :

C'est l'image qui apparait quand on a un post non-lu qui s'applique sur les sujets épinglés ?

Toutafait ! je pensais pourtant avoir été clair... huh

Il me semble que le mod 'mark topic as read' ne le fait pas par défaut

Dernière modification par dridri (05-08-2006 22:14:27)


http://www.technolan.org | organisation de lans à Amiens (80)
Admin forum punBB et serveurs de jeux

Hors ligne

Pied de page des forums