Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Teal on September 18, 2007, 10:40:00 PM

Title: Minor glitch after chat mod install
Post by: Teal on September 18, 2007, 10:40:00 PM
I have found several times now that after installing some mods, I notice that some files have 3 copies of the identical code. In some cases it means I end up with three identical buttons atop the forum. I have managed to weed out the extra files in most cases except for this one. After installing the "chat mod", I now see  3 instances for every user in the chat room.

http://www.overclockeddoc.com/hellzhawtdogz/condiments/users_inchat.jpg (http://www.overclockeddoc.com/hellzhawtdogz/condiments/users_inchat.jpg)

Could someone suggest where I need to look to edit this problem.

Thanks
Title: Re: Minor glitch after chat mod install
Post by: Teal on September 19, 2007, 01:00:12 AM
I found the solution. In the Boardindex.php file (default) I found three instances of the same code. I removed two of them and all is well.

// --- Begin FlashChat integration ---
   // If there's users in the chat
   if (!empty($context['users_chat']))
      echo '
                     <br />
                     ', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
   // --- End FlashChat integration ---