News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

FlashChat Integration with 1.1.1 Final, 1.1RC3 & 1.1RC2 Default Theme

Started by Simplemachines Cowboy, January 18, 2006, 10:54:47 PM

Previous topic - Next topic

5cakids

ok I added the chat but it is wanting people to register? What did I do wrong? Shouldnt it reconize my members?


^DooM^

Quote from: Daniel15 on January 05, 2007, 04:28:47 AM
Hi everyone,
I've posted a mod that completely integrates FlashChat into SMF. You may download the mod at http://custom.simplemachines.org/mods/index.php?mod=611

Great mod Daniel15,

I can confirm this mod works perfectly with 1.1.4 and FlashChat v483, One thing you may want to add though which I had to tweak is setting this line in smfCMS2.php (Seeing as you alter that file anyway)

from
if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
to
if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;

If you have more than 9 member groups anyone in a member groupid above 9 is banned.

Thanks again for this sweet mod.
Never argue with an idiot, they will simply bring you down to their level and then beat you with experience

metallica48423

Thanks for the tip, have you tried PM'ing him with that info?
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

nosferatu

Hello all. I've used this mod and it works really well. I've now tried to integrate FlashChat into another theme. I know there's often problems with doing that but I've managed, with a few tweaks, to get it to look right on the forum template but when I click the Chat button I get:

Unable to load the 'chat_forum' template

The action works fine with a number of other themes so I was wondering if this was something anyone had come across. I'm trying to use it with the ApolloBB theme in 1.1.4.
Thanks
There's a certain joy in being mad that only madmen know

Fiery

Quote from: nosferatu on December 31, 2007, 09:53:57 AM
Hello all. I've used this mod and it works really well. I've now tried to integrate FlashChat into another theme. I know there's often problems with doing that but I've managed, with a few tweaks, to get it to look right on the forum template but when I click the Chat button I get:

Unable to load the 'chat_forum' template

The action works fine with a number of other themes so I was wondering if this was something anyone had come across. I'm trying to use it with the ApolloBB theme in 1.1.4.
Thanks

Did you make the changes based on http://docs.simplemachines.org/index.php?topic=402 and http://sleepycode.com/PackageParser/index.php

neotan

Hi,

I can't get the right code for the following snippet:

( I am not a programmer but a configurator)

SMF : 1.1.4
Theme : Black Rain V2
FlashChat : 4.7.12
Flashchat mod 1.0a

a) The custom code in the mod states:

Find

// The [calendar]!
   if ($context['allow_calendar'])
      echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


- This does not exist in for this theme instead, I have this:

// The [calendar]!
   if ($context['allow_calendar'])
      echo '<li', $current_action == 'calendar' ? ' id="active"' : '', '><a href="', $scripturl, '?action=calendar"><span>', $txt['calendar24'], '</span></a></li>';

Could some guru provide the theme-friendly Flashchat code equivalent for the following mod code:

   // FlashChat!
   global $modSettings;
   if ($context['user']['is_logged'])
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
            </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


thanks

neotan

I bought the Desktop Skin and I would like to use this as the default PHP. So how can I force the users to use this interface instead?

http://www.jparts.info/forum/chat/flashchat.php

- I swapped amfichat.php  with flashchat.php, hoping the chat would invoke the new interface. Do I need to change any of files to force the change ?

Thanks

neotan

Another question:

Using Daniel15's mod, how can I refresh the status of the users on the front panel much faster ? Users have already logged out and it still shows their in-room status. I want to do this without refreshing the browser. Thanks !!

neotan

Quote from: neotan on February 05, 2008, 03:48:16 AM
Hi,

I can't get the right code for the following snippet:

( I am not a programmer but a configurator)

SMF : 1.1.4
Theme : Black Rain V2
FlashChat : 4.7.12
Flashchat mod 1.0a

a) The custom code in the mod states:

Find

// The [calendar]!
   if ($context['allow_calendar'])
      echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


- This does not exist in for this theme instead, I have this:

// The [calendar]!
   if ($context['allow_calendar'])
      echo '<li', $current_action == 'calendar' ? ' id="active"' : '', '><a href="', $scripturl, '?action=calendar"><span>', $txt['calendar24'], '</span></a></li>';

Could some guru provide the theme-friendly Flashchat code equivalent for the following mod code:

   // FlashChat!
   global $modSettings;
   if ($context['user']['is_logged'])
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
            </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


thanks



I used

    // FlashChat
   echo ' <li', $current_action == 'chat' ? ' id="active"' : '', '><a href="', $scripturl, '?action=chat" ><span>', $txt['fc_chat'] , '</span></a></li>';

- seems ok but I just want to be sure that I have not left out anything.

Thanks

Catanonia

I have just done this all the way upto showing users online and works great with

SWF 1.1.7 and FlashChat 4


Advertisement: