FlashChat Integration

Started by Tyrsson, January 05, 2007, 03:44:53 AM

Previous topic - Next topic

perplexed

Quote from: Daniel15 on February 12, 2007, 04:17:27 AM
Quote from: perplexed on February 11, 2007, 03:38:45 PM
apart from what's already mentioned on the previous 8 pages, does anyone know of any conflict this mod may have with other mods?   

It only edits:
1) The board index (Users Online list)
2) The SSI.php file (Users Online)
3) index.php (to add the chat action)

The only mods it could interfere with are mods that edit the users online list (Googlebot and Spiders is the only one I know of, but there may be more).

Thanks Daniel, is it best to install flashchat mod before googlebots or doesnt it make any difference?

Also, what about the users online today mod, can you foresee any problems with that?

~thanks

Pacov

hELP ME PLEASE

When i'm trying to install flash chat mod 1.1.1 I am getting a message

./chat/inc/flashChatTag.php   test faild

Why and what can i make to repare this ???
Pacov

Pacov

hELP ME PLEASE

When i'm trying to install flash chat mod 1.1.1 I am getting a message

./chat/inc/flashChatTag.php   test faild

Why and what can i make to repare this ???
Pacov

Simplemachines Cowboy

tschieb1,
In the file /inc/flashChatTag.php, find:
$tag .= "'width','".$height."',\n";
$tag .= "'height','".$height."',\n";


Replace with:
// Bug fix by Daniel15 for SMF FlashChat Integration
//$tag .= "'width','".$height."',\n";
$tag .= "'width','".$width."',\n";
$tag .= "'height','".$height."',\n";
My SMF forum: The Open Range

Pacov

Quote from: Simplemachines Cowboy on February 12, 2007, 09:50:34 PM
tschieb1,
In the file /inc/flashChatTag.php, find:
$tag .= "'width','".$height."',\n";
$tag .= "'height','".$height."',\n";


Replace with:
// Bug fix by Daniel15 for SMF FlashChat Integration
//$tag .= "'width','".$height."',\n";
$tag .= "'width','".$width."',\n";
$tag .= "'height','".$height."',\n";


I can't find it. This is what I have !!

<?php
   function flashTag($id, $movie, $width = '100%', $height = '100%', $params = array(), $base = '') {
      $flashVars = array();

      foreach($params as $name => $value) {
         if($value) $flashVars[] = "$name=" . urlencode($value);
      }
      
      $fv = join('&', $flashVars);
      $tag = '';
      //for file sharing      
      //$tag .= '<div style="position:absolute;left:0px;top:0px;visibility:hidden;" id="datadiv"><iframe src="about:blank" height="0" width="0" name="dataframe"></iframe></div>';
      
      $tag .= "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" WIDTH=\"$width\" HEIGHT=\"$height\"  id=\"$id\" ALIGN=\"\">";
      $tag .= "<PARAM NAME=\"FlashVars\" VALUE=\"$fv\">";
      $tag .= "<PARAM NAME=\"movie\" VALUE=\"$movie\">";
      $tag .= "<PARAM NAME=\"quality\" VALUE=\"high\">";
      $tag .= "<PARAM NAME=\"menu\" VALUE=\"true\">";
      $tag .= "<PARAM NAME=\"scale\" VALUE=\"noscale\">";
      $tag .= "<PARAM NAME=\"salign\" VALUE=\"LT\">";
      $tag .= "<PARAM NAME=\"BASE\" VALUE=\"$base\">";
      $tag .= "<EMBED src=\"$movie\" FlashVars=\"$fv\" menu=\"false\" quality=\"high\" scale=\"noscale\" salign=\"LT\" WIDTH=\"$width\" HEIGHT=\"$height\" NAME=\"$id\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" BASE=\"$base\"></EMBED>";
      $tag .= "</OBJECT>";

      return $tag;
   }

   function flashChatTag($width, $height, $params = array(), $base = '') {
      $tag  = flashTag('flashchat', $base . 'preloader.swf', $width, $height, $params, $base);
      $tag .= '<script type="text/javascript" src="' . $base . 'js.php"></script>';

      return $tag;
   }
?>
Pacov

Alejandro1

Daniel,

I bought the FlashChat script, no problem.
I installed it, no problem.
I tested the chat, no problem.

I downloaded your FlashChat Integration, no problem.
I installed your modification, no problem.

BUT..... ;) .....no button, no users online :(

Probably because I run my board in dutch-utf8.

Could you please tell me what I should change in my /theme/language, so it will work?

Thanx!


IKShadow

Why do i always need to log in ?

Is there a way to autologin with already loged user in smf ?

Any settings for flash chat in admin area ?
Installed:
SMF 1.1
Gender On Registration 1.0
cbi, 0.5
Spoiler Tag
Reg Bar   1.0
Simple Blog 1.4.1

Simplemachines Cowboy

tschieb1,
Refer to my pm.
You have an older version of flashchat. Install the latest and the mod will work.

IKShadow,
Did you install flashchat as a standalone or in SMF CMS mode?
If you installed as a standalone, you will have to log in each time because flashchat cannot read from the smf database. CMS will integrate with the database and if you are logged into your smf forum, it will auto log you into flashchat.

Flashchat does not provide any controls in the smf admin area.
All flashchat admin is done thru its own control panel at chat/admin/index.php.
My SMF forum: The Open Range

perplexed

Quote from: Simplemachines Cowboy on February 03, 2007, 11:41:32 PM
To solve the log out pop-up problem:

Find the dologout.php file in your chat folder.
Make a copy, and place the copy in your main SMF root folder.
Edit the 2nd line of the file to reflect the proper path.
This is mine; FlashChat is in the /chat folder.
require_once('chat/inc/common.php');


whereabouts in the file do you put that line of code?

Simplemachines Cowboy

That line of code represents what I had to edit to make it work under my file system.

If you read it closely, it says:
Edit the 2nd line of the file to reflect the proper path.

So, my flashchat is in the chat folder, so I had to change the second line from inc/common.php to chat/inc/common.php in my system. Yours may be different.
My SMF forum: The Open Range

Alejandro1

Quote from: Alejandro1 on February 13, 2007, 12:16:18 PM
Daniel,

I bought the FlashChat script, no problem.
I installed it, no problem.
I tested the chat, no problem.

I downloaded your FlashChat Integration, no problem.
I installed your modification, no problem.

BUT..... ;) .....no button, no users online :(

Probably because I run my board in dutch-utf8.

Could you please tell me what I should change in my /theme/language, so it will work?

Thanx!



Or is it possible that it is due to the fact that Flashchat is now version 4.7.9? I tried changing BoardIndex.template by adding the flashchatintegration, the index.template and even the index.english and english.dutch-utf8, but nothing seems to help.

I fixed my chatbutton-challenge, but I am still stuck with the fact that the online users do not show up anywhere.

Some assistance would be greatly appreciated.

I am running:
SMF 1.1.2
TP 0.9.7
FlashChat 4.7.9

IKShadow

#131
Quote from: Simplemachines Cowboy on February 13, 2007, 05:39:13 PM
IKShadow,
Did you install flashchat as a standalone or in SMF CMS mode?
If you installed as a standalone, you will have to log in each time because flashchat cannot read from the smf database. CMS will integrate with the database and if you are logged into your smf forum, it will auto log you into flashchat.

Flashchat does not provide any controls in the smf admin area.
All flashchat admin is done thru its own control panel at chat/admin/index.php.

Thanks it worked. I reinstalled in CMS mode and now Iam auto logged.


Just to test it I made new test user and try to use chat, after I clicked on link index.php?action=chat flash load and I get msg You have been baned

I checked admin area of flash chat:
Bans
No bans found

And also dont have any bans in SMF forums

Any idea whats wrong ?
Installed:
SMF 1.1
Gender On Registration 1.0
cbi, 0.5
Spoiler Tag
Reg Bar   1.0
Simple Blog 1.4.1

perplexed

Quote from: Simplemachines Cowboy on February 13, 2007, 09:27:27 PM
That line of code represents what I had to edit to make it work under my file system.

If you read it closely, it says:
Edit the 2nd line of the file to reflect the proper path.

So, my flashchat is in the chat folder, so I had to change the second line from inc/common.php to chat/inc/common.php in my system. Yours may be different.

*makes appointment with the optician*   sorry about that, it was after midnight when I read it.  I'll try it now.

Quote from: Alejandro1 on February 14, 2007, 04:06:57 AM
Or is it possible that it is due to the fact that Flashchat is now version 4.7.9?

Some assistance would be greatly appreciated.

I am running:
SMF 1.1.2
TP 0.9.7
FlashChat 4.7.9

I installed flashchat 4.7.9 yesterday and it's ok for me.  I have smf1.1.1, and tinyportal 0.9.7.1 installed and its all good on the default theme.

perplexed

Quote from: IKShadow on February 14, 2007, 05:56:13 AM
Quote from: Simplemachines Cowboy on February 13, 2007, 05:39:13 PM
IKShadow,
Did you install flashchat as a standalone or in SMF CMS mode?
If you installed as a standalone, you will have to log in each time because flashchat cannot read from the smf database. CMS will integrate with the database and if you are logged into your smf forum, it will auto log you into flashchat.

Flashchat does not provide any controls in the smf admin area.
All flashchat admin is done thru its own control panel at chat/admin/index.php.

Thanks it worked. I reinstalled in CMS mode and now Iam auto logged.


Just to test it I made new test user and try to use chat, after I clicked on link index.php?action=chat flash load and I get msg You have been baned

I checked admin area of flash chat:
Bans
No bans found

And also dont have any bans in SMF forums

Any idea whats wrong ?
previously in this thread, Daniel said to contact tufat.com about these kind of problems as its flashchat and not the mod.

IKShadow

#134
Quote from: perplexed on February 14, 2007, 07:17:44 AM
previously in this thread, Daniel said to contact tufat.com about these kind of problems as its flashchat and not the mod.

If its working for others on same system, somehow I doubt that tufat will help me.

I notice that Administrators and Super Mods can normaly log in.

There is also a trick if I give some user Super Moderator permission and he log ins to flashchat once then I remove him Super Mod permission and he still can log in to flash chat normaly.

It looks like "normal" users are not synced.

I notice some if tables are empty, like config.

Tried to reinstall it, use it without FlashChat Integration mod and always have same problem.


Here is my /chat/inc/config.php

<?php
//error_reporting(E_ALL ^ E_NOTICE);

$GLOBALS['fc_config'] = array(
'backtimeOnLogin' => 0, //set to non-zero value to force loading previous messages since XXX minutes ago, upon login
'backtimeMax'     => 5, //sets the maximum number of minutes the backtime command will serve up, use 0 to have no max.
'backMax'  => 30, //sets the maximum number of lines the back command will serve up, use 0 to have no max.
'timeOffset'  => 0,     //sets server time offset (needed only to correct server timezone problem), minutes
'debug'           => true, //set to true to run in debug mode
'version'         => '4.7.9', //architecture release . feature release . patch release
'enableSocketServer' => false, //set to true to enable socket server - see online PDF docs for more details
'javaSocketServer' => false, // leave this as false unless using the java socket server
'liveSupportMode' => false,//set to true to use chat in "Live Support" mode
'errorReports'    => false,//set to true to enable error reports
'enableBots'      => false, //set to true to enable Bots
'bot_ip'          => '0.0.0.0', //virtual ip of bot

'hideSelfPopup'   => false,//set to false to allow self popup menu
'showConfirmation'=> true, //set to true to allow confirmation popup window for admin (moderator)
'labelFormat'     => "AVATAR[USER] TIMESTAMP: ", //possible values are any combinations of AVATAR, USER and TIMESTAMP
'timeStampFormat' => 'g:i a', //pattern for PHP date function

'loginsPerIP' => 10, // number of logins allowed per IP address
'disabledIRC' => '',// you can put list of IRC commands to disable here, like 'back,backtime'
'mods' => 'addbot,removebot,startbot,killbot', //Moderators Restrictions (which IRC commands are disabled for Moderators)
'modsAdminRestrictions'=> 'bots,uninstall,connections,users', //Moderators Restrictions in admin section (admin.php), like 'bots,uninstall,connections,users'

'maxMessageSize'  => 500,  //maximum input text size, # characters
'maxMessageCount' => 100,  //maximum number of the messages stored in the chat log

'userListAutoExpand' => false,   //if true user list opens all the rooms with users in them

'showLogoutWindow'   => true,     // if false, then use only the ....src=logout.php method, but do not use the popup method at all
'logoutWindowDisplayTime' => 3, // in seconds
'floodInterval' => 1, // in seconds, the amount of time that must pass before the user posts another message
'inactivityInterval' => 24*60*60, // in seconds, if a user has FlashChat open for 'inactivityInterval' seconds, but they
     // do not type anything, then the user should be automatically logged-out of the chat
     // Note 60*60 - one hour

'splashWindow' => false, //splash non active chat window when new message is received

//Rooms config
'defaultRoom'     => 1,      //primary key of room where all users go after login
'autoremoveAfter' => 30,    //number of seconds before room is removed
'roomTitleFormat' => 'ROOM_LABEL - USER_COUNT', //format string for room title in userlist
'maxUsersPerRoom' => 50,
'listOrder'       => 'MOD_THEN_AZ', // options: AZ, ENTRY, MOD_THEN_AZ, MOD_THEN_ENTRY, STATUS, MOD_STATUS
// AZ = alphabetical order, A to Z
// ENTRY = by order of entry only
// MOD_THEN_AZ = same as AZ, but moderators at top
// MOD_THEN_ENTRY = same as ENTRY, but moderators at top
// STATUS = by order of 'status' (Here / Busy / Away / BRB)
// MOD_STATUS = same as STATUS, but moderators at top

//your CMS system
'CMSsystem' => 'smfCMS2',// defaultCMS - default CMS, blank - stateless CMS

//Some systems use UTF-8 encoding for user names. If you are using some CMS systems with non-English character sets, you may need to enable UTF-8 decoding for user names.
'loginUTF8decode' => false,// possible values - true, false

//option
'encryptPass' => 1,//option to encrypt user password for defaultCMS, can be 1 - encrypt and 0 - no encrypt

//motd & welcome message flags
'auto_motd'  => 0,          // 1 for on, 0 for off (on means it is displayed upon chat entry)
'auto_topic' => 0, // 1 for on, 0 for off (on means it is displayed upon room entry)

// Roles config
'adminPassword' => 'adminpass',   //allows any user to login as a administrator - stateless CMS mode only
'moderatorPassword' => 'modpass', //allows any user to login as a moderator - stateless CMS mode only
'spyPassword'   => 'spypass',     //allows any user to login as a spy - stateless CMS mode only

'layouts' => array(), // do not change this

//Sound config
'sound' => array(
'pan'     => 0, // range from -100 to 100 (left ... right)
'volume'  => 75, // default sound volume, in percent
'muteAll' => false, // true = checked by default, false = unchecked
'muteSubmitMessage' => false,
'muteReceiveMessage' => false,
'muteOtherUserEnters' => false,
'muteLeaveRoom' => false,
'muteRoomOpenClose' => false,
'muteInitialLogin' => false,
'muteLogout' => false,
'muteComboListOpenClose' => false,
'muteUserBannedBooted' => true,
'muteInvitationReceived' => false,
'mutePrivateMessageReceived' => false,
'muteUserMenuMouseOver' => false,
'mutePopupWindowOpen' => false,
'mutePopupWindowCloseMin' => false,
'muteEnterRoom'       => true,
'mutePressButton'     => true
),

//Themes config
'themes' => array(),
'defaultTheme' => 'macintosh',

//Skins config (available skins in /inc/skins; example: 'defaultSkin' => <swf_name>)
'skin' => array(),
'defaultSkin' => 'aqua_skin',

//Text config
'text' => array(
//defaults (presence : is that option visible or hiden)
'itemToChange' => array(
'myTextColor' => false,
'mainChat' => array( 'presence' => true, 'fontSize' => 13, 'fontFamily' => 'Arial'),
'interfaceElements' => array( 'presence' => true, 'fontSize' => 13, 'fontFamily' => 'Arial'),
'title' => array( 'presence' => true, 'fontSize' => 13, 'fontFamily' => 'Arial')
),
//posible values (to add new value just type something like this : 'itm10' => 25)
'fontSize' => array(
'itm0' => 8,
'itm1' => 9,
'itm2' => 10,
'itm3' => 11,
'itm4' => 12,
'itm5' => 13,
'itm6' => 14,
'itm7' => 16,
'itm8' => 18,
'itm9' => 20
),
'fontFamily' => array(
'itm0' => 'Arial',
'itm1' => 'Times',
'itm2' => 'Courier',
'itm3' => 'Verdana',
'itm4' => 'Georgia'
),
),

//Preloader config
'preloader' => array(
'text' => array(
'settings' => 'Loading settings...',
'smilies'  => 'Loading smiles....',
'mainchat' => 'Loading main chat window...',
'starting' => 'Starting chat system...',
'okText'   => 'OK'
),
'fontFamily' => 'Verdana',
'fontSize'   => '11',
'fontColor'  => 0x000000,
'BGColor'    => 0xFFFFFF,
'barColor'   => 0x000000
),

//Login config
'login' => array(
'btn' => 'true', // if false, "Login" button is hidden
'title_bar' => 'true', // if false, title bar is hidden
'theme' => 'macintosh',
'width' => '',//400,
'height' => '',//300,
'username' => array(
'req' => 'false',// if true, message appears if not inputted
'align' => 'right',// 'left' or 'right'
'x_label' => '',
'y_label' => '',
'x_field'   => '',
'y_field'   => '',
'type' => 'text',//'text' or 'password' (if password, **** appears)
'width' => 150
),
'password' => array(
'req' => 'false',
'align' => 'right',
'x_label' => '',
'y_label' => '',
'x_field'   => '',
'y_field'   => '',
'type' => 'password',
'width' => 150
),
'lang' => array(
'align' => 'right',
'x_label' => "",
'y_label' => "",
'x_field'   => "",
'y_field'   => "",
),
'title' => array(
'align' => 'center',
'x_label' => '',
'y_label' => '',
'x_field'   => '',
'y_field'   => '',
),
),

//Language config. For some languages like Japanese or Chinese.
//This option allows ctrl+enter vs enter and always enables the send button.
'special_language' => array(
'itm0' => 'jp',
'itm1' => 'cn'
),

//Smile settings
//To disable any smilie, comment or delete the appropriate line.
'smiles' => array(
'smi_smile' => ':) :-)',
'smi_sad' => ':( :-(',
'smi_wink' => ';) ;-)',
'smi_laugh' => ':D :-D',
'smi_red' => ':red:',
'smi_tongue' => ':p :-p',
'smi_ask' => ':? :-?',
'smi_awe' => ':awe:',
'smi_baby' => ':baby:',
'smi_cool' => '8) 8-)',
'smi_evil' => ':evil:',
//'smi_finger' => ':finger:',
'smi_grin' => ':grin:',
'smi_heart' => ':heart:',
'smi_kiss' => ':kiss:',
'smi_newline' => ':break:',
'smi_ninja' => ':ninja:',
'smi_roll' => ':roll:',
'smi_roll_eyes' => ':rolleyes:',

'smi_slash' => ':! :-!',
'smi_sleep' => ':zzz:',

'smi_weird' => ':weird:',
'smi_whistle' => ':whistle:',

'smi_wonder' => '8s',

//addon 1
'smi_call' => ':call:',
'smi_cash' => ':cash:',
'smi_shock' => ':shock:',
'smi_check' => ':check:',

//addon 2
'smi_ball' => ':ball:',
'smi_clap' => ':clap:',
'smi_cry' => ':cry:',
'smi_luck' => ':luck:',
'smi_nono' => ':nono:',
'smi_punch' => ':Punch:',
'smi_skull' => ':skull:',
'smi_yeah' => ':yeah:',
'smi_yinyang' => ':69:',

//addon 3
'smi_earth' => ':earth:',
'smi_huh' => ':huh:',
'smi_hypno' => ':hypno:',
'smi_java' => ':java:',
'smi_no' => ':no:',
'smi_rain' => ':rain:',
'smi_rose' => ':rose:',
'smi_usa' => ':usa:',

//addon 4
'smi_big_grin' => ':biggrin:',
'smi_faint' => ':faint:',
'smi_ill_content' => ':mean:',
'smi_meow' => ':cat:',
'smi_thumbs_down' => ':down:',
'smi_thumbs_up' => ':up:',
'smi_woof' => ':dog:',

'smi_beer' => ':beer:',
'smi_music' => ':music:',
'smi_reading' => ':read:',
'smi_word_bubble' => ':speak:',

'smi_female' => ':female:',
'smi_female2' => ':ms:',
'smi_male' => ':male:',
'smi_male2' => ':mr:',
'smi_admin' => ':admin:',
'smi_moderator' => ':mod:',

'smi_basketball' => ':bball:',
'smi_bowling' => ':bowl:',
'smi_cricket' => ':cricket:',
'smi_football' => ':fball:',
'smi_golf' => ':golf:',
'smi_hockey' => ':hockey:',
'smi_sailing' => ':sail:',
'smi_soccer' => ':soccer:',
'smi_tennis' => ':tennis:',

'smi_AustraliaFlag' => ':au:',
'smi_Brazil' => ':br:',
'smi_CanadaFlag' => ':ca:',
'smi_China' => ':cn:',
'smi_Spain' => ':es:',
'smi_European_Union' => ':eu:',
'smi_France' => ':fr:',
'smi_Germany' => ':de:',
'smi_Greece' => ':gr:',
'smi_IndianFlag' => ':in:',
'smi_Italy' => ':it:',
'smi_Japan' => ':jp:',
'smi_MexicoFlag' => ':mx:',
'smi_PolandFlag' => ':pl:',
'smi_PortugalFlag' => ':pt:',
'smi_Russia' => ':ru:',
'smi_Sweeden' => ':se:',
'smi_UkraineFlag' => ':ua:',
'smi_UK' => ':uk:',
'smi_US_Map' => ':us:',
),

//Avatar settings
'avatars' => array(
'mod_only' => 'smi_admin,smi_moderator',

// for standard users (& customers, if using support mode)
'user' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_male', // a smilie code
'default_state' => false, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_male', // a smilie code
'default_state' => true, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_female', // a smilie code
'default_state' => false, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_female', // a smilie code
'default_state' => true, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
),
// for administrators
'admin' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => false, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => true, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => false, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => true, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
),
// for moderators
'moderator' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_moderator', // a smilie code
'default_state' => false, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_moderator', // a smilie code
'default_state' => true, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_moderator', // a smilie code
'default_state' => false, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_moderator', // a smilie code
'default_state' => true, // true = unchecked/off by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
),
),

//Message processing
'msgRequestInterval' => 3, //chat refresh time, seconds
'msgRequestIntervalAway' => 15, //chat refresh time in away state, seconds
                               //NOTE: it should not be bigger than a half of autologoutAfter
                               //otherwise your users risk being disconnected in away mode

'msgRemoveAfter'  => 24*3600,    //messages removed after this time, seconds

//Connection processing
'autologoutAfter' => 60,  //time of pooling inactivity after which user is considered logged off, seconds
'autocloseAfter'  => 3600,//time of pooling inactivity after which connection is removed from database, seconds
'helpUrl'         => 'http://tufat.com/docs/flashchat/index.html', //you can use also help.php

//Ban processing
'autounbanAfter' => 36000,  //time after user is un-banned, seconds

//Language options
'languages' => array(), //do not change this
'defaultLanguage' => 'en', //two-letter code of the default language (see below)
'allowLanguage' => true,    //allow user to choose another language

'base' => '',

//Chat server options
'ChatOwner' => array(
1, // replace with your own values for user names
//2, // look in users table for these values
//3, // add extra lines if required, delete if you need less than 3 users in table
),

'commands' => array(
'showIP'   => true, // show user IP and host at /who if set to true
'userPM'   => true, // set to true to output list of user commands to a PM window, false to chat window
'adminPM'  => true, // set to true to output list of moderator commands to a PM window, false to chat window
'maxRooms' => 8, // max number of Public Rooms
),

//external sound options
'sound_options' => array(
'RingBell'       => 'sounds/tin_can.mp3',
'LeaveRoom'       => 'sounds/door_shut.mp3',
'OtherUserEnters' => 'sounds/jetsons.mp3',
'ReceiveMessage'   => 'sounds/aol_receive_message.mp3',
'SubmitMessage'   => 'sounds/aol_send_message.mp3',
'RoomOpenClose' => 'sounds/_default.mp3',
'InitialLogin' => 'sounds/harp_cord.mp3',
'Logout' => 'sounds/high_low_chord.mp3',
'ComboListOpenClose' => 'sounds/mouse_over_6.mp3',
'UserBannedBooted' => 'sounds/chime.mp3',
'InvitationReceived' => 'sounds/three_notes.mp3',
'PrivateMessageReceived' => 'sounds/aol_receive_message.mp3',
'UserMenuMouseOver' => 'sounds/mouse_over_1.mp3',
'PopupWindowOpen' => 'sounds/air_swoosh_2.mp3',
'PopupWindowCloseMin' => 'sounds/mouse_over_2.mp3',
'EnterRoom'       => 'sounds/ta_da.mp3',
'PressButton'     => 'sounds/activate_button.mp3'
),
//---
//File sharing options
// to disable file sharing, go to /inc/layouts/user.php and set allowFileShare to 'false'
'filesharing' => array(
'allowShareRoom'   => false,//moderators can always share with all users in a room - this option is only for non-moderators
'allowShareChat'   => false,//moderators can always share with all users in a chat - this option is only for non-moderators
'allowFileExt'   => 'zip,rar,jpg,gif,sit,pdf',// allowed file extensions, comma separated (to allow all extensions set to '')
'maxFileSize'      => 0.5*1024*1024,//max file size in bytes (2*1024*1024 equals 2 Mb)
'maxFileHoursLife' => 0.5, // time in hours to store the file on the server (file will be deleted after this time)
),

'avatarbgloading' => array(
'allowFileExt'   => 'jpg',// allowed file extensions, comma separated (to allow all extensions set to '')
'maxFileSize'      => 0.5*1024*1024,//max file size in bytes (1024*1024 equals 1 Mb)
'maxFileHoursLife' => 24*31, // time in hours to store the file on the server (file will be deleted after this time)
),

'photoloading' => array(
'allowFileExt'   => 'jpg,gif,png',// allowed file extensions, comma separated (to allow all extensions set to '')
'maxFileSize'      => 0.1*1024*1024,//max file size in bytes (1024*1024 equals 1 Mb)
'maxFileHoursLife' => 24*31, // time in hours to store the file on the server (file will be deleted after this time)
),

//---
//Logout behavior
'logout' => array(
   
'close'    => false, // if true, then FlashChat window is closed upon logout
   
'redirect' => false, // redirectURL must be a valid URL
   
'url'   => 'http://www.tufat.com/chat.php', // 'redirect' must be set to true for this to work
   
'window'   => '_blank', // the window to open into. possible values: _blank, _self, _parent, or a named window
),
//---
//module settings (anchored SWF/JPG file)
//banner.swf is a simple Flash banner ad, moduleText.swf is an advanced module with bi-directional communication between FlashChat and the module

'module' => array(
'anchor'  => '0',//the anchor point: -1,0,1,2,3 or 4 (0=centered,1-4=corners of space below roomlist) + 5-14 points
//anchor of -1 means that module will occupy a floating window (not anchored with flashchat template)
'path'    => '',//set to '' to disable. To see how this works, use 'banner.swf' or 'moduleTest.swf'
'stretch' => 'true',// if true, anchored SWF is stretched horizontally & vertically to fill all available space
'float_x' => '300', // the default "x" position of the floating window (when anchor = -1)
'float_y' => '200', // the default "y" position of the floating window (when anchor = -1)
'float_w' => '200', // the default width of the floating window (when anchor = -1)
'float_h' => '300', // the default height of the floating window (when anchor = -1)
),

// This 'module' block demonstrates how to load the banner ad module (if present in the /modules/ folder)
/*
'module' => array(
'anchor'  => '0',//the anchor point: -1,0,1,2,3 or 4 (0=centered,1-4=corners of space below roomlist) + 5-14 points
//anchor of -1 means that module will occupy a floating window (not anchored with flashchat template)
'path'    => 'modules/banner/banner_ad.swf',//set to '' to disable. To see how this works, use 'banner.swf' or 'moduleTest.swf'
'stretch' => 'true',// if true, anchored SWF is stretched horizontally & vertically to fill all available space
'float_x' => '300', // the default "x" position of the floating window (when anchor = -1)
'float_y' => '200', // the default "y" position of the floating window (when anchor = -1)
'float_w' => '200', // the default width of the floating window (when anchor = -1)
'float_h' => '300', // the default height of the floating window (when anchor = -1)
),
*/

// This 'module' block demonstrates how to load two modules simultaneously
/*
'module' => array(
'anchor'  => '0,-1',//the anchor point: -1,0,1,2,3 or 4 (0=centered,1-4=corners of space below roomlist) + 5-14 points
//anchor of -1 means that module will occupy a floating window (not anchored with flashchat template)
'path'    => 'modules/mp3_player/mp3player.swf,modules/mp3_player/mp3player.swf',//set to '' to disable. To see how this works, use 'banner.swf' or 'moduleTest.swf'
'stretch' => 'true,true',// if true, anchored SWF is stretched horizontally & vertically to fill all available space
'float_x' => '300,300', // the default "x" position of the floating window (when anchor = -1)
'float_y' => '200,200', // the default "y" position of the floating window (when anchor = -1)
'float_w' => '300,300', // the default width of the floating window (when anchor = -1)
'float_h' => '300,300', // the default height of the floating window (when anchor = -1)
),
*/
);

if(!
$GLOBALS['fc_config_stop'])
{
require_once(INC_DIR . 'flashChatTag.php');

require_once(INC_DIR . 'layouts/admin.php');
require_once(INC_DIR . 'layouts/moderator.php');
require_once(INC_DIR . 'layouts/spy.php');
require_once(INC_DIR . 'layouts/user.php');
require_once(INC_DIR . 'layouts/customer.php');

//SKINS: To disable a skin, comment or delete the appropriate line

require_once(INC_DIR . 'skins/default_skin.php');
require_once(INC_DIR . 'skins/xp_skin.php');
require_once(INC_DIR . 'skins/aqua_skin.php');
require_once(INC_DIR . 'skins/gradient_skin.php');

//THEMES: To disable a color theme, comment or delete the appropriate line

require_once(INC_DIR . 'themes/xp.php');
require_once(INC_DIR . 'themes/macintosh.php');
require_once(INC_DIR . 'themes/gradient.php');
require_once(INC_DIR . 'themes/navy.php');
require_once(INC_DIR . 'themes/metallic.php');
require_once(INC_DIR . 'themes/tropical.php');
require_once(INC_DIR . 'themes/aqua.php');
require_once(INC_DIR . 'themes/olive.php');
require_once(INC_DIR . 'themes/pink.php');
require_once(INC_DIR . 'themes/oak.php');
require_once(INC_DIR . 'themes/black.php');

//LANGUAGES: To disable a language, comment or delete the appropriate line
require_once(INC_DIR . 'langs/en.php'); //English
require_once(INC_DIR . 'langs/gm.php'); //German
require_once(INC_DIR . 'langs/si.php'); //Spanish - Informal
require_once(INC_DIR . 'langs/sf.php'); //Spanish - Formal
require_once(INC_DIR . 'langs/du.php'); //Dutch
require_once(INC_DIR . 'langs/it.php'); //Italian
require_once(INC_DIR . 'langs/sv.php'); //Sweedish
require_once(INC_DIR . 'langs/gr.php'); //Greek
require_once(INC_DIR . 'langs/ru.php'); //Russian
require_once(INC_DIR . 'langs/ua.php'); //Ukrainian
require_once(INC_DIR . 'langs/he.php'); //Hebrew
require_once(INC_DIR . 'langs/ar.php'); //Arabic
require_once(INC_DIR . 'langs/tr.php'); //Turkish
require_once(INC_DIR . 'langs/ro.php'); //Romanian
//require_once(INC_DIR . 'langs/bg.php'); //Bulgarian
require_once(INC_DIR . 'langs/pt.php'); //Portugal Portuguese
require_once(INC_DIR . 'langs/br.php'); //Brazilian Portuguese

require_once(INC_DIR . 'langs/fr.php'); //French
require_once(INC_DIR . 'langs/lt.php'); //Lithuanian
require_once(INC_DIR . 'langs/pl.php'); //Polish
require_once(INC_DIR . 'langs/no.php'); //Norweigan
require_once(INC_DIR . 'langs/da.php'); //Danish
require_once(INC_DIR . 'langs/hu.php'); //Hungarian
require_once(INC_DIR . 'langs/fi.php'); //Finnish
require_once(INC_DIR . 'langs/sk.php'); //Slovak
require_once(INC_DIR . 'langs/cz.php'); //Czech
require_once(INC_DIR . 'langs/hr.php'); //Croatian

require_once(INC_DIR . 'langs/th.php'); //Thai
require_once(INC_DIR . 'langs/jp.php'); //Japanese
require_once(INC_DIR . 'langs/tw.php'); //Chinese (BIG-5)
require_once(INC_DIR . 'langs/cn.php'); //Chinese (GB)
require_once(INC_DIR . 'langs/hi.php'); //Hindi

require_once(INC_DIR . 'langs/kl.php'); //Klingon (fictional language)
require_once(INC_DIR . 'langs/pg.php'); //Pig Latin (fictional language)
}
?>


smfCMS2.php

<?php

if ( !
defined( 'INC_DIR' ) ) {
die( 'hacking attempt' );
}

// integration class for Simple Machines Forum (www.simplemachines.org)
// written by Manuel Aristarán <[email protected]>
// updated with usergruops, gender and photo support Feb28, 2006 by Veronica

error_reporting(E_ALL ^ E_NOTICE);
$smf_root_path = realpath(dirname(__FILE__) . '/../../../') . '/';

if (!
defined("SMF")) define("SMF", "1");

require_once(
$smf_root_path . 'Settings.php');
require_once(
$smf_root_path . 'Sources/Load.php');
require_once(
$smf_root_path . 'Sources/Subs-Auth.php');
require_once(
$smf_root_path . 'Sources/LogInOut.php');

class
SMFCMS {

 var
$userid;
 var
$loginStmt;
 var
$getUserStmt;
 var
$getPhotoStmt;
 var
$getUsersStmt;

 function
SMFCMS() {

   
$this->loginStmt     = new Statement("SELECT ID_MEMBER as id, memberName AS login, passwd, is_activated from {$GLOBALS['db_prefix']}members WHERE memberName=? AND (passwd=? OR passwd=?) LIMIT 1");
   
$this->getUserStmt   = new Statement("SELECT ID_MEMBER AS id, memberName AS login, ID_GROUP as status, gender, additionalGroups FROM {$GLOBALS['db_prefix']}members WHERE ID_MEMBER=? LIMIT 1");
   
$this->getPhotoStmt  = new Statement("SELECT filename FROM {$GLOBALS['db_prefix']}attachments WHERE ID_ATTACH=? LIMIT 1");
   
$this->getUsersStmt  = new Statement("SELECT ID_MEMBER as id, memberName as login FROM {$GLOBALS['db_prefix']}members");

   
$this->userid = NULL;

   if (isset(
$_COOKIE[$GLOBALS['cookiename']]))
       {
           
$cookieData = unserialize((get_magic_quotes_gpc() ? stripslashes($_COOKIE[$GLOBALS['cookiename']]) : $_COOKIE[$GLOBALS['cookiename']])) ;
           
$this->userid = $cookieData[0];
   }

 }


 function
isLoggedIn() {
   return
$this->userid;
 }

function
getRoles($status, $additionalGroups) {

 if(
$status == 1 || in_array(1, $additionalGroups)) return ROLE_ADMIN;

 if(
$status == 2 || in_array(2, $additionalGroups)) return ROLE_MODERATOR;
 if(
$status == 3 || in_array(3, $additionalGroups)) return ROLE_MODERATOR;

 if(
$status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
 if(
in_array(0, $additionalGroups)) return ROLE_USER;

 return
null;
 }

 function
getUserProfile($userid) {

   if (
$userid == SPY_USERID) $rv = NULL;

   elseif (
$user = $this->getUser($userid)) {
     
$rv  = $GLOBALS['boardurl'] . "/index.php?action=profile;u=".$userid;
   }

   return
$rv;
 }


function
getUser($userid) {

   
$rv = NULL;

   if((
$rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next())) {

     
$rec['roles'] = $this->getRoles($rec['status'], explode(',', $rec['additionalGroups']));
     
$rv = $rec;
   }

   return
$rv;
 }

 function
login($login, $password) {

   
$md5_password = md5_hmac($password, strtolower($login));
       
$sha1_password= sha1(strtolower($login) . $password );

   
$rs = $this->loginStmt->process($login,$md5_password, $sha1_password);

   
$rec = $rs->next();

   if (
$rec) {

     
// is the user activated?
     
if (empty($rec['is_activated'])) return NULL;

     
$this->userid = $rec['id'];

     
setLoginCookie(60 * $GLOBALS['modSettings']['cookieTime'], $rec['id'], $sha1_password);

     return
$rec['id'];

   }
 }

       function
userInRole($userid, $role) {
               if(
$user = $this->getUser($userid)) {
                       return (
$user['roles'] == $role);
               }
               return
false;
       }

 function
logout() {

 }

 function
getUsers() {
  return
$this->getUsersStmt->process();
 }

 function
getGender($userid) {
       
// 'M' for Male, 'F' for Female, NULL for undefined

$sex = $this->getUserStmt->process($userid);
if($gender = $sex->next()) {
if($gender['gender'] == '2') return 'F';
if($gender['gender'] == '1') return 'M';
}
       return
NULL;
 }


 function
getPhoto($userid) {


$fileExt = explode(',', $GLOBALS['fc_config']['photoloading']['allowFileExt']);

$oldFile = './nick_image/' . $userid . '.';
$fs = reset($fileExt);
while($fs) {
if(file_exists($oldFile . $fs)) return $oldFile . $fs;
$fs = next($fileExt);
}

$rs = $this->getPhotoStmt->process($userid);
if($rec = $rs->next()) {

if(!empty($rec['filename']))  return '../attachments/' . $rec['filename'];
}
return '';
 }

}


$GLOBALS['fc_config']['db'] = array(
               
'host' => $db_server,
               
'user' => $db_user,
               
'pass' => $db_passwd,
               
'base' => $db_name,
               
'pref' => $db_prefix . "fc_",
                );

$GLOBALS['fc_config']['cms'] = new SMFCMS();



foreach(
$GLOBALS['fc_config']['languages'] as $k => $v) {
 
$GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';
}

?>



Installed:
SMF 1.1
Gender On Registration 1.0
cbi, 0.5
Spoiler Tag
Reg Bar   1.0
Simple Blog 1.4.1

perplexed

Quote from: IKShadow on February 14, 2007, 05:56:13 AM
Just to test it I made new test user and try to use chat, after I clicked on link index.php?action=chat flash load and I get msg You have been baned

I checked admin area of flash chat:
Bans
No bans found

And also dont have any bans in SMF forums

Any idea whats wrong ?

Quote from: IKShadow on February 14, 2007, 07:35:04 AM
Quote from: perplexed on February 14, 2007, 07:17:44 AM
previously in this thread, Daniel said to contact tufat.com about these kind of problems as its flashchat and not the mod.

If its working for others on same system, somehow I doubt that tufat will help me.


ok then *shrug*

Just trying to help because on previous pages there is this:

Quote from: Daniel15 on January 07, 2007, 09:33:15 PM
QuoteI've got this mod added and it seems to be working well with the exception that I have a couple of members  of my SMF forum that cannot enter the chatroom. They get a message saying they are banned, yet they are not banned from my forum. I cannot find anything on this topic. Any advice?
That's not my area for support - Since this is a problem with FlashChat itself, you'll need to ask the author of FlashChat for support.

This topic only covers issues with the FlashChat integration (Users Online list, and the FlashChat embedded into SMF). Issues with FlashChat itself (user issues, etc.) aren't covered by me ;)

Alejandro1

Quote from: perplexed on February 14, 2007, 07:16:11 AM


Quote from: Alejandro1 on February 14, 2007, 04:06:57 AM
Or is it possible that it is due to the fact that Flashchat is now version 4.7.9?

Some assistance would be greatly appreciated.

I am running:
SMF 1.1.2
TP 0.9.7
FlashChat 4.7.9

I installed flashchat 4.7.9 yesterday and it's ok for me.  I have smf1.1.1, and tinyportal 0.9.7.1 installed and its all good on the default theme.


I am happy for you. My SMF is a different version and I use the default too.
What part of your remarks  "....and it's ok for me...." and "...and it's all good..." should I consider as a form of advice, like I asked for???
Excuse me for sounding cranky, but when I ask for advice, I'm not asking for a reply of someone who tells me: "I don't have a problem...". Does that sound like a solution to you?

I read other forum-posts, I know how to use google and I finished my education. If I know the answer to someone's question, I help them, if I don't I keep my mouth shut and wait for someone more knowledgeable to answer that question.

Don't take this too personal, you have every right to be posting on this forum, just as much as me, but please do consider this as a lesson in forum-etiquette; Never tell someone who has a challenge that it doesn't affect you, that's not helping the first person in any way, just making them more frustrated.

IKShadow

Just to let you know I solved it.

Change file /chat/inc/cmses/smfCMS2.php

The remarked line is original and the line bellow it fix.

function getRoles($status, $additionalGroups) {

  if($status == 1 || in_array(1, $additionalGroups)) return ROLE_ADMIN;

  if($status == 2 || in_array(2, $additionalGroups)) return ROLE_MODERATOR;
  if($status == 3 || in_array(3, $additionalGroups)) return ROLE_MODERATOR;

// if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
  if($status >3) return ROLE_USER;
if(in_array(0, $additionalGroups)) return ROLE_USER;

  return null;
  }
Installed:
SMF 1.1
Gender On Registration 1.0
cbi, 0.5
Spoiler Tag
Reg Bar   1.0
Simple Blog 1.4.1

perplexed

Quote from: Alejandro1 on February 14, 2007, 08:06:00 AM
Quote from: perplexed on February 14, 2007, 07:16:11 AM


Quote from: Alejandro1 on February 14, 2007, 04:06:57 AM
Or is it possible that it is due to the fact that Flashchat is now version 4.7.9?

Some assistance would be greatly appreciated.

I am running:
SMF 1.1.2
TP 0.9.7
FlashChat 4.7.9

I installed flashchat 4.7.9 yesterday and it's ok for me.  I have smf1.1.1, and tinyportal 0.9.7.1 installed and its all good on the default theme.


I am happy for you. My SMF is a different version and I use the default too.
What part of your remarks  "....and it's ok for me...." and "...and it's all good..." should I consider as a form of advice, like I asked for???
Excuse me for sounding cranky, but when I ask for advice, I'm not asking for a reply of someone who tells me: "I don't have a problem...". Does that sound like a solution to you?

I read other forum-posts, I know how to use google and I finished my education. If I know the answer to someone's question, I help them, if I don't I keep my mouth shut and wait for someone more knowledgeable to answer that question.

Don't take this too personal, you have every right to be posting on this forum, just as much as me, but please do consider this as a lesson in forum-etiquette; Never tell someone who has a challenge that it doesn't affect you, that's not helping the first person in any way, just making them more frustrated.

You suggested it might be because you were using 4.7.9 and I said I was using 4.7.9, that's all.  My post regarding 4.7.9 was not me giving advice I was pointing out that it might not be that version as you suggested since I am using the same one.  Read the post or don't read it, choice is up to you.

My second post about this problem (users banned) coming up on a previous page and what the previous answer had been was advice and an attempt to perhaps save you some time.  The Mod author is in Australia and is likely asleep due to time differences. 

Quote from: Daniel15 on January 07, 2007, 09:33:15 PM
QuoteI've got this mod added and it seems to be working well with the exception that I have a couple of members  of my SMF forum that cannot enter the chatroom. They get a message saying they are banned, yet they are not banned from my forum. I cannot find anything on this topic. Any advice?
That's not my area for support - Since this is a problem with FlashChat itself, you'll need to ask the author of FlashChat for support.

This topic only covers issues with the FlashChat integration (Users Online list, and the FlashChat embedded into SMF). Issues with FlashChat itself (user issues, etc.) aren't covered by me ;)
[/quote]

I'm sorry you are having a 'challenge', most of us are or we wouldn't be on a support forum. I'm not taking it personally but I don't appreciate your tone and I don't need a lesson in forum etiquette.  You have every right to disregard my posts if they are not helpful to you but not to attack me in a derogatory manner, if I am trying to help.

I hope you get your problems resolved with this mod.  Someone may have posted a solution to you 'challenge'

Alejandro1

I wasn't referring at all to your post regarding the "user banned", don't know where you got that from, I'm only referring to my own post and your reaction.
And it certainly is nice of you to try and help people because someone else is asleep down under ;)

But, I still think that your reaction to my post belongs in the category "I don't have a problem..." and I have been around too long on forums to read a post like that and think to myself':"Ow, how nice, at least someone is paying attention to my post...".
I am looking for solutions, not chitchat, and if that sounds derogatory to you, that's your perception.

Enough said about all this, I applaud you for the answers and solutions that you have given other members of this board and the effort that you take in doing that.
So let's get back to business and on-topic, there's a lot of work to be done in this community and you and I are both part of it.

Advertisement: