Vous souhaitez ajouter une icône dans le titre du sujet sans devoir installer un MOD? Rien de bien compliquer. Il suffit de suivre ce qui suit.
Ouvrez le fichier « viewforum.php ».
Cherchez:
Code : Tout sélectionner
// Send vars to template
$template->assign_block_vars('topicrow', array(
Code : Tout sélectionner
$row['topic_title'] = str_replace(array('[EVENT]', '[DISCU]'), array('<img src="http://www.votresite.com/images/event.png" alt="Event" />', '<img src="http://www.votresite.com/images/discu.png" alt="Discu" />'), $row['topic_title']);
Cherchez:
Code : Tout sélectionner
$topic_data['topic_title'] = censor_text($topic_data['topic_title']);
Code : Tout sélectionner
$topic_data['topic_title'] = str_replace(array('[EVENT]', '[DISCU]'), array('<img src="http://www.votresite.com/images/event.png" alt="Event" />', '<img src="http://www.votresite.com/images/discu.png" alt="Discu" />'), $topic_data['topic_title']);
Voici ce que cela donne: