Ajuda com Legenda

Iniciado por Metron, 11 de Fevereiro de 2009, 14:42

Tópico anterior - Tópico seguinte

0 Membros e 1 Visitante estão a ver este tópico.

Metron

Gostaria de saber se é possivel por la em baixo nu forum a Legenda dos Grupos de Membros que tenho., com a cor certa de cada 1.

Metron


candidosa2

Bem esta aqui tem que ir no boardindex.template.php

Pesquisar por
   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online']))
      echo '
                     ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

   echo '
                     <br />
                     ', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                  </div>
               </td>
            </tr>



Trocar por este
   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online']))
      echo '
                     ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

   echo '
                     <br />
                     ', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', ' ';

                     if(!empty($context['online_groups']))
                     {
                        echo ' <br />Legenda:
                           <span class="middletext">';
                              foreach($context['online_groups'] as $group)
                               {
                                 if(!empty($group['color']) && $group['color'] != '')
                                  echo '[<span style="color:' . $group['color'] . '">' . $group['name'] . '</span>] ';
                              }
                              echo '</span> ';
                     }

   echo '
                  </div>
               </td>
            </tr>


Metron


candidosa2