Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Elisa on May 29, 2004, 08:26:56 AM

Title: Problem chat
Post by: Elisa on May 29, 2004, 08:26:56 AM
I'm italian girl, i don't speack english!

I have a problem.
I install integratetedChat. Whit default theme i see the icon 2"chat" e i can get into the chat.
I install theme spaceman Theme and i can't get into the chat because i don't see the icon and the link. Why????
Title: Re: Problem chat
Post by: Eris Siva on May 29, 2004, 10:55:44 AM
*edit out becasue of stupidity*
;)
Title: Re: Problem chat
Post by: Elisa on May 29, 2004, 11:24:14 AM
sorry, i dont understand!
you can speack english, before, i translate!
Title: Re: Problem chat
Post by: Eris Siva on May 29, 2004, 11:34:05 AM
Okay.... Well, you also need to edit the index.template.php file for the theme that you want to use in order for the button to show up in the menu-bar.
The auto-install script does this:

<search for>
<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'];
</search for>

<add after>

// Integrated Chat Mod Icon
if (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=chat">', ($settings['use_image_buttons'] ? ' <img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chatAlt'] . '" target="_blank" style="margin: 2px 0;" border="0" />' : $txt['chatAlt']), '</a>', $context['menu_separator'];
</add after>


Basically, you need to do the same. You also need to upload the "Chat images" to the correct folders in whatever theme you want to use...
Title: Re: Problem chat
Post by: Elisa on May 29, 2004, 02:35:59 PM
i do that, but i don't see the chat!!!!! help!!!!
Title: Re: Problem chat
Post by: andrea on May 30, 2004, 02:04:30 AM
If you do not see the chat button then you did something wrong, maybe either entered some wrong code or in the wrong place.

What you have to do is to add another menu button into the top menu, for example behind the calendar button. Look for the code for the top menu in the file "index.template.php".
Title: Re: Problem chat
Post by: Oldiesmann on June 01, 2004, 11:04:02 AM
The chatroom is a java-based chatroom, so if your computer has problems with Java applets, you may not be able to get it to work.
Title: Re: Problem chat
Post by: Eris Siva on June 01, 2004, 11:06:15 AM
Quote from: Oldiesmann on June 01, 2004, 11:04:02 AM
The chatroom is a java-based chatroom, so if your computer has problems with Java applets, you may not be able to get it to work.


As she said before:
QuoteWhit default theme i see the icon 2"chat" e i can get into the chat.
I install theme spaceman Theme and i can't get into the chat because i don't see the icon and the link.

It's not that she can't use the chat, it's that she can't see the link for the chat...
Title: Re: Problem chat
Post by: Oldiesmann on June 01, 2004, 11:14:07 AM
Well, she said that with the default theme she could see the icon but couldn't get into the chat...

Elisa - send me your FTP info via PM and I'll see what I can do...
Title: Re: Problem chat
Post by: Elisa on June 02, 2004, 05:12:40 AM
Tank you, but now all it's ok!!!!!