Flash Chat

Support for IntegraMOD 140

Moderator: Integra Moderator

Flash Chat

PostAuthor: ayasha » Sun May 28, 2006 7:40 am

i was wondering if anyone has every installed Flash Chat on their IM board, or if anyone could help me with this.

i have repeatedly tried to get this working, and it worked for all of 2 days, and then it seems all it does now is load a background for the chat.

i have the following 2 links you can read about Flash Chat with.

http://www.tufat.com/script2.htm

http://www.tufat.com/docs/flashchat/integration.html

thanks in advance

cleo
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: found it » Sun May 28, 2006 9:54 am

Hi

I have installed it for another members integramod site what is the problem you have...

As I believe his is still going well after 6 months....

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Mar 27, 2006 4:29 am
Cash on hand: 0.00

PostAuthor: ayasha » Sun May 28, 2006 7:06 pm

well, when i click on the link in the nav bar at the top, which goes to flashchat.php it either loads like this or blank

[flash=,:d7yeyi52]http://i6.photobucket.com/albums/y248/ayashazoelle/flashchatbk.jpg[/flash:d7yeyi52]

and when i click to go the the flash chat admin, i get this

[flash=,:d7yeyi52]http://i6.photobucket.com/albums/y248/ayashazoelle/flashchatadmin.jpg[/flash:d7yeyi52]
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: found it » Mon May 29, 2006 6:14 am

Hi

Sorry for the late reply, I need to search back on some install notes I made and then I can see what is going on....

I know thereare certain code changes to be done...I had a whole guide I wrote but for the life of me I cannot find it on my comp...

I will be back though....

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Mar 27, 2006 4:29 am
Cash on hand: 0.00

PostAuthor: ayasha » Mon May 29, 2006 6:39 am

thanks Mike i appreciate it <img>
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: ayasha » Sat Jun 03, 2006 6:03 am

bumping this, does anyone know how i can get this to work?
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sat Jun 03, 2006 9:01 am

I was able to get it working by following the instructions below:
[url=http]FlashChat + IntegraMOD[/url]

The autologin function did not work for me. I am not certain if the code above has address this yet.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: ayasha » Sat Jun 03, 2006 9:28 am

where do i find these files? and do i delete phpBB2cms? and what is defaultUsrExtCMS.php where is that file located? do i replace either of these files with the code that is given?
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: ayasha » Sat Jun 03, 2006 9:38 am

ok, i found phpBB2cms and defaultuserextcme.php in chat/inc/cmses, now do i delete one of them? do i put the code that is given on those instructions in these files replacing what is there? and what do i actually have to do to my config.php and it that my root/config.php or chat/inc/config.php>
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sat Jun 03, 2006 12:33 pm

Do not delete either of these files.

OPEN chat/inc/config.php

FIND
Code: Select all
        //your CMS system

REPLACE next line with]         'CMSsystem' => 'defaultUsrExtCMS',// defaultCMS - default CMS, blank - stateless CMS[/code]
OPEN chat/inc/defaultUsrExtCMS.php

REPLACE entire content with:
Code: Select all
<php>constArr = array(                       'users'       =>'phpbb_users',                       'login'       =>'username',                       'id'          =>'user_id',                       'password'    =>'user_password',                       'roles'       =>'user_id',                       'encode_type' =>'md5',                       'spy_fld'     =>'user_id',                       'spy_value'   =>'100',                       'profile_path'=>'http]} WHERE username=? AND user_password=md5(?) AND user_active<0>constArr['sessions']} WHERE session_id=?");             $this->configStmt = new Statement("SELECT * FROM {$GLOBALS['table_prefix']}config WHERE config_name='cookie_name'");             $this->getUserStmt  = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['id']}=? LIMIT 1");                         $this->getUsersStmt = new Statement("SELECT * FROM {$this->constArr['users']} ORDER BY {$this->constArr['login']}");             $this->delStmt      = new Statement("DELETE FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=?");                         $encode_type = $this->constArr['encode_type'];                                   switch( $encode_type )             {                 case 'md5' : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=MD5(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, MD5(?))");                              break;                 case 'mysql_pass' :                              $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=PASSWORD(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, PASSWORD(?))");                              break;                 default    : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=? LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, ?)");                                break;             }                           }         //-----------------------------------------------------------------------------------------         function isLoggedIn()         {             return $this->userid;         }         //-----------------------------------------------------------------------------------------         function login($login, $password)         {             $this->userid = null;               if($login && $password)             {                 $encode_type = $this->constArr['encode_type'];                 $pass = $password;                 /*                 switch( $encode_type )                 {                     case 'md5' : $pass = md5($password); break;                     default    : $pass = $password; break;                 }*/                                                 //Try to find user using provided login                 if(($rs = $this->loginStmt->process($login,$pass)) && ($rec = $rs->next()))                 {                                       //if($rec[$this->constArr['password']] == $pass)                     $this->userid = $rec[$this->constArr['id']];                 }                 else                 {                     //If not - autocreate user with such login and password                     if($this->autocreateUsers)                     {                         //$roles = ($password == $GLOBALS['fc_config']['adminPassword'])?ROLE_ADMIN:($GLOBALS['fc_config']['liveSupportMode']?ROLE_CUSTOMER:ROLE_USER);                         $ins = $this->addUserStmt->process($login, $pass);                                                 if( $ins != null && $ins == 0 )                         {   //we not know if id field is autoincrement                             $this->userid = login($login, $password);                         }                         elseif($ins != null)                         {                             $this->userid = $ins;                         }                     }                 }             }               return $this->userid;         }         //-----------------------------------------------------------------------------------------         function logout()         {             if($this->constArr['logoff'] == 'true') $this->user = null;         }         //-----------------------------------------------------------------------------------------           function getUser($userid)         {             if($userid)             {                 $rs = $this->getUserStmt->process($userid);                 $usr = $rs->next();                 $usr['login'] = $usr[$this->constArr['login']];//important!                 $usr['roles'] = $usr[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_ADMIN : ($usr[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);                                 return $usr;             }             else             {                 return null;             }         }         //-----------------------------------------------------------------------------------------         function getUsers()         {             $users = $this->getUsersStmt->process();             if( is_array($users) )             if( sizeof($users) > 0)             foreach( $users as $k=>$v )             {                 $users['login'] = $users[$this->constArr['login']];//important!                 $users['roles'] = $users[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_ADMIN : ($users[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);             }                         return  $users;         }         //-----------------------------------------------------------------------------------------         function getUserProfile($userid)         {             $spy_fld = $this->constArr['spy_fld'];             $spy_val = $this->constArr['spy_value'];                         $user = $this->getUser($userid);                         if( $spy_fld != '' )             {                               if( $user[$spy_fld] == $spy_val ) return null;             }                         extract($user);                         return "{$this->constArr['profile_path']}?mode=viewprofile&u={$user_id}";         }         //-----------------------------------------------------------------------------------------         function userInRole($userid, $role)         {             if($user = $this->getUser($userid))             {                 if($role == ROLE_ADMIN)                 {                     if( $user[$this->constArr['moderator_fld']] == $this->constArr['moderator_value']) return true;                     else return false;                 }                                 if($role == ROLE_SPY)                 {                     if( $user[$this->constArr['spy_fld']] == $this->constArr['spy_value']) return true;                     else return false;                 }                                 if($role == ROLE_USER)                 {                     return true;//???                 }                           }             return false;         }                 function getGender($userid) {             // 'M' for Male, 'F' for Female, NULL for undefined             return NULL;                 }                 function addUser($login, $password, $roles)         {             $user = $this->loginStmt->process($login);             if(($rec = $user->next()) != null) return $rec['id'];                         /*             $encode_type = $this->constArr['encode_type'];             $pass = $password;                             switch( $encode_type )             {                 case 'md5' : $pass = md5($password); break;                 default    : $pass = $password; break;             }               */             return $this->addUserStmt->process($login, $password);                     }                 function deleteUser($login){             $this->delUserStmt->process($login);         }     }         $GLOBALS['fc_config']['cms'] = new DefaultCMS();       //clear 'if moderator' message     foreach($GLOBALS['fc_config']['languages'] as $k => $v)     {         $GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';     }?>
Be sure to change the line 'profile_path'=>'http://www.dgmaforum.com/profile.php', to match the path of your own IntegraMOD root directry. Save and upload both of these files to the chat/inc directory. You will need to login utilizing the chat/index.php method. The autologin does not work, but FlashChat will recognize all IntegraMOD members and even link back to profiles, etc. You can copy this file and modify the look to match your site, as I have.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: ayasha » Sat Jun 03, 2006 2:19 pm

thanks, got it to working, and the auto login does not work for me either. but if you go to chat/index.php and click on the auto login from there, it works.

and i cannot log in as admin, when i go to FlashChat Admin Panel i get

Could not grant admin role for this login and password.

any ideas how i can get in there and set up the chat rooms etc?

i found this

http://www.tufat.com/docs/flashchat/admin.html

but i don't see where it tells you what file to edit, or where exactly to put the edit. sorry i am no good at this guys <img>
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: Dr. Bantham » Sat Jun 03, 2006 5:25 pm

"cleo";p="8357" wrote:thanks, got it to working, and the auto login does not work for me either. but if you go to chat/index.php and click on the auto login from there, it works.
Do you mean that you can login without entering your username and password, or are you referring to the manual entry?
and i cannot log in as admin, when i go to FlashChat Admin Panel i get

Could not grant admin role for this login and password.

any ideas how i can get in there and set up the chat rooms etc?
This password is not necessarily the same as your IM password. It is defined in config.php, somewhere around line 65:
Code: Select all
'adminPassword' => 'adminpass', //allows any user to login as a moderator - stateless CMS mode only
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: found it » Sun Jun 04, 2006 2:49 am

My apologise for not responding to this post...had a few personal things to sort out....

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Mar 27, 2006 4:29 am
Cash on hand: 0.00

PostAuthor: Dr. Bantham » Sun Jun 04, 2006 3:13 am

"Dr. Bantham";p="8365" wrote:This password is not necessarily the same as your IM password. It is defined in config.php, somewhere around line 65.
I am going to retract this statement. I think that password only applied to a stateless CMS. Go ahead and try it to be sure, but it does not work on mine.

  • When you said that autologin worked from index.php, did you mean that you can login without entering your username and password, or are you referring to the manual entry?
  • Are you designated as an IM admin and entering this IM username and password at the FlashChat admin interface?
  • When you log into FlashChat with this username, does an "A" appear next to your name in the online list?
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: ayasha » Sun Jun 04, 2006 6:29 am

on, if you to to .../chat/index.php and am signed into my forum i cannot auto login where indicated and can auto login where indicated

[flash=,:3t0jclti]http://i6.photobucket.com/albums/y248/ayashazoelle/autologin.jpg[/flash:3t0jclti]

now when i login, there is not A beside my name, and i cannot log into the chat admin, but when my other admin logins, there is an A beside her name, and she can get into the chat admin.

i hope all this helps :lol: no worries <img>
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: Dr. Bantham » Sun Jun 04, 2006 7:03 am

"cleo";p="8395" wrote:on, if you to to .../chat/index.php and am signed into my forum i cannot auto login where indicated and can auto login where indicated
I would not call this an auto login, since you are entering your username and password. The auto login would transfer this information instantly for users logged in. No worries - I was just confused a bit.
now when i login, there is not A beside my name, and i cannot log into the chat admin, but when my other admin logins, there is an A beside her name, and she can get into the chat admin.
Do you have full admin capabilities on the site, or are you only a Junior Admin or Moderator? Neither of the latter would give you access to FlashChat Admin.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: ayasha » Sun Jun 04, 2006 7:35 am

ok, when i go to .../chat/index.php, my name and pw are automatically there, i did not enter them, that is why i say it is an autologin. that and the fact that if i am not signed into the forum, neither of those buttons will log me in without me entering my information on a second login that pops up.

if i could get the link on my forum to pop up the smaller popup chat room, i would prefer that.

on the admin capablilities, i am the founder, so yes i have full admin capabilities.
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 06, 2006 2:47 am

i have created my own integration based on the posted one:

my changes are: both admin and mods are moderator on chat
moderater level in chat no longer based on user_rank but based on user_level (how it should be)

option to pull user_passwords out of the mysql DB
OPEN chat/inc/config.php
FIND
Code: Select all
        //your CMS system  

Code: Select all
 REPLACE NEXT LINE with]

CREATE: integramodCMS.php
ADD
[code]  <php>constArr = array(                       'users'       =>'phpbb_users',                       'login'       =>'username',                       'id'          =>'user_id',                       'password'    =>'user_password',                       'roles'       =>'user_id',                       //'encode_type' =>'md5', use this for passwords filled in by users                       //'encode_type' =>'', use this for passwords pulled out of the DB                       'encode_type' =>'',                       'spy_fld'     =>'user_id',                       'spy_value'   =>'100',                       'profile_path'=>'../profile.php',                       'profile_arg' =>'?mode=viewprofile&u={$user_id}',                       'moderator_fld'=>'user_level',                       'moderator_value'=>'2',                       'admin_fld'=>'user_level',                       'admin_value'=>'1',                       'logoff'       =>'false'             );                         $this->loginStmt = new Statement("SELECT * FROM {$this->constArr['users']} WHERE username=? AND user_password=md5(?) AND user_active<0>constArr['sessions']} WHERE session_id=?");             $this->configStmt = new Statement("SELECT * FROM {$GLOBALS['table_prefix']}config WHERE config_name='cookie_name'");             $this->getUserStmt  = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['id']}=? LIMIT 1");                         $this->getUsersStmt = new Statement("SELECT * FROM {$this->constArr['users']} ORDER BY {$this->constArr['login']}");             $this->delStmt      = new Statement("DELETE FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=?");                         $encode_type = $this->constArr['encode_type'];                                   switch( $encode_type )             {                 case 'md5' ]} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=MD5(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, MD5(?))");                              break;                 case 'mysql_pass' :                              $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=PASSWORD(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, PASSWORD(?))");                              break;                 default    : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=? LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, ?)");                                break;             }                           }         //-----------------------------------------------------------------------------------------         function isLoggedIn()         {             return $this->userid;         }         //-----------------------------------------------------------------------------------------         function login($login, $password)         {             $this->userid = null;               if($login && $password)             {                 $encode_type = $this->constArr['encode_type'];                 $pass = $password;                 /*                 switch( $encode_type )                 {                     case 'md5' : $pass = md5($password); break;                     default    : $pass = $password; break;                 }*/                                                 //Try to find user using provided login                 if(($rs = $this->loginStmt->process($login,$pass)) && ($rec = $rs->next()))                 {                                       //if($rec[$this->constArr['password']] == $pass)                     $this->userid = $rec[$this->constArr['id']];                 }                 else                 {                     //If not - autocreate user with such login and password                     if($this->autocreateUsers)                     {                         //$roles = ($password == $GLOBALS['fc_config']['adminPassword'])?ROLE_ADMIN:($GLOBALS['fc_config']['liveSupportMode']?ROLE_CUSTOMER:ROLE_USER);                         $ins = $this->addUserStmt->process($login, $pass);                                                 if( $ins != null && $ins == 0 )                         {   //we not know if id field is autoincrement                             $this->userid = login($login, $password);                         }                         elseif($ins != null)                         {                             $this->userid = $ins;                         }                     }                 }             }               return $this->userid;         }         //-----------------------------------------------------------------------------------------         function logout()         {             if($this->constArr['logoff'] == 'true') $this->user = null;         }         //-----------------------------------------------------------------------------------------           function getUser($userid)         {             if($userid)             {                 $rs = $this->getUserStmt->process($userid);                 $usr = $rs->next();                 $usr['login'] = $usr[$this->constArr['login']];//important!                 $usr['roles'] = ($usr[$this->constArr['admin_fld']] == $this->constArr['admin_value']) ? ROLE_ADMIN : ($usr[$this->constArr['moderator_fld']] == $this->constArr['moderator_value']) ? ROLE_MODERATOR : ($usr[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);                                 return $usr;             }             else             {                 return null;             }         }         //-----------------------------------------------------------------------------------------         function getUsers()         {             $users = $this->getUsersStmt->process();             if( is_array($users) )             if( sizeof($users) > 0)             foreach( $users as $k=>$v )             {                 $users['login'] = $users[$this->constArr['login']];//important!                 $users['roles'] = ($users[$this->constArr['admin_fld']] == $this->constArr['admin_value']) ? ROLE_ADMIN : ($users[$this->constArr['moderator_fld']] == $this->constArr['moderator_value']) ? ROLE_MODERATOR : ($users[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);             }                         return  $users;         }         //-----------------------------------------------------------------------------------------         function getUserProfile($userid)         {             $spy_fld = $this->constArr['spy_fld'];             $spy_val = $this->constArr['spy_value'];                         $user = $this->getUser($userid);                         if( $spy_fld != '' )             {                               if( $user[$spy_fld] == $spy_val ) return null;             }                         extract($user);                         return "{$this->constArr['profile_path']}?mode=viewprofile&u={$user_id}";         }         //-----------------------------------------------------------------------------------------         function userInRole($userid, $role)         {             if($user = $this->getUser($userid))             {                 if($role == ROLE_ADMIN)                 {                     if( $user[$this->constArr['admin_fld']] == $this->constArr['admin_value']) return true;                     else return false;                 }                   if($role == ROLE_MODERATOR)                 {                     if( $user[$this->constArr['moderator_fld']] == $this->constArr['moderator_value']) return true;                     else return false;                 }                                 if($role == ROLE_SPY)                 {                     if( $user[$this->constArr['spy_fld']] == $this->constArr['spy_value']) return true;                     else return false;                 }                                 if($role == ROLE_USER)                 {                     return true;//???                 }                           }             return false;         }                 function getGender($userid) {             // 'M' for Male, 'F' for Female, NULL for undefined             return NULL;                 }                 function addUser($login, $password, $roles)         {             $user = $this->loginStmt->process($login);             if(($rec = $user->next()) != null) return $rec['id'];                         /*             $encode_type = $this->constArr['encode_type'];             $pass = $password;                             switch( $encode_type )             {                 case 'md5' : $pass = md5($password); break;                 default    : $pass = $password; break;             }               */             return $this->addUserStmt->process($login, $password);                     }                 function deleteUser($login){             $this->delUserStmt->process($login);         }     }         $GLOBALS['fc_config']['cms'] = new DefaultCMS();       //clear 'if moderator' message     foreach($GLOBALS['fc_config']['languages'] as $k => $v)     {         $GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';     }?>  [/code]


for those who want to make a auto login page

OPEN includes/page_header.php

FIND:
[code]  //// Generate logged in/logged out status//  [/code]

BEFORE ADD]  //insert variable USERNAME into smarty engine$template->assign_vars(array('USERNAME' => $userdata['username'],'PASSWORD' => $userdata['user_password'],'ID' => $userdata['user_id']));  


IN WICH TEMPLATE YOU WANT TO CREATE LOGIN ADD:
Code: Select all
 <a><img></a>  Or a tekst link can also be created just use "chat/flashchat.php?username={USERNAME}&password={PASSWORD}" as url  


iff you gonna pull the data out off the db make sure to make following edit in interamodCMS.php]                         //'encode_type' =>'md5', use this for passwords filled in by users                       //'encode_type' =>'', use this for passwords pulled out of the DB                       'encode_type' =>'',[/code]
Last edited by Skywalker on Tue Jun 06, 2006 3:30 am, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Skywalker » Tue Jun 06, 2006 2:50 am

"cleo";p="8357" wrote:thanks, got it to working, and the auto login does not work for me either. but if you go to chat/index.php and click on the auto login from there, it works.

and i cannot log in as admin, when i go to FlashChat Admin Panel i get

Could not grant admin role for this login and password.

any ideas how i can get in there and set up the chat rooms etc?

i found this

http://www.tufat.com/docs/flashchat/admin.html

but i don't see where it tells you what file to edit, or where exactly to put the edit. sorry i am no good at this guys <img>


the original integration is based on user ranks therefor you don't have admin permissions in the chat

i have created my own integration based on the original posted ere above.
use this integration and you and your mods have the same rights in the chat as on the forum
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: ayasha » Tue Jun 06, 2006 3:08 am

skywalker, what file do you do this edit in?

option to pull user_passwords out of the mysql DB
FIND


//your CMS system


REPLACE next line with:

'CMSsystem' => 'defaultUsrExtCMS',// defaultCMS - default CMS, blank - stateless CMS
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 06, 2006 3:14 am

i've updated the instruction i was forgotten to rename the CMS file and write the file path

its a clear instruction now
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 06, 2006 3:22 am

i have noticed when you use the function to pull data out of the db you can't login to the chat admin pannel with a plain password i'll see wat i can create to let the admin login pull the username/password out of the db also
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 06, 2006 3:32 am

updated integramodCMS.php
make sure you use your prefix in the userstable:
Code: Select all
                        'users'       =>'phpbb_users',  
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 06, 2006 4:33 am

also make sure that the autologin link is always between user logged in tags...

i've been searching for a auto login fo admin but failed to create so now i've created another common.php,config.php,smartyinit.phpand another CMS file for the admin section.
so users can auto login and admins can just enter there plain password.

with the autologin instruction enabled admins should enter there md5 encrypted password to be able to login in the admin pannel.

the extra files is a rough way around that but it works
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Tue Jun 06, 2006 4:50 pm

Skywalker, I am trying to utilize pulling the database username and password for autologin and I can not get it to work. I have made all of the edits, and the resultant URL does relay my username and what appears to be an encoded password. However, the page becomes white with no activity whatsoever. Any clues and to what the problem might be?

I am using the upgraded 2.0.20 version of phpBB within IntegraMOD and phpBB Security 1.0.3.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 06, 2006 4:59 pm

"Dr. Bantham";p="8730" wrote:Skywalker, I am trying to utilize pulling the database username and password for autologin and I can not get it to work. I have made all of the edits, and the resultant URL does relay my username and what appears to be an encoded password. However, the page becomes white with no activity whatsoever. Any clues and to what the problem might be?

I am using the upgraded 2.0.20 version of phpBB within IntegraMOD and phpBB Security 1.0.3.


the install instruction worked for me so it should work on yours also.
a white page is always an error

can you wait one day? i have edited the original file of flash chat phpBB2CMS.php and this is working for me now i will look if it is still working tomorow because the first time i used that CMS it was also only working for one day if it then still is working i will post the edited original file and then al the functions are working how they should be autologin normal login admin pannel login and so on

just give me 24 hours to check
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Tue Jun 06, 2006 5:22 pm

"Skywalker";p="8731" wrote:can you wait one day? i have edited the original file of flash chat phpBB2CMS.php and this is working for me now i will look if it is still working tomorow because the first time i used that CMS it was also only working for one day if it then still is working i will post the edited original file and then al the functions are working how they should be autologin normal login admin pannel login and so on

just give me 24 hours to check
Certainly - and thanks for posting an update.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Wed Jun 07, 2006 4:01 pm

my chat is still running so this schould fix it.
i will post the phpBB2CMS.php you should use tomorow i'm gonna get some sleep first
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 12:35 am

ok
i'm back again lets post the fix:
OPEN chat/inc/cmses/phpBB2CMS.php

REPLACE WHOLE FILE WITH:

Code: Select all
 <php>loginStmt = new Statement("SELECT user_id FROM {$GLOBALS['table_prefix']}users WHERE username=? AND user_password=md5(?) AND user_active<>0 LIMIT 1");         $this->loggedinStmt = new Statement("SELECT session_user_id as id FROM {$GLOBALS['table_prefix']}sessions WHERE session_id=?");         $this->configStmt = new Statement("SELECT config_value FROM {$GLOBALS['table_prefix']}config WHERE config_name='cookie_name'");         $this->getUserStmt = new Statement("SELECT user_id as id, username as login, user_level FROM {$GLOBALS['table_prefix']}users WHERE user_id=? AND user_active<>0 LIMIT 1");         $this->getUsersStmt = new Statement("SELECT user_id as id, username as login FROM {$GLOBALS['table_prefix']}users ORDER BY login");         $this->getPhotoStmt = new Statement("SELECT user_avatar FROM {$GLOBALS['table_prefix']}users WHERE user_id=? AND user_active<>0 LIMIT 1");     }       function isLoggedIn() {         $userdata = session_pagestart($GLOBALS['user_ip'], PAGE_FAQ);         init_userprefs($userdata);         return ($userdata['user_id'] > 0) ? $userdata['user_id'] ], $GLOBALS['user_ip'], PAGE_INDEX, FALSE, FALSE);             return $rec['user_id'];         }           return null;     }       function logout()     {         /*             $userdata = session_pagestart($GLOBALS['user_ip'], PAGE_FAQ);             session_end($userdata['session_id'], $userdata['user_id']);         */     }       function getUser($userid)     {         if($userid == SPY_USERID) return null;           //fwrite($GLOBALS['fp'], "llada a getuser:".print_r($userid, true)."n");           if($userid && ($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next())) {             if ($rec['user_level'] >= 1) {                              if ($rec['user_level'] == 1) {                             $rec['roles'] = ROLE_ADMIN;                 $rec['user_level'] = ROLE_ADMIN;                            }else{                             $rec['roles'] = ROLE_MODERATOR;                 $rec['user_level'] = ROLE_MODERATOR;                           }                          }               elseif ($GLOBALS['fc_config']['liveSupportMode']) {                 $rec['roles'] = ROLE_CUSTOMER;                 $rec['user_level'] = ROLE_CUSTOMER;             }             else {                 $rec['roles'] = ROLE_USER;                 $rec['user_level'] = ROLE_USER;             }             //fwrite($GLOBALS['fp'], "rec:".print_r($rec, true)."n");             //$rec['login'] = utf8_encode( $rec['login'] );//umlavta characters fix             return $rec;         } else {             return null;         }     }       function getUsers() {         return  $this->getUsersStmt->process();     }       function getUserProfile($userid) {         if($user = $this->getUser($userid)) {             return (($id = $this->isLoggedIn()) && ($id == $userid))?"../profile.php?mode=editprofile":"../profile.php?mode=viewprofile&u=$userid";         } else {             return null;         }     }         function getPhoto($userid)     {         $rs = $this->getPhotoStmt->process($userid);         if(($rec = $rs->next()) == null) return '';           $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);         }           return '../images/avatars/'.$rec['user_avatar'];     }       function userInRole($userid, $role) {         if($user = $this->getUser($userid)) {             return ($user['roles'] == $role);         }         return false;     }       function getGender($userid) {         // 'M' for Male, 'F' for Female, NULL for undefined         return NULL;     }}  $GLOBALS['fc_config']['db'] = array(     'host' => $dbhost,     'user' => (isset($dbuser) ? $dbuser : $dbuname),     'pass' => $dbpasswd,     'base' => $dbname,     'pref' => $table_prefix . "fc_",     );  $GLOBALS['fc_config']['cms'] = new PhpBB2CMS();  //fwrite($GLOBALS['fp'], print_r($GLOBALS['fc_config'], true));  //clear 'if moderator' messageforeach($GLOBALS['fc_config']['languages'] as $k => $v) {         $GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';     }?>


OPEN chat/inc/config.php

FIND:
Code: Select all
          //your CMS system  


REPLACE NEXT LINE with]         'CMSsystem' => 'phpBB2CMS',// defaultCMS - default CMS, blank - stateless CMS  [/code]

and reupload all files.
your flash chat should be working how it should be
auto logins are working and so on
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Thu Jun 08, 2006 2:39 am

Unfortunately, this is not working for me. I was confused at first, but apparently you have abandoned the first solution which used a new CMS file for IntegraMOD. I made the changes exactly as shown for the two files in the last post, but...

I get a white screen if I execute flashchat.php or flashchat.php?username={USERNAME}&password={PASSWORD}.

I get the following error when I execute index.php:
[code]Warning]
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 2:48 am

verry strange 2 solutions who work don't work for your board

witch is the url to your chat?
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 2:50 am

and the most strange is your chat gives the error on this line:
//$fp = fopen(realpath(dirname(__FILE__))."/debug/debug".time().".txt", "w");
witch is comment out...
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 2:52 am

think i got the problem,
make sure you don't have spaces before
<php>
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Thu Jun 08, 2006 2:56 am

I have two installations of FlashChat. One is for testing, though I tried this solution on both.
http://www.ligotti.net/flashchat/

It has been working previously (manual login) with the following defaultUsrExtCMS.php:
Code: Select all
<php>constArr = array(                       'users'       =>'phpbb_users',                       'login'       =>'username',                       'id'          =>'user_id',                       'password'    =>'user_password',                       'roles'       =>'user_id',                       'encode_type' =>'md5',                       'spy_fld'     =>'user_id',                       'spy_value'   =>'100',                       'profile_path'=>'http://www.ligotti.net/profile.php',                       'profile_arg' =>'?mode=viewprofile&u={$user_id}',                       'moderator_fld'=>'user_rank',                       'moderator_value'=>'1',                       'logoff'       =>'false'             );                         $this->loginStmt = new Statement("SELECT * FROM {$this->constArr['users']} WHERE username=? AND user_password=md5(?) AND user_active<0>constArr['sessions']} WHERE session_id=?");             $this->configStmt = new Statement("SELECT * FROM {$GLOBALS['table_prefix']}config WHERE config_name='cookie_name'");             $this->getUserStmt  = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['id']}=? LIMIT 1");                         $this->getUsersStmt = new Statement("SELECT * FROM {$this->constArr['users']} ORDER BY {$this->constArr['login']}");             $this->delStmt      = new Statement("DELETE FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=?");                         $encode_type = $this->constArr['encode_type'];                                   switch( $encode_type )             {                 case 'md5' : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=MD5(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, MD5(?))");                              break;                 case 'mysql_pass' :                              $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=PASSWORD(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, PASSWORD(?))");                              break;                 default    : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=? LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, ?)");                                break;             }                             }         //-----------------------------------------------------------------------------------------         function isLoggedIn()         {             return $this->userid;         }         //-----------------------------------------------------------------------------------------         function login($login, $password)         {             $this->userid = null;               if($login && $password)             {                 $encode_type = $this->constArr['encode_type'];                 $pass = $password;                 /*                 switch( $encode_type )                 {                     case 'md5' : $pass = md5($password); break;                     default    : $pass = $password; break;                 }*/                                               //Try to find user using provided login                 if(($rs = $this->loginStmt->process($login,$pass)) && ($rec = $rs->next()))                 {                                         //if($rec[$this->constArr['password']] == $pass)                     $this->userid = $rec[$this->constArr['id']];                 }                 else                 {                     //If not - autocreate user with such login and password                     if($this->autocreateUsers)                     {                         //$roles = ($password == $GLOBALS['fc_config']['adminPassword'])?ROLE_ADMIN:($GLOBALS['fc_config']['liveSupportMode']?ROLE_CUSTOMER:ROLE_USER);                         $ins = $this->addUserStmt->process($login, $pass);                                                 if( $ins != null && $ins == 0 )                         {    //we not know if id field is autoincrement                             $this->userid = login($login, $password);                         }                         elseif($ins != null)                         {                             $this->userid = $ins;                         }                     }                 }             }               return $this->userid;         }         //-----------------------------------------------------------------------------------------         function logout()         {             if($this->constArr['logoff'] == 'true') $this->user = null;         }         //-----------------------------------------------------------------------------------------           function getUser($userid)         {             if($userid)             {                 $rs = $this->getUserStmt->process($userid);                 $usr = $rs->next();                 $usr['login'] = $usr[$this->constArr['login']];//important!                 $usr['roles'] = $usr[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_ADMIN : ($usr[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);                                 return $usr;             }             else             {                 return null;             }         }         //-----------------------------------------------------------------------------------------         function getUsers()         {             $users = $this->getUsersStmt->process();             if( is_array($users) )             if( sizeof($users) > 0)             foreach( $users as $k=>$v )             {                 $users['login'] = $users[$this->constArr['login']];//important!                 $users['roles'] = $users[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_ADMIN : ($users[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);             }                         return  $users;         }         //-----------------------------------------------------------------------------------------         function getUserProfile($userid)         {             $spy_fld = $this->constArr['spy_fld'];             $spy_val = $this->constArr['spy_value'];                         $user = $this->getUser($userid);                         if( $spy_fld != '' )             {                                 if( $user[$spy_fld] == $spy_val ) return null;             }                         extract($user);                         return "{$this->constArr['profile_path']}?mode=viewprofile&u={$user_id}";         }         //-----------------------------------------------------------------------------------------         function userInRole($userid, $role)         {             if($user = $this->getUser($userid))             {                 if($role == ROLE_ADMIN)                 {                     if( $user[$this->constArr['moderator_fld']] == $this->constArr['moderator_value']) return true;                     else return false;                 }                                 if($role == ROLE_SPY)                 {                     if( $user[$this->constArr['spy_fld']] == $this->constArr['spy_value']) return true;                     else return false;                 }                                 if($role == ROLE_USER)                 {                     return true;//???                 }                             }             return false;         }                 function getGender($userid) {             // 'M' for Male, 'F' for Female, NULL for undefined             return NULL;                 }                 function addUser($login, $password, $roles)         {             $user = $this->loginStmt->process($login);             if(($rec = $user->next()) != null) return $rec['id'];                         /*             $encode_type = $this->constArr['encode_type'];             $pass = $password;                             switch( $encode_type )             {                 case 'md5' : $pass = md5($password); break;                 default    : $pass = $password; break;             }                 */             return $this->addUserStmt->process($login, $password);                     }                 function deleteUser($login){             $this->delUserStmt->process($login);         }     }         $GLOBALS['fc_config']['cms'] = new DefaultCMS();       //clear 'if moderator' message     foreach($GLOBALS['fc_config']['languages'] as $k => $v)     {         $GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';     }?>
I have the FlashChat database installed into the IntegraMOD database, with the prefix flashchat_.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 3:00 am

"Dr. Bantham";p="8930" wrote:Unfortunately, this is not working for me. I was confused at first, but apparently you have abandoned the first solution which used a new CMS file for IntegraMOD. I made the changes exactly as shown for the two files in the last post, but...

I get a white screen if I execute flashchat.php or flashchat.php?username={USERNAME}&password={PASSWORD}.

I get the following error when I execute index.php:
[code]Warning]


i didden't abandon the first solution

i replaced it by a better one

the first solution was a extreme heavy solution and the second is much better

for making to fist solution complete working i have to post the edits to the admin section because with that in use you wont be able to login to the admin section with a plain password you need to enter the md5 encrypted password.
so another modification is needed to make it able to login to admin section with a plain password

that mod is again creation of 4 new pages and edit 1 page

so therefor i went searching to fix the phpBB2CMS
Last edited by Skywalker on Thu Jun 08, 2006 3:01 am, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Thu Jun 08, 2006 3:00 am

"Skywalker";p="8935" wrote:think i got the problem,
make sure you don't have spaces before
<php>
That fixed the error from index.php, but index.php now reverts to install.php, which results in an error message since this file was removed. Otherwise, the program is still behaving as before. It displays the percentage startup screen, goes to 100%, and then the screen goes white.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: found it » Thu Jun 08, 2006 3:01 am

Hi

This is the info i used to install flash chat on integramod if it is of any use to anyone...

http://integrmod.com/home/viewtopic.php?p=45212#45212

and this is the code for a block

http://integrmod.com/home/viewtopic.php?p=53982#53982

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Mar 27, 2006 4:29 am
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 3:12 am

"Dr. Bantham";p="8938" wrote:
"Skywalker";p="8935" wrote:think i got the problem,
make sure you don't have spaces before
<php>
That fixed the error from index.php, but index.php now reverts to install.php, which results in an error message since this file was removed. Otherwise, the program is still behaving as before. It displays the percentage startup screen, goes to 100%, and then the screen goes white.


verry strange its working for me therefor i posted the code...

you can try to install the instructions found it posted.

it beats me why its working for me but not for you
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 3:25 am

"found it";p="8939" wrote:Hi

This is the info i used to install flash chat on integramod if it is of any use to anyone...

http://integrmod.com/home/viewtopic.php?p=45212#45212

and this is the code for a block

http://integrmod.com/home/viewtopic.php?p=53982#53982

:mrgreen:


if you use that files only the users with the rank with id "1" is moderator in the chat

see
Code: Select all
                        'moderator_fld'=>'user_rank',                       'moderator_value'=>'1',  


is you edit user_rank to user_level how it should be only the admins are moderator or if you edited the value to 2 only the moderators are moderator in chat

with my fix both moderator as admins are admin/moderator in chat

therefore i edited that file

my first integration is a edited version of the first integration posted there inproved to both admins and mods are mod in chat.

only the autologin i could not get to work like the second integration posted there.

still the admin/mod issue remains the same in the second integration posted there

its just a warnign for those who are using that integration

my second integration is working how it should be a admin is admin in the chat and a mod is mod in chat and auto logins work.

therefor i hope you get mine to work because if you do the chat user levels are the same as the forum witch is not by the others
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 3:31 am

"Dr. Bantham";p="8936" wrote:I have two installations of FlashChat. One is for testing, though I tried this solution on both.
http://www.ligotti.net/flashchat/

It has been working previously (manual login) with the following defaultUsrExtCMS.php:
Code: Select all
<php>constArr = array(                       'users'       =>'phpbb_users',                       'login'       =>'username',                       'id'          =>'user_id',                       'password'    =>'user_password',                       'roles'       =>'user_id',                       'encode_type' =>'md5',                       'spy_fld'     =>'user_id',                       'spy_value'   =>'100',                       'profile_path'=>'http://www.ligotti.net/profile.php',                       'profile_arg' =>'?mode=viewprofile&u={$user_id}',                       'moderator_fld'=>'user_rank',                       'moderator_value'=>'1',                       'logoff'       =>'false'             );                         $this->loginStmt = new Statement("SELECT * FROM {$this->constArr['users']} WHERE username=? AND user_password=md5(?) AND user_active<0>constArr['sessions']} WHERE session_id=?");             $this->configStmt = new Statement("SELECT * FROM {$GLOBALS['table_prefix']}config WHERE config_name='cookie_name'");             $this->getUserStmt  = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['id']}=? LIMIT 1");                         $this->getUsersStmt = new Statement("SELECT * FROM {$this->constArr['users']} ORDER BY {$this->constArr['login']}");             $this->delStmt      = new Statement("DELETE FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=?");                         $encode_type = $this->constArr['encode_type'];                                   switch( $encode_type )             {                 case 'md5' : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=MD5(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, MD5(?))");                              break;                 case 'mysql_pass' :                              $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=PASSWORD(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, PASSWORD(?))");                              break;                 default    : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=? LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, ?)");                                break;             }                             }         //-----------------------------------------------------------------------------------------         function isLoggedIn()         {             return $this->userid;         }         //-----------------------------------------------------------------------------------------         function login($login, $password)         {             $this->userid = null;               if($login && $password)             {                 $encode_type = $this->constArr['encode_type'];                 $pass = $password;                 /*                 switch( $encode_type )                 {                     case 'md5' : $pass = md5($password); break;                     default    : $pass = $password; break;                 }*/                                               //Try to find user using provided login                 if(($rs = $this->loginStmt->process($login,$pass)) && ($rec = $rs->next()))                 {                                         //if($rec[$this->constArr['password']] == $pass)                     $this->userid = $rec[$this->constArr['id']];                 }                 else                 {                     //If not - autocreate user with such login and password                     if($this->autocreateUsers)                     {                         //$roles = ($password == $GLOBALS['fc_config']['adminPassword'])?ROLE_ADMIN:($GLOBALS['fc_config']['liveSupportMode']?ROLE_CUSTOMER:ROLE_USER);                         $ins = $this->addUserStmt->process($login, $pass);                                                 if( $ins != null && $ins == 0 )                         {    //we not know if id field is autoincrement                             $this->userid = login($login, $password);                         }                         elseif($ins != null)                         {                             $this->userid = $ins;                         }                     }                 }             }               return $this->userid;         }         //-----------------------------------------------------------------------------------------         function logout()         {             if($this->constArr['logoff'] == 'true') $this->user = null;         }         //-----------------------------------------------------------------------------------------           function getUser($userid)         {             if($userid)             {                 $rs = $this->getUserStmt->process($userid);                 $usr = $rs->next();                 $usr['login'] = $usr[$this->constArr['login']];//important!                 $usr['roles'] = $usr[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_ADMIN : ($usr[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);                                 return $usr;             }             else             {                 return null;             }         }         //-----------------------------------------------------------------------------------------         function getUsers()         {             $users = $this->getUsersStmt->process();             if( is_array($users) )             if( sizeof($users) > 0)             foreach( $users as $k=>$v )             {                 $users['login'] = $users[$this->constArr['login']];//important!                 $users['roles'] = $users[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_ADMIN : ($users[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);             }                         return  $users;         }         //-----------------------------------------------------------------------------------------         function getUserProfile($userid)         {             $spy_fld = $this->constArr['spy_fld'];             $spy_val = $this->constArr['spy_value'];                         $user = $this->getUser($userid);                         if( $spy_fld != '' )             {                                 if( $user[$spy_fld] == $spy_val ) return null;             }                         extract($user);                         return "{$this->constArr['profile_path']}?mode=viewprofile&u={$user_id}";         }         //-----------------------------------------------------------------------------------------         function userInRole($userid, $role)         {             if($user = $this->getUser($userid))             {                 if($role == ROLE_ADMIN)                 {                     if( $user[$this->constArr['moderator_fld']] == $this->constArr['moderator_value']) return true;                     else return false;                 }                                 if($role == ROLE_SPY)                 {                     if( $user[$this->constArr['spy_fld']] == $this->constArr['spy_value']) return true;                     else return false;                 }                                 if($role == ROLE_USER)                 {                     return true;//???                 }                             }             return false;         }                 function getGender($userid) {             // 'M' for Male, 'F' for Female, NULL for undefined             return NULL;                 }                 function addUser($login, $password, $roles)         {             $user = $this->loginStmt->process($login);             if(($rec = $user->next()) != null) return $rec['id'];                         /*             $encode_type = $this->constArr['encode_type'];             $pass = $password;                             switch( $encode_type )             {                 case 'md5' : $pass = md5($password); break;                 default    : $pass = $password; break;             }                 */             return $this->addUserStmt->process($login, $password);                     }                 function deleteUser($login){             $this->delUserStmt->process($login);         }     }         $GLOBALS['fc_config']['cms'] = new DefaultCMS();       //clear 'if moderator' message     foreach($GLOBALS['fc_config']['languages'] as $k => $v)     {         $GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';     }?>
I have the FlashChat database installed into the IntegraMOD database, with the prefix flashchat_.


yust thinking about this...

open phpBB2CMS

and find
[code]  $GLOBALS['fc_config']['db'] = array(    'host' => $dbhost,    'user' => (isset($dbuser) ? $dbuser ]
edit that if needed and this should work for you

remind like this the db table is phpbb_fc_ if your board prefix is phpbb

hope your chat will work with this edit
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Thu Jun 08, 2006 6:31 am

"Skywalker";p="8943" wrote:yust thinking about this...

open phpBB2CMS

and find
[code]  $GLOBALS['fc_config']['db'] = array(      'host' => $dbhost,      'user' => (isset($dbuser) ? $dbuser ]
edit that if needed and this should work for you
I changed this section to match identically with the lines in config.srv.php. The index.php page now displays correctly, but a manual login freezes up at the login background screen. Executing flashchat.php results in the same freeze. I am not using the variable pass extensions ?username={USERNAME}&password={PASSWORD}, as I assume these were abandoned with the new CMS you created.
"Skywalker";p="8943" wrote:remind like this the db table is phpbb_fc_ if your board prefix is phpbb

hope your chat will work with this edit
I am not following this statement entirely. My table prefix for flashchat is flashchat_, not phpbb_flashchat_. Could this be the problem?

I should also clarify that when using your previous fix with integramodCMS, it was displaying my username correctly but the password was a long string of what appeared to be random characters. I believe that if I typed over these in the URL with my true password it would log in correctly. I don't want to muddy the water by discussing the previous CMS you created, but perhaps this may be a clue as well.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 6:46 am

"Dr. Bantham";p="8966" wrote:
hope your chat will work with this edit
I am not following this statement entirely. My table prefix for flashchat is flashchat_, not phpbb_flashchat_. Could this be the problem?

i'm sure of it when the chat loads but does not open its a db connection problem

or rename your tables or use following code:
[code]    $GLOBALS['fc_config']['db'] = array(      'host' => $dbhost,      'user' => (isset($dbuser) ? $dbuser ]
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Thu Jun 08, 2006 7:33 am

"Skywalker";p="8969" wrote:or rename your tables or use following code:
[code]    $GLOBALS['fc_config']['db'] = array(      'host' => $dbhost,      'user' => (isset($dbuser) ? $dbuser ]
This did not work either - same result. Thanks so much for your continued help in the matter. Has anyone else tried this? There may be something specific to your installation that is simply not working in my environment. I am curious to see if anyone else can get it to work. Also, what version of FlashChat are you using?
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 08, 2006 10:13 am

version 4.5.7
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sat Jun 10, 2006 12:20 am

"Dr. Bantham";p="8972" wrote:
"Skywalker";p="8969" wrote:or rename your tables or use following code:
[code]    $GLOBALS['fc_config']['db'] = array(      'host' => $dbhost,      'user' => (isset($dbuser) ? $dbuser ]
This did not work either - same result. Thanks so much for your continued help in the matter. Has anyone else tried this? There may be something specific to your installation that is simply not working in my environment. I am curious to see if anyone else can get it to work. Also, what version of FlashChat are you using?


Did you get it to work?
because i have a verry nice new phpBB2CMS.php file wich allows guests to chat also

in al the previous versions posted here and in the archive guest cannot chat only the members can chat. i will post the file later that this day.
(ofcourse you can always created a new CMS file and putt the content in the new file so you can easely switch between 2 configs.
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sat Jun 10, 2006 2:37 am

No, I did not get it working, but it is the weekend and I can try again. I thought I might try installing FlashChat from scratch, as I have 4.5.6, though I doubt this matters. I can try out the new file as well.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sat Jun 10, 2006 10:10 am

here a new version of phpBB2CMS.php

it works on my board
IntegraMod 140 with flashchat 4.5.7

int his version also guests can chat with a virtual id
note virtual user id's are now someting like Guest98745 when your members id's gets to 10000 you will need to edit:

Code: Select all
 if( $userid >= 90000 )  


and

Code: Select all
 if($userid<90000) {  


change in these codes the 90000 to 900000

and
Code: Select all
              $num = mt_rand(0, 50000);             $userid=90000+$num;  


here replace the 90000and 50000 by 900000 and 500000

now open phpBB2CMS.php and replace entire code by
Code: Select all
 <php>loginStmt = new Statement("SELECT user_id FROM {$GLOBALS['table_prefix']}users WHERE username=? AND user_password=md5(?) AND user_active<>0 LIMIT 1");         $this->loggedinStmt = new Statement("SELECT session_user_id as id FROM {$GLOBALS['table_prefix']}sessions WHERE session_id=?");         $this->configStmt = new Statement("SELECT config_value FROM {$GLOBALS['table_prefix']}config WHERE config_name='cookie_name'");         $this->getUserStmt = new Statement("SELECT user_id as id, username as login, user_level FROM {$GLOBALS['table_prefix']}users WHERE user_id=? AND user_active<>0 LIMIT 1");         $this->getUsersStmt = new Statement("SELECT user_id as id, username as login FROM {$GLOBALS['table_prefix']}users ORDER BY login");         $this->getPhotoStmt = new Statement("SELECT user_avatar FROM {$GLOBALS['table_prefix']}users WHERE user_id=? AND user_active<>0 LIMIT 1");     }       function isLoggedIn() {         $userdata = session_pagestart($GLOBALS['user_ip'], PAGE_FAQ);         init_userprefs($userdata);if( $userdata['user_id'] == -1 )         {             mt_srand((double)microtime() * 1000000);             $num = mt_rand(0, 50000);             $userid=90000+$num;             //return array('id' => $userid, 'login' => 'Guest'+$num, 'roles' => ROLE_CUSTOMER);             $userdata['user_id']=$userid;                             $userdata['user_level']=ROLE_USER;             $userdata['roles']=ROLE_USER;         }         return ($userdata['user_id'] > 0) ? $userdata['user_id'] ], $GLOBALS['user_ip'], PAGE_INDEX, FALSE, FALSE);             return $rec['user_id'];         }           return null;     }       function logout()     {         /*             $userdata = session_pagestart($GLOBALS['user_ip'], PAGE_FAQ);             session_end($userdata['session_id'], $userdata['user_id']);         */     }       function getUser($userid)     {     if( $userid >= 90000 )         {             //mt_srand((double)microtime() * 1000000);             //$num = mt_rand(0, 50000);             //$userid=90000+$num;             $logname='Chatter'.$userid;             return array('id' => $userid, 'login' => $logname, 'roles' => ROLE_USER);         }           if($userid == SPY_USERID) return null;           //fwrite($GLOBALS['fp'], "llada a getuser:".print_r($userid, true)."n");           if($userid && ($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next())) {             if ($rec['user_level'] >= 1) {                              if ($rec['user_level'] == 1) {                             $rec['roles'] = ROLE_ADMIN;                 $rec['user_level'] = ROLE_ADMIN;                            }else{                             $rec['roles'] = ROLE_MODERATOR;                 $rec['user_level'] = ROLE_MODERATOR;                           }                          }               elseif ($GLOBALS['fc_config']['liveSupportMode']) {                 $rec['roles'] = ROLE_CUSTOMER;                 $rec['user_level'] = ROLE_CUSTOMER;             }             else {                 $rec['roles'] = ROLE_USER;                 $rec['user_level'] = ROLE_USER;             }             //fwrite($GLOBALS['fp'], "rec:".print_r($rec, true)."n");             //$rec['login'] = utf8_encode( $rec['login'] );//umlavta characters fix             return $rec;         } else {             return null;         }     }       function getUsers() {         return  $this->getUsersStmt->process();     }       function getUserProfile($userid) {         if($user = $this->getUser($userid)) {             return (($id = $this->isLoggedIn()) && ($id == $userid))?"../profile.php?mode=editprofile":"../profile.php?mode=viewprofile&u=$userid";         } else {             return null;         }     }         function getPhoto($userid)     {         $rs = $this->getPhotoStmt->process($userid);         if(($rec = $rs->next()) == null) return '';           $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);         }           return '../images/avatars/'.$rec['user_avatar'];     }  //   function userInRole($userid, $role) {//       if($user = $this->getUser($userid)) {//           return ($user['roles'] == $role);//       }//       return false;//   }       function userInRole($userid, $role) {         if($userid<90000>getUser($userid)) {             return ($user['roles'] == $role);         }         return false;         }     }       function getGender($userid) {         // 'M' for Male, 'F' for Female, NULL for undefined         return NULL;     }}  $GLOBALS['fc_config']['db'] = array(     'host' => $dbhost,     'user' => (isset($dbuser) ? $dbuser : $dbuname),     'pass' => $dbpasswd,     'base' => $dbname,     'pref' => $table_prefix . "fc_",     );  $GLOBALS['fc_config']['cms'] = new PhpBB2CMS();  //fwrite($GLOBALS['fp'], print_r($GLOBALS['fc_config'], true));  //clear 'if moderator' messageforeach($GLOBALS['fc_config']['languages'] as $k => $v) {         $GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';     }?>


if you user another prefix then "yourboardprefix_fc_"
you need to edit
Code: Select all
    'pref' => $table_prefix . "fc_",

to your prefix to make this CMS file work
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sat Jun 10, 2006 11:03 am

"Skywalker";p="9159" wrote:if you user another prefix then "yourboardprefix_fc_"
you need to edit
Code: Select all
    'pref' => $table_prefix . "fc_",

to your prefix to make this CMS file work
I have not tried this one yet. However, perhaps it is worth pointing out that my flashchat table is based with "flashchat_" and has no prefix otherwise. In other words, it is not "phpbb_flashchat_" or "phpbb_fc". Perhaps this is my problem, or am I misunderstanding the intent of this statement?
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sat Jun 10, 2006 11:18 am

"Dr. Bantham";p="9163" wrote:
"Skywalker";p="9159" wrote:if you user another prefix then "yourboardprefix_fc_"
you need to edit
Code: Select all
    'pref' => $table_prefix . "fc_",

to your prefix to make this CMS file work
I have not tried this one yet. However, perhaps it is worth pointing out that my flashchat table is based with "flashchat_" and has no prefix otherwise. In other words, it is not "phpbb_flashchat_" or "phpbb_fc". Perhaps this is my problem, or am I misunderstanding the intent of this statement?


if you installed the flashchat right as integrated with phpbb it should have those prefix... i think you installed it as stand alone or something... you can delete your excisting flashchat db and reupload the install files then just click the integration checkbox and select phpbb "2.1.0 or above" and reinstall you can upload this CMS before you do the new install so it uses the right prefix. you also van change the 'fc_" to "flashchat_" before you reinstall...

as you want te integrate i alwas recomend to install as integration also...
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sat Jun 10, 2006 11:25 am

That may very well be my problem. My previous installation was integrated via defaultUsrExtCMS which did not involve a phpBB installation, though it did install tables in the same database. I will re-install FlashChat to a new directory using the phpBB installation routine and see if it works. Thanks again.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sat Jun 10, 2006 11:31 am

"Dr. Bantham";p="9165" wrote:That may very well be my problem. My previous installation was integrated via defaultUsrExtCMS which did not involve a phpBB installation, though it did install tables in the same database. I will re-install FlashChat to a new directory using the phpBB installation routine and see if it works. Thanks again.


np glad to help.
note: make sure to delete any spaces before <php> before uploading the CMS
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sun Jun 11, 2006 5:05 am

I installed the latest version of FlashChat and utilized the phpBB installation option, to no avail. I am still getting a freeze. I have tried both the manual and autostart login methods. Here is a copy of my config.php, which was generated upon installation:
Code: Select all
<php> 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'           => false, //set to true to run in debug mode         'version'         => '4.5.7', //architecture release . feature release . patch release           'enableSocketServer' => false, //set to true to enable socket server - see online PDF docs for more details         'liveSupportMode' => false,//set to true to use chat in "Live Support" mode         'errorReports'    => false,//set to true to enable error reports         'enableBots' => true, //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' => 'phpBB2CMS',// 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         ),           //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' => ':) <s><img><s>',             'smi_sad' => ':( <s><img><s>',             'smi_wink' => ';) <s><img><s>',             'smi_laugh' => ':D <s><img><s>',             'smi_red' => ':red:',             'smi_tongue' => ':p :-p',             'smi_ask' => ':? <s><img><s>',             'smi_awe' => ':awe:',             'smi_baby' => ':baby:',             'smi_cool' => '8) <s8><img><s8>',             '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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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,swf',// 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,swf',// 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-12 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 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-12 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) } ?>
The database prefix is the standard phpbb_fc which was defined upon installation. I have installated to a subdirectory "flashchat" in lieu of "chat", but beyond this everything is vanilla. I am working with a fresh installation at this point, therefore I would imagine that this CMS will not work for other folks either.

I also noticed that your last version of the CMS was not included in your post. Were there any other revisions other than the guest chat function? I do not wish to allow guests to chat.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: ayasha » Sun Jun 11, 2006 5:55 am

i hate to be a pain, but can one of you guys get all this together with the right info, which files to mod for the chat, which files to mod for the block and put it together in an install file for this? i have gotten so totally lost in all these post, and the links that Found It gave, so lost i am at the point of uninstalling flash chat.
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sun Jun 11, 2006 6:17 am

The solution that Found It referred to is an entirely different installation approach. I had this one working with the exception of automatic login. Skywalker's solution is a different one which I can not get to function on my installation at all. I am anxious to get his approach to function as he appears to have it integrated - including the automatic login. If I recall correctly, you had FlashChat working just as I did - without the login. Correct? I did not write either integration, therefore it would not be appropriate for me to provide installation instructions, especially for the latter since it is not working for me.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sun Jun 11, 2006 9:03 am

"Dr. Bantham";p="9203" wrote:The solution that Found It referred to is an entirely different installation approach. I had this one working with the exception of automatic login. Skywalker's solution is a different one which I can not get to function on my installation at all. I am anxious to get his approach to function as he appears to have it integrated - including the automatic login. If I recall correctly, you had FlashChat working just as I did - without the login. Correct? I did not write either integration, therefore it would not be appropriate for me to provide installation instructions, especially for the latter since it is not working for me.

we have been working with 3 people on the tufat flash chat forums on this cms file and functions 2 of us use phpbb2 i use integra the other a plain version and the 3th person uses ipb iff i'm correct now i've tested on my board and it worked for me with a small edit of the one for plain phpbb2...

so i thought is share it with the rest...

now i have a heavely modded integramod board so maybe its working true all the addons i have...
i don't know but is it working for me
sorry if this don't works for the rest
i will now stop posting here about flashchat en keep al extra option wich i have now for these cms file for myself and the future edits also.
on this moment i also have the addon to create new usergroups for chat moderators and chat admins and only those users in it have moderator or admin rights in the chat.
i would have shared that also here but after this i'm done sticking my time in making it work for the others integramod users also

i have written mods myself that are posted here and does work..
if my version of the integration posted here wassen't working for me i would not have posted it here...

i will not longer put al the other stuff i'm working on on hold to share it with the rest and then get this attitude...
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sun Jun 11, 2006 9:19 am

"Dr. Bantham";p="9199" wrote:I installed the latest version of FlashChat and utilized the phpBB installation option, to no avail. I am still getting a freeze. I have tried both the manual and autostart login methods. Here is a copy of my config.php, which was generated upon installation:
Code: Select all
<php> 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'           => false, //set to true to run in debug mode         'version'         => '4.5.7', //architecture release . feature release . patch release           'enableSocketServer' => false, //set to true to enable socket server - see online PDF docs for more details         'liveSupportMode' => false,//set to true to use chat in "Live Support" mode         'errorReports'    => false,//set to true to enable error reports         'enableBots' => true, //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' => 'phpBB2CMS',// 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         ),           //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' => ':) <s><img><s>',             'smi_sad' => ':( <s><img><s>',             'smi_wink' => ';) <s><img><s>',             'smi_laugh' => ':D <s><img><s>',             'smi_red' => ':red:',             'smi_tongue' => ':p :-p',             'smi_ask' => ':? <s><img><s>',             'smi_awe' => ':awe:',             'smi_baby' => ':baby:',             'smi_cool' => '8) <s8><img><s8>',             '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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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 = checked/on 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,swf',// 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,swf',// 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-12 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 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-12 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) } ?>
The database prefix is the standard phpbb_fc which was defined upon installation. I have installated to a subdirectory "flashchat" in lieu of "chat", but beyond this everything is vanilla. I am working with a fresh installation at this point, therefore I would imagine that this CMS will not work for other folks either.

I also noticed that your last version of the CMS was not included in your post. Were there any other revisions other than the guest chat function? I do not wish to allow guests to chat.


to quickly answer this question the CMS file was posted by me take a good look and yes the only difference with the previous version was guest logins
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sun Jun 11, 2006 9:33 am

latest contribution about this topic or the im integration of flashchat...

if you would display the users in flashchat but don't want to use iframes? use this mod: http://www.phpbb.de/viewtopic.php?t=66725
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sun Jun 11, 2006 9:44 am

Skywalker,

I did miss the new CMS file in your post for some reason - sorry about that. I also apologize if I had offended or annoyed you in some manner - that was certainly not my intent. My last post was an attempt to explain to Cleo the process that was unfolding. I can understand your reaction otherwise, and thank you for your efforts in troubleshooting my attempts.

Having said that, has anyone else here managed to integrate Skywalker's FlashChat integration? Any clues as to why my attempts have fallen short?
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sun Jun 11, 2006 9:52 am

"Dr. Bantham";p="9217" wrote:Skywalker,

I did miss the new CMS file in your post for some reason - sorry about that. I also apologize if I had offended or annoyed you in some manner - that was certainly not my intent. My last post was an attempt to explain to Cleo the process that was unfolding. I can understand your reaction otherwise, and thank you for your efforts in troubleshooting my attempts.

Having said that, has anyone else here managed to integrate Skywalker's FlashChat integration? Any clues as to why my attempts have fallen short?


i don't know either why they dont work with your chat i'm using multiple boards on one set off files and the chat is working on all off them but when the flaschchat loads and then you get the macintosh background and it freeses its 99% certain its a database connection problem iff the chat loads all the chat files are ok if they are wrong or corrupt or there are bugs in it the chat will not load at all....

i'm putting much energie, time, etc in this so please even if its not working don't use that kind of attitude to me i'm just trying to HELP you and the others and wil continu this if i gets some respect for al the time and energie i put in it its summer i can go swimming also or do other stuff then staying behind my laptop finding solutions for you guys...
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sun Jun 11, 2006 10:01 am

i'm gonna set up a new integramod test board with no extra addons and install flashchat on it like i have it now.
if it works on that one it should work on all the others to...
just make sure you do all the things i posted and make the edits right....
its happens so much that people are complaining this or that dussen't work butt they have installed it wrong
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 13, 2006 12:11 am

i have installed a testdemo (plain IM 140 with flashchat) and my cms is indeed not working on plain im wich i find verry strange.
On my heavely modded board its just working fine.
i don't know of upgrades to phpbb2.0.20 made it work or any of my other mods.
due the many mods i have running i also cant figure this out.
i've been working over a year on my system now.

i will post a working cms with autologin and witch is given moderator permissions based on userlevel for IM 140.

and i'm sorry i didden't get the cms working for the rest of you guys
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: found it » Tue Jun 13, 2006 1:19 am

hi

this is my defaultUsrExtCMS.php file which will run on an integramod forum but you will have to log in...it also excepts moderators and admin but you will have to change the profile path as it is set up on my local machine...

Obviously you do not need to use this if you do not want to but this does work....

Code: Select all
<php>constArr['id']}=? LIMIT 1");             $this->getUsersStmt = new Statement("SELECT * FROM {$this->constArr['users']} ORDER BY {$this->constArr['login']}");             $this->delStmt      = new Statement("DELETE FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=?");               $encode_type = $this->constArr['encode_type'];               switch( $encode_type )             {                 case 'md5' : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=MD5(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, MD5(?))");                              break;                 case 'mysql_pass' :                              $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=PASSWORD(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, PASSWORD(?))");                              break;                 default    : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=? LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, ?)");                                break;             }         }         //-----------------------------------------------------------------------------------------         function isLoggedIn()         {             return $this->userid;         }         //-----------------------------------------------------------------------------------------         function login($login, $password)         {             $this->userid = null;               if($login && $password)             {                 $encode_type = $this->constArr['encode_type'];                 $pass = $password;                 /*                 switch( $encode_type )                 {                     case 'md5' : $pass = md5($password); break;                     default    : $pass = $password; break;                 }*/                   //Try to find user using provided login                 if(($rs = $this->loginStmt->process($login,$pass)) && ($rec = $rs->next()))                 {                     //if($rec[$this->constArr['password']] == $pass)                     $this->userid = $rec[$this->constArr['id']];                 }                 else                 {                     //If not - autocreate user with such login and password                     if($this->autocreateUsers)                     {                         //$roles = ($password == $GLOBALS['fc_config']['adminPassword'])?ROLE_ADMIN:($GLOBALS['fc_config']['liveSupportMode']?ROLE_CUSTOMER:ROLE_USER);                         $ins = $this->addUserStmt->process($login, $pass);                           if( $ins != null && $ins == 0 )                         {   //we not know if id field is autoincrement                             $this->userid = login($login, $password);                         }                         elseif($ins != null)                         {                             $this->userid = $ins;                         }                     }                 }             }               return $this->userid;         }         //-----------------------------------------------------------------------------------------         function logout()         {             if($this->constArr['logoff'] == 'true') $this->user = null;         }         //-----------------------------------------------------------------------------------------         function getUser($userid)         {             if($userid)             {                 $rs = $this->getUserStmt->process($userid);                 $usr = $rs->next();                 $usr['login'] = $usr[$this->constArr['login']];//important!                 $usr['roles'] = $usr[$this->constArr['admin_fld']] == $this->constArr['admin_value'] ? ROLE_ADMIN :                 ($usr[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY :                 ($usr[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_MODERATOR : ROLE_USER));                   return $usr;             }             else             {                 return null;             }         }         //-----------------------------------------------------------------------------------------         function getUsers()         {             $users = $this->getUsersStmt->process();             if( is_array($users) )             if( sizeof($users) > 0)             foreach( $users as $k=>$v )             {                 $users['login'] = $users[$this->constArr['login']];//important!                 $users['roles'] = $users[$this->constArr['admin_fld']] == $this->constArr['admin_value'] ? ROLE_ADMIN :                 ($users[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY :                 ($usr[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_MODERATOR : ROLE_USER));             }               return  $users;         }         //-----------------------------------------------------------------------------------------         function getUserProfile($userid)         {             $spy_fld = $this->constArr['spy_fld'];             $spy_val = $this->constArr['spy_value'];               $user = $this->getUser($userid);               if( $spy_fld != '' )             {                 if( $user[$spy_fld] == $spy_val ) return null;             }               extract($user);               return "{$this->constArr['profile_path']}?user={$user_id}";         }         //-----------------------------------------------------------------------------------------         function userInRole($userid, $role)         {             if($user = $this->getUser($userid))             {                 if($role == ROLE_ADMIN)                 {                     if( $user[$this->constArr['admin_fld']] == $this->constArr['admin_value']) return true;                     else return false;                 }                                 if($role == ROLE_MODERATOR)                 {                     if( $user[$this->constArr['moderator_fld']] == $this->constArr['moderator_value']) return true;                     else return false;                 }                   if($role == ROLE_SPY)                 {                     if( $user[$this->constArr['spy_fld']] == $this->constArr['spy_value']) return true;                     else return false;                 }                                   if($role == ROLE_USER)                 {                     return true;//???                 }             }             return false;         }           function getGender($userid) {             // 'M' for Male, 'F' for Female, NULL for undefined             return NULL;         }           function addUser($login, $password, $roles)         {             $user = $this->loginStmt->process($login);             if(($rec = $user->next()) != null) return $rec['id'];               /*             $encode_type = $this->constArr['encode_type'];             $pass = $password;               switch( $encode_type )             {                 case 'md5' : $pass = md5($password); break;                 default    : $pass = $password; break;             }             */             return $this->addUserStmt->process($login, $password);           }           function deleteUser($login){             $this->delUserStmt->process($login);         }     }       $GLOBALS['fc_config']['cms'] = new DefaultCMS();       //clear 'if moderator' message     foreach($GLOBALS['fc_config']['languages'] as $k => $v)     {         $GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';     }?>
Last edited by found it on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Mar 27, 2006 4:29 am
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 13, 2006 2:26 am

"found it";p="9335" wrote:hi

this is my defaultUsrExtCMS.php file which will run on an integramod forum but you will have to log in...it also excepts moderators and admin but you will have to change the profile path as it is set up on my local machine...

Obviously you do not need to use this if you do not want to but this does work....

Code: Select all
<php>constArr['id']}=? LIMIT 1");             $this->getUsersStmt = new Statement("SELECT * FROM {$this->constArr['users']} ORDER BY {$this->constArr['login']}");             $this->delStmt      = new Statement("DELETE FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=?");               $encode_type = $this->constArr['encode_type'];               switch( $encode_type )             {                 case 'md5' : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=MD5(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, MD5(?))");                              break;                 case 'mysql_pass' :                              $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=PASSWORD(?) LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, PASSWORD(?))");                              break;                 default    : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=? LIMIT 1");                              $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, ?)");                                break;             }         }         //-----------------------------------------------------------------------------------------         function isLoggedIn()         {             return $this->userid;         }         //-----------------------------------------------------------------------------------------         function login($login, $password)         {             $this->userid = null;               if($login && $password)             {                 $encode_type = $this->constArr['encode_type'];                 $pass = $password;                 /*                 switch( $encode_type )                 {                     case 'md5' : $pass = md5($password); break;                     default    : $pass = $password; break;                 }*/                   //Try to find user using provided login                 if(($rs = $this->loginStmt->process($login,$pass)) && ($rec = $rs->next()))                 {                     //if($rec[$this->constArr['password']] == $pass)                     $this->userid = $rec[$this->constArr['id']];                 }                 else                 {                     //If not - autocreate user with such login and password                     if($this->autocreateUsers)                     {                         //$roles = ($password == $GLOBALS['fc_config']['adminPassword'])?ROLE_ADMIN:($GLOBALS['fc_config']['liveSupportMode']?ROLE_CUSTOMER:ROLE_USER);                         $ins = $this->addUserStmt->process($login, $pass);                           if( $ins != null && $ins == 0 )                         {   //we not know if id field is autoincrement                             $this->userid = login($login, $password);                         }                         elseif($ins != null)                         {                             $this->userid = $ins;                         }                     }                 }             }               return $this->userid;         }         //-----------------------------------------------------------------------------------------         function logout()         {             if($this->constArr['logoff'] == 'true') $this->user = null;         }         //-----------------------------------------------------------------------------------------         function getUser($userid)         {             if($userid)             {                 $rs = $this->getUserStmt->process($userid);                 $usr = $rs->next();                 $usr['login'] = $usr[$this->constArr['login']];//important!                 $usr['roles'] = $usr[$this->constArr['admin_fld']] == $this->constArr['admin_value'] ? ROLE_ADMIN :                 ($usr[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY :                 ($usr[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_MODERATOR : ROLE_USER));                   return $usr;             }             else             {                 return null;             }         }         //-----------------------------------------------------------------------------------------         function getUsers()         {             $users = $this->getUsersStmt->process();             if( is_array($users) )             if( sizeof($users) > 0)             foreach( $users as $k=>$v )             {                 $users['login'] = $users[$this->constArr['login']];//important!                 $users['roles'] = $users[$this->constArr['admin_fld']] == $this->constArr['admin_value'] ? ROLE_ADMIN :                 ($users[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY :                 ($usr[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_MODERATOR : ROLE_USER));             }               return  $users;         }         //-----------------------------------------------------------------------------------------         function getUserProfile($userid)         {             $spy_fld = $this->constArr['spy_fld'];             $spy_val = $this->constArr['spy_value'];               $user = $this->getUser($userid);               if( $spy_fld != '' )             {                 if( $user[$spy_fld] == $spy_val ) return null;             }               extract($user);               return "{$this->constArr['profile_path']}?user={$user_id}";         }         //-----------------------------------------------------------------------------------------         function userInRole($userid, $role)         {             if($user = $this->getUser($userid))             {                 if($role == ROLE_ADMIN)                 {                     if( $user[$this->constArr['admin_fld']] == $this->constArr['admin_value']) return true;                     else return false;                 }                                 if($role == ROLE_MODERATOR)                 {                     if( $user[$this->constArr['moderator_fld']] == $this->constArr['moderator_value']) return true;                     else return false;                 }                   if($role == ROLE_SPY)                 {                     if( $user[$this->constArr['spy_fld']] == $this->constArr['spy_value']) return true;                     else return false;                 }                                   if($role == ROLE_USER)                 {                     return true;//???                 }             }             return false;         }           function getGender($userid) {             // 'M' for Male, 'F' for Female, NULL for undefined             return NULL;         }           function addUser($login, $password, $roles)         {             $user = $this->loginStmt->process($login);             if(($rec = $user->next()) != null) return $rec['id'];               /*             $encode_type = $this->constArr['encode_type'];             $pass = $password;               switch( $encode_type )             {                 case 'md5' : $pass = md5($password); break;                 default    : $pass = $password; break;             }             */             return $this->addUserStmt->process($login, $password);           }           function deleteUser($login){             $this->delUserStmt->process($login);         }     }       $GLOBALS['fc_config']['cms'] = new DefaultCMS();       //clear 'if moderator' message     foreach($GLOBALS['fc_config']['languages'] as $k => $v)     {         $GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';     }?>


i will take a look at this later this week and try to edit it that auto logins will work with it also

as the profile path you just can change it to ../profile.php and it will work on all the boards

i use 3 domains on one set of files and it works perfectly
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Tue Jun 13, 2006 3:11 am

"Skywalker";p="9328" wrote:i don't know of upgrades to phpbb2.0.20 made it work or any of my other mods.
My board is IntegraMOD 1.4.0 with upgrades installed through phpBB 2.0.20 and phpBB Security 1.0.3, if this should help.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 13, 2006 5:24 am

"Dr. Bantham";p="9340" wrote:
"Skywalker";p="9328" wrote:i don't know of upgrades to phpbb2.0.20 made it work or any of my other mods.
My board is IntegraMOD 1.4.0 with upgrades installed through phpBB 2.0.20 and phpBB Security 1.0.3, if this should help.

ok but then i know for sure i can't search for witch addon made it possible for me to use my CMS file
i have over 250 mods on it
i will try to create a integramodCMS.php based on the one foundit posted
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Tue Jun 13, 2006 5:46 am

i've took a quick look at it and i can make an autologin function for this.
to do this i need to create about 5 new files and i will need to start a new treath to upload a zip with the new files in it.

with that mod it will pull the usernames and passwords out of the db and you can create an auto login link like flashchat.php?username=USERNAME&password=MD5_ENCRYPTEDPASSWORD
for the admins section i will create new files to let the admin section uses normal login methods.
this wil add seperate adminCMS file seperate admin config, seperate admin common and seperate admin smartyinit.
but it does work.

iff someone is interested in this and want to use this function just let me know and i'm on it
think i can heave it ready already today

please note that the autologin is created for flashchat 4.5.7
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Tue Jun 13, 2006 4:12 pm

"Skywalker";p="9346" wrote:
iff someone is interested in this and want to use this function just let me know and i'm on it
think i can heave it ready already today

please note that the autologin is created for flashchat 4.5.7
I'm definitely interested. I have been running the same CMS as found it and it works great - with the exception of the autologin. If you would manage to get that working I would be a happy camper indeed. <img>
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Wed Jun 14, 2006 8:10 am

"Dr. Bantham";p="9388" wrote:
"Skywalker";p="9346" wrote:
iff someone is interested in this and want to use this function just let me know and i'm on it
think i can heave it ready already today

please note that the autologin is created for flashchat 4.5.7
I'm definitely interested. I have been running the same CMS as found it and it works great - with the exception of the autologin. If you would manage to get that working I would be a happy camper indeed. <img>


here you go :
http://integramod.com/forum/viewtopic.php?p=9433
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: SLY LS1 » Thu Jun 15, 2006 1:07 am

where can you download flashchat ?
Last edited by SLY LS1 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

SLY LS1
Members
Members
 
Posts: 70
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sun Apr 09, 2006 12:49 am
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Thu Jun 15, 2006 1:50 am

"SLY LS1";p="9473" wrote:where can you download flashchat ?

http://www.tufat.com
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sun Jun 18, 2006 11:39 am

I tried the new FlashChat IM integration with password transfer, and I must have something off. It seems to be connecting to the database, as the link generated lists my unsername correctly, but the login box states "incorrect username or password". The URL generated has a long series of scrambled letters and numbers for the password element. If I manually type my password within the URL in place of the scrambled password, it logs in correctly. Therefore, I assume I have a setting incorrect which is not allowing for the translation of the encrypted password. This is a new installation of FlashChat which is installed within the IntegraMOD database with the phpbb_fc prefix. Any ideas? Thanks again for hanging in there with us!
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sun Jun 18, 2006 12:44 pm

"Dr. Bantham";p="9697" wrote:I tried the new FlashChat IM integration with password transfer, and I must have something off. It seems to be connecting to the database, as the link generated lists my unsername correctly, but the login box states "incorrect username or password". The URL generated has a long series of scrambled letters and numbers for the password element. If I manually type my password within the URL in place of the scrambled password, it logs in correctly. Therefore, I assume I have a setting incorrect which is not allowing for the translation of the encrypted password. This is a new installation of FlashChat which is installed within the IntegraMOD database with the phpbb_fc prefix. Any ideas? Thanks again for hanging in there with us!


i had renamed the files wrong
and therefor the mod didden't worked how it suposed to do.
i know have corrected the files and reuploaded them just download the mod again and replace all files.
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Dr. Bantham » Sun Jun 18, 2006 2:55 pm

It works! I am ever grateful!

Though this next question does not fall into a standard integration, perhaps you can help with little effort. I am using a javascript menu system which is called from overallheader.tpl and it seems that the login variables are not transferred when I call the link from this javascript. Again, it works like a charm when linking through conventional means. Do you have an idea of how I can transfer the variables to a javascript routine?

Again, many thanks for the patience and effort of following through!
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Sun Jun 18, 2006 3:12 pm

"Dr. Bantham";p="9722" wrote:It works! I am ever grateful!

Though this next question does not fall into a standard integration, perhaps you can help with little effort. I am using a javascript menu system which is called from overallheader.tpl and it seems that the login variables are not transferred when I call the link from this javascript. Again, it works like a charm when linking through conventional means. Do you have an idea of how I can transfer the variables to a javascript routine?

Again, many thanks for the patience and effort of following through!

pm me the javascript and i'll take a look
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: MrGrim » Mon Sep 18, 2006 8:27 am

any new files?
Last edited by MrGrim on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Not a newbie...Had a name Change.lol T.r.a.g!!!!

MrGrim
Members
Members
 
Posts: 84
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Wed Jun 28, 2006 2:53 am
Cash on hand: 0.00

PostAuthor: suicico » Thu Sep 28, 2006 5:08 am

a random question ..
if i decide to put this in a im 1.4.0 will i be able to find the files requested to do so? i mean this version of flash chat is still out there ?
Also (cause i didnt get it) does the autologin work?
thanks
Last edited by suicico on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]The World Of iPods In Greek[/url]
[url=http]Home Of yetileague[/url]

suicico
Newbie
Newbie
 
Posts: 23
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 10, 2006 10:47 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: dan0042 » Sun Oct 08, 2006 1:04 pm

i still need help on this ,Will some one up date this
Thanks Dan
Last edited by dan0042 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
:#: <img>
User avatar
dan0042
Integra Member
Integra Member
 
Posts: 170
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 21, 2006 4:06 pm
Cash on hand: 0.00

PostAuthor: Imajica » Sun Oct 08, 2006 1:25 pm

Dan,

I've been using flashchat for about 8 months on IM portal and then IntergaMod without much of an issue... well there were issues but I created most of those myself trying to customizing the interface

I'll be glad to help you out of I can

Imajica
Last edited by Imajica on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Imajica
Integra Member
Integra Member
 
Posts: 143
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Thu Jul 13, 2006 7:24 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: dan0042 » Thu Oct 19, 2006 4:53 pm

any one like have flashchat mods
Last edited by dan0042 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
:#: <img>
User avatar
dan0042
Integra Member
Integra Member
 
Posts: 170
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 21, 2006 4:06 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: Skywalker » Fri Jul 04, 2008 6:26 am

due a server crash i've lost my flash chat .script and also the install .script, i also dont know anymore with what email adress the .script was bought so i cant download it again, can somebody please provide a download link trough pm for a recent version of flash chat so i can use this system again, you would help me a lot i dont have a credit card so i cant transfer money to my paypall acount to pay for it again
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: DjPorkchop » Sun Jul 06, 2008 3:11 pm

I stand to be corrected if Im wrong, BUT FlashChat is payware. Payware links can not be given out on this website due to copyrights and such. Freeware, and standard phpBB mods can be discussed and links given out.

I personally had a flashchat install as recent as 2 months ago up and running with no issues what so ever. I do believe the only issue I had was when right clicking a user, it was having difficulties finding the users profile, but otherwise it was great. Autologin and all worked accordingly. I however can not provide any links to view due to a dispute with me and the customer that I was hosting and doing all his custom work for. The website is no longer, and I could kick myself for not taking notes. <img> BUT I know it works good.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1591
Likes: 132 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: Flash Chat

PostAuthor: Skywalker » Sun Jul 06, 2008 3:48 pm

"MWE_001";p="33581" wrote:I stand to be corrected if Im wrong, BUT FlashChat is payware. Payware links can not be given out on this website due to copyrights and such. Freeware, and standard phpBB mods can be discussed and links given out.

I personally had a flashchat install as recent as 2 months ago up and running with no issues what so ever. I do believe the only issue I had was when right clicking a user, it was having difficulties finding the users profile, but otherwise it was great. Autologin and all worked accordingly. I however can not provide any links to view due to a dispute with me and the customer that I was hosting and doing all his custom work for. The website is no longer, and I could kick myself for not taking notes. <img> BUT I know it works good.

i know you got to pay for it, i have done so myself i just dont know with witch email adres and so so i cannot login again to download the latest version again. thats the problem i have, i had a pc crash and all data was lost so also al the emails and the .script on my computer... thats the problem i have i want to use it again, i had it before...
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Re: Flash Chat

PostAuthor: DjPorkchop » Wed Jul 09, 2008 6:20 pm

can you maybe contact them via email and explain the situation maybe? <img>
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1591
Likes: 132 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]