Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Topic started by: stevej on November 06, 2004, 06:27:56 PM

Title: Upgraded from RC1 to RC2 and Lost Chat...
Post by: stevej on November 06, 2004, 06:27:56 PM
Is there an easy fix that I can't seem to find on the forum?

When you click the Chat button now...it just goes right back to the main forum page.  I checked index.php in the main folder and all references to chat are gone.
Title: Re: Upgraded from RC1 to RC2 and Lost Chat...
Post by: [Unknown] on November 06, 2004, 06:34:25 PM
You'll need to reapply the chat mod.

-[Unknown]
Title: Re: Upgraded from RC1 to RC2 and Lost Chat...
Post by: stevej on November 06, 2004, 06:48:39 PM
I hate to be a total tool...but where is it?  Whenever I use the Search deal, it pulls up a ton of threads and I can't seem to find the deal to download.

Thanks.............. ::)
Title: Re: Upgraded from RC1 to RC2 and Lost Chat...
Post by: [Unknown] on November 06, 2004, 07:08:29 PM
I'm afraid I don't know, off hand.  There are several chat mods.

-[Unknown]
Title: Re: Upgraded from RC1 to RC2 and Lost Chat...
Post by: andrea on November 07, 2004, 04:06:16 AM
First you have to figure out what you originally applied to your forum to integrate the chat:
- did you only add an additional "chat" button into the top menu
- did you apply a mod? if yes - which one precisely?
Title: Re: Upgraded from RC1 to RC2 and Lost Chat...
Post by: stevej on November 16, 2004, 09:03:29 AM
Quote from: andrea on November 07, 2004, 04:06:16 AM
First you have to figure out what you originally applied to your forum to integrate the chat:
- did you only add an additional "chat" button into the top menu
- did you apply a mod? if yes - which one precisely?

Brodle's Everywherechat.com chat is what I use.  I haven't been able to find where it's compatible with RC2.  But, I'm about to look again.
Title: Re: Upgraded from RC1 to RC2 and Lost Chat...
Post by: ANARCH¥ on November 16, 2004, 09:57:12 AM
so, u are using the integrated chat mod.
integratedchat_1.1_SMFB4
you have yet the chat installed in sql with the old chatdb.php, so, u just have to open the integratedChat_1.1.mod and do it manually. dont forget, for each page u have to make a change, download it before on ur pc, make a copy like "BoardIndex.template.php"==>"Copie of BoardIndex.template.php". upload the files after made all the change.
like this if you have a problem, reupload the copie backup files in place of the last u changed.

in fact, i got a problem myself...:
mod say:
Quote<edit file>
sources/ModSettings.php
</edit file>

<search for>
         array('text', 'cal_maxspan', &$txt['calendar53']),
</search>
i havent this on ModSettings.php ...so, i searched the most probable :
Quotearray('int', 'cal_maxspan'),

and i placed the change:
Quotearray('int', 'cal_maxspan',&$txt['chatTitle']),
         // Integrated Chat 1.0 Settings
         array('select', 'chatLanguage', &$txt['chatLanguage'], 'm12', array('embedded' => 'English', 'french' => 'French', 'german' => 'German',
            'greek' => 'Greek', 'italian' => 'Italian', 'malaysian' => 'Malaysian', 'nepal' => 'Nepal', 'polish' => 'Polish',
            'spanish' => 'Spanish', 'turkey' => 'Turkish')),
         array('text', 'chatRoomName', &$txt['chatRoomName']),
         array('text', 'chatAppend', &$txt['chatAppend']),
         array('text', 'chatWidth', &$txt['chatWidth']),
         array('text', 'chatHeight', &$txt['chatHeight']),
         array('text', 'chatPassword', &$txt['chatPassword']),
         array('select', 'chatRoomsTab', &$txt['chatRoomsTab'], 'm12', array('true' => 'On', 'false' => 'Off')),







u will need to insert the chat button after.
for that:
index.template.php.  Near the bottom, in the menu sub template
Quote// If the user is a logged in, show chat button.
   if ($context['user']['is_logged'])
   {
      echo '
            <a href="', $scripturl, '?action=chat">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chatAlt'] . '" style="margin: 2px 0;" border="0" />' : $txt['chatAlt']), '</a>', $context['menu_separator'] ;
   }

it will look like this after:
Quote// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Show the [home] and [help] buttons.
   echo '
            <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'];

   // How about the [search] button?
   if ($context['allow_search'])
      echo '
            <a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 2px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo '
            <a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" />' : $txt[2]), '</a>', $context['menu_separator'];

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '
            <a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];

   // The [calendar]!
   if ($context['allow_calendar'])
      echo '
            <a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];

Quote// If the user is a logged in, show chat button.
   if ($context['user']['is_logged'])
   {
      echo '
            <a href="', $scripturl, '?action=chat">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chatAlt'] . '" style="margin: 2px 0;" border="0" />' : $txt['chatAlt']), '</a>', $context['menu_separator'] ;
   }

   // If the user is a guest, show [login] and [register] buttons.
   if ($context['user']['is_guest'])
   {
      echo '
            <a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator'], '
            <a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" />' : $txt[97]), '</a>';
   }
   // Otherwise, they might want to [logout]...
   else
      echo '
            <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" />' : $txt[108]), '</a>';
}


well...perhaps someone have a better soluce... i am a noob in php