vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Flashchat Integration for vB 3.5 (https://vborg.vbsupport.ru/showthread.php?t=91278)

ausnrl 10-24-2005 04:55 AM

ok well it doesnt seem to work. do i upload it into a flashchat folder? or in the main forum folder? If its in a flashchat folder it doesnt seem to connect to the folders right beacause its in a different folder so it doesnt work

Greebo 10-26-2005 09:59 PM

Quote:

Originally Posted by Paul M
One more thing - which I must add to the instructions - remember to put your vb licence number in the vbulletin35CMS file.

Where in that file? I don't see it marked?

Greebo 10-26-2005 10:00 PM

I've got flashchat installed - it was installed before - but with the upgrade, when it loads, its not coming up with any chat rooms.

http://www.pilotsofamerica.com - link is at the top of the page

At the moment, I have the forum turned off for upgrades - would that affect?

Paul M 10-26-2005 10:09 PM

Quote:

Originally Posted by Greebo
Where in that file? I don't see it marked?

Thats an old quote.

From the first post ......

Quote:

vB 3.5 integration allows ;

* Authorised members to be automatically logged in.
* All non authorised members are locked out (both are based on usergroup membership).
* If enabled, the users location is now displayed in WOL (use the plugin to avoid "Unknown Location").
* The CMS file no longer requires your vb licence code to be entered.
* Automatic login now works even if a member has not ticked "remember me".

Paul M 10-26-2005 10:10 PM

Quote:

Originally Posted by Greebo
At the moment, I have the forum turned off for upgrades - would that affect?

Nope, won't make any difference.

Greebo 10-26-2005 10:26 PM

Hmm. Well the chat loads all the load bars and then just opens up to a blank blue screen. Wierd.

If you have any suggestions, I'm all ears. But I'm gonna keep lookin around. :)

Greebo 10-26-2005 10:34 PM

Never mind. It was a IBTK error... (I changed the wrong stuff in the CMS file)

Greebo 10-26-2005 10:40 PM

ok, here's a real one now - I've got 3 rooms defined in the database, and flash chat is opening up with those rooms, PLUS the default rooms I told it I didn't want during the install...

ANy idea where its getting those extra rooms from?

Marv 10-27-2005 04:21 PM

Paul,

I´ve run into the same problem as Tim did before. Only difference - I had a fresh install. Now index.php is just blank page.
While installing flashchat the installation resulted in a blank page, too, after choosing the cms vb3.5 and clicking "continue"..

I would really appreciate, if you could have a look into that ? Further details are coming with a PM.

Paul M 10-27-2005 04:37 PM

Quote:

Originally Posted by Greebo
ANy idea where its getting those extra rooms from?

From the database, obviously you have six rooms defined.

webananda 10-27-2005 11:25 PM

Thanks very much for the great integration and add-on!
After a fresh install of the latest FlashChat 4.41 with the built-in vB 3.5 integration, as well as the WOL add-on, everything works great! No problems at all...the directions are straight-forward and easy to follow.

Well deserved Kudos to Paul!

Greebo 10-28-2005 12:31 AM

Quote:

Originally Posted by Paul M
From the database, obviously you have six rooms defined.

No, I don't. I've checked the tables twice and there are only three listed in _fc_rooms:
Quote:

mysql> select * from _fc_rooms;
+----+---------------------+---------------------+-----------------+----------+-------------+
| id | updated | created | name | ispublic | ispermanent |
+----+---------------------+---------------------+-----------------+----------+-------------+
| 1 | 2005-05-17 13:10:22 | 2005-05-17 13:06:08 | Hangar Talk | y | 1 |
| 3 | 2005-10-24 08:27:36 | 2005-05-17 13:06:08 | Tech Support | y | 3 |
| 5 | 2005-10-25 06:40:38 | 2005-05-17 13:09:42 | Flight Training | y | 2 |
+----+---------------------+---------------------+-----------------+----------+-------------+
3 rows in set (0.05 sec)


ukdalai 10-29-2005 08:46 PM

Hi all where do i put the vbulletin35CMS.php file, so i can change the permmisions, im using vb3.5.
ive installed flashchat, its installed and working i just want to change the permissions

As yet i have not edited any files except EN.php for the message.

Regards

Craig

Paul M 10-29-2005 09:51 PM

the CMS file goes in /chat/inc/cmses/

ukdalai 10-29-2005 10:01 PM

sorry i found that, i just pmed you

Paul M 10-29-2005 10:27 PM

Quote:

Originally Posted by ukdalai
sorry i found that, i just pmed you

Yep, logged in and fixed for you, your problem was a small editing error. :)

thewitt 10-30-2005 02:45 AM

I downloaded FlashChat 4.1.1 today, and tried to install it on top of a vB 3.5 upgrade I also did today.

I installed your patch, and still cannot get by the "You do not have permission to enter the chat" error - and cannot log into the admin.

The install seemed to go through without error.

Any ideas?

-t

Simms 10-30-2005 03:22 AM

Everything's working fine here...thanks for the hack, Paul. :)

One thing I would like, however, but can't figure it out for myself...

On the standard FlashChat login page, there is a "Popup Login" option, where the chat is opened via js in a 800x600 window separate from the browser (ie, not in a window or tab).

Currently, I have my vB navbar set up with the Chat link as a dropdown menu (a la "Quick Links") where users can choose from the usual fullscreen flashchat or a "wrap" version where I embedded the chat within my site template in an iframe. Is it possible to add a direct link to the Popup Login option as well, when not using the stateless CMS mode? The majority of the time I have very little use for the popup login, but for the times I do need to use it, it would nice to be able to access it directly, without having to go to /forums/flashchat/ and typing in my username and pw.

Any thoughts or advice would be greatly appreciated. TIA.

pauloo 10-30-2005 08:35 AM

Thank you Paul M, work's fine!

Paul M 10-30-2005 11:36 AM

Quote:

Originally Posted by thewitt
I installed your patch, and still cannot get by the "You do not have permission to enter the chat" error - and cannot log into the admin.

The install seemed to go through without error.

Any ideas?

Hi,

I had a look, with the login details you supplied, and have fixed your issue.

Basically you hadn't done Step 5 (setting the access for your usergroups). On a standard vB installation, Usergroup 8 is the "banned" group, however, on your forum it is a members group that most people are a part of. You had not moved group 8 in the CMS file from the banned list to the user list, so anyone who was a member of this group was not allowed access. :)

thewitt 10-30-2005 11:54 AM

Thanks for your help Paul. I really feel like a putz :confused:

I must have looked at those group numbers a dozen times last night!

-t

pauloo 11-02-2005 04:57 PM

FlashChat 4.4.2 is out now ;)

Thanks Paul M

Paul M 11-02-2005 05:34 PM

Quote:

Originally Posted by pauloo
FlashChat 4.4.2 is out now ;)

Thanks Paul M

Yes, I downloaded it this morning. It still has the older 2.47 CMS file in it .......

DeepXP 11-02-2005 07:49 PM

Oh, now this is getting irritating.
I just downloaded latest version of flashchat, earlier I had version 4.33 installed with old version of this plugin, things were working fine...

Now I just uploaded all new files except config and config.srv...nothing worked, it shows me /chat/ as blank, even flashchat.php as blank..

I tried to install the thing again, made changes in lang/en file and also uploaded cms file into cmses..

I selected vbulletin 3.5 while installation and on step 2 - everything blank..nothing happens...

any idea how to get it working?

Thanks
Deep

DeepXP 11-02-2005 07:59 PM

aah never mind...I found the problem..it was wrong path for my config.php in vbulletin35CMS.php

Deep

Paul M 11-02-2005 08:58 PM

Quote:

Originally Posted by DeepXP
aah never mind...I found the problem..it was wrong path for my config.php in vbulletin35CMS.php

As in this bit ....

Quote:

[high]The CMS file assumes that you are installing Flashchat in your forums root folder - this is the same folder as your usercp.php file and includes folder. Installation will fail if you do not do this.[/high]

DeepXP 11-02-2005 09:06 PM

Yup, exactly...and I somehow managed to forget it :D..sometimes we do make silly mistakes ;)

mp3dreaming 11-02-2005 10:04 PM

we have installed this and now it lets just staff in but no other users..and I cant find the control for it in the ACP of Vbulletin 3.5...so how do I unban regular members if I have no cms or ACP ??

Paul M 11-02-2005 10:20 PM

Quote:

Originally Posted by mp3dreaming
we have installed this and now it lets just staff in but no other users..and I cant find the control for it in the ACP of Vbulletin 3.5

There is no access control in the ACP, the final step of both versions tells you ;

Quote:

Edit the relevant section at the bottom of the vbulletin35CMS.php file to change the access options.
:)

Ramsesx 11-03-2005 12:09 AM

Is there anything in the acp where can change the options same as roomnames and so on paul? Sorry for asking but now I'm searching for a hour but don't find anything.
Thank you.

Paul M 11-03-2005 02:58 AM

Quote:

Originally Posted by Ramsesx
Is there anything in the acp where can change the options same as roomnames and so on paul? Sorry for asking but now I'm searching for a hour but don't find anything.
Thank you.

No. Flashchat has it's own admin system.

ausnrl 11-03-2005 04:31 AM

I Keep getting this error i keep changing it to what it says

Warning: main(/home/ausnrl/public_html/forums/../../../includes/config.php): failed to open stream: No such file or directory in /home/ausnrl/public_html/forums/flashchat.php on line 7

Fatal error: main(): Failed opening required '/home/ausnrl/public_html/forums/../../../includes/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ausnrl/public_html/forums/flashchat.php on line 7

i tried
/home/ausnrl/public_html/forums/flashchat.php
/ausnrl/public_html/forums/flashchat.php

and i tried editing the xml

DeepXP 11-03-2005 04:45 AM

well, it looks like you have vriable vbpath as well as relative path added in the config.php path string...

try somehing like this...

PHP Code:

require_once '/home/ausnrl/public_html/forums/includes/config.php'

in your vbulletin35CMS.php file


or simply

PHP Code:

require_once $vbpath '/config.php'

sine you have both in the forums folder.

Regards,
Deep

ausnrl 11-03-2005 07:17 AM

Now we get this error

Fatal error: Cannot instantiate non-existent class: statement in /home/ausnrl/public_html/forums/flashchat.php on line 19

DeepXP 11-03-2005 09:23 AM

okay to me it looks like that you have just copied flashchat.php from chat folder to main forums folder...

Copy whole chat folder as it is in the forums folder so your flashchat.php will be in forums/chat/flashchat.php

and then you can edit the path of forum config file in vbulletin35CMS.php as

PHP Code:

 require_once '/home/ausnrl/public_html/forums/includes/config.php'

Regards,
Deep

Paul M 11-03-2005 03:42 PM

Just follow the original instructions and notes (which clearly tell you to install flashchat inside your forums folder) so you will have a chat folder with your admincp/modcp/includes etc folders. No editing of any path is required if you do it right in the first place. :)

ausnrl 11-04-2005 06:18 AM

I did that and i get an error with the statements

Paul M 11-04-2005 08:36 AM

Well you seem to have have made a mistake somewhere. Please refer to the support section in the main post, and have a read of my signature.

ausnrl 11-05-2005 01:17 AM

Ok i did the install thing.Il copy my whole document

Code:

<?php

//        Paul M v2.51 - for vB 3.5.0 //
//  For Flashchat v4.4.1 and above only //

$vbpath = realpath(dirname(__FILE__));
require_once '/home/ausnrl/public_html/forums/includes/config.php';

class vBulletinCMS {

        var $userid;
        var $loginStmt;
        var $getUserStmt;
        var $getUsersStmt;
 
        function vBulletinCMS()
        {
            $this->getUserStmt =
        new Statement("SELECT userid AS id, password, salt FROM {$GLOBALS['vbulletin']['prefix']}user WHERE username=? LIMIT 1");
                $this->getUserStmt =
                new Statement("SELECT userid AS id, username AS login, usergroupid, membergroupids FROM {$GLOBALS['vbulletin']['prefix']}user WHERE userid=? LIMIT 1");
                $this->getUsersStmt =
                new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['vbulletin']['prefix']}user");
                $this->getUserForSession =
                new Statement("SELECT userid FROM {$GLOBALS['vbulletin']['prefix']}session WHERE sessionhash=? ORDER BY lastactivity DESC LIMIT 1");
                $this->updateSessionForUser =
                new Statement("UPDATE {$GLOBALS['vbulletin']['prefix']}session SET lastactivity=?, location='$_SERVER[REQUEST_URI]' WHERE userid=?");
               

                $this->userid = intval($_COOKIE[$GLOBALS['vbulletin']['cookie'] . 'flashuserid']);
                if($this->userid == 0)
                {
                        $this->userid = intval($_COOKIE[$GLOBALS['vbulletin']['cookie'] . 'userid']);
                        if($this->userid == 0)
                        {
                                $rs = $this->getUserForSession->process($_COOKIE[$GLOBALS['vbulletin']['cookie'] . 'sessionhash']);
                                if($rec = $rs->next())
                                {
                                        $this->userid = intval($rec['userid']);
                                        setcookie($GLOBALS['vbulletin']['cookie'] . 'flashuserid', $this->userid);
                                }
                        }
                        else
                        {
                                setcookie($GLOBALS['vbulletin']['cookie'] . 'flashuserid', $this->userid);
                        }
                }
                if($_POST['t'] AND $GLOBALS['vbulletin']['sessupdate'] AND $this->userid > 0) $ru = $this->updateSessionForUser->process(time(),$this->userid);
                if($this->userid == 0) $this->userid == NULL;
        }
 
//        Auto Login
        function isLoggedIn()
        {
                if($this->userid > 0 AND $GLOBALS['vbulletin']['sessupdate']) $ru = $this->updateSessionForUser->process(time(),$this->userid);
                return $this->userid;
        }
 
//        Manual Login
        function login($login, $password)
        {
                $rv = NULL;
                $login = utf8_to_entities($login);
                $rs = $this->loginStmt->process(utf8_decode($login));
                $rec = $rs->next();
                if($rs)
                {
                        $password = utf8_to_entities($password);
                        if(($rec['password'] == md5(md5(utf8_decode($password)) . $rec['salt']))) $rv = $rec['id'];
                }
                if($rv > 0 AND $GLOBALS['vbulletin']['sessupdate']) $ru = $this->updateSessionForUser->process(time(),$rv);
                return $rv;
        }
 
  // performs logging out for actual user
        function logout() { }
 
        function getRoles($usergroupid)
        {
                $groups = explode(',',$usergroupid);
                $userrole = ROLE_NOBODY ; // Set default access
                foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole = ROLE_USER; // Check Allowed groups
                foreach ($GLOBALS['vbulletin']['mods'] as $group) if (in_array($group,$groups)) $userrole = ROLE_MODERATOR; // Check Moderator groups
                foreach ($GLOBALS['vbulletin']['admin'] as $group) if (in_array($group,$groups)) $userrole = ROLE_ADMIN; // Check Admin groups
                foreach ($GLOBALS['vbulletin']['banned'] as $group) if (in_array($group,$groups)) $userrole = ROLE_NOBODY; // Check Banned groups
                return $userrole;
        } 

        function getUser($userid)
        {
                if(($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next()))
                {
                        $rec['usergroupid'] .= ",".$rec['membergroupids'] ;
                        $rec['roles'] = $this->getRoles($rec['usergroupid']);
                        $tagencoded = entities_to_utf8($rec['login']);
                        if(strlen($rec['login']) > strlen($tagencoded)) $rec['login'] = $tagencoded;
                        else $rec['login'] = utf8_encode($rec['login']);
                        return $rec;
                }
                return null;
        }
 
 
  // returns an object of vBulletinUsersRS class - an iterator on all existing users/admins
        function getUsers()
        {
                return $this->getUsersStmt->process();
        }
 
 
  // returns URL of user profile page for such user id or null if user not found
        function getUserProfile($userid)
        {
                return ($this->userid == $userid) ? "../profile.php?do=editprofile" : "../member.php?u=$userid";
        }
 
        function userInRole($userid, $role)
        {
                $user = $this->getUser($userid) ;
                if($role == $user['roles']) return true;
                return false;
        }
 
        function getGender($user)
        {
                return NULL;       
        }
}

$GLOBALS['fc_config']['db'] = array(
        'base' => $config['Database']['dbname'],
        'user' => $config['MasterServer']['username'],
        'pass' => $config['MasterServer']['password'],
    'pref' => $GLOBALS['fc_config']['db']['pref'],
        'host' => $config['MasterServer']['servername'].":".$config['MasterServer']['port'],
);

$GLOBALS['vbulletin'] = array(
        'cookie' => $config['Misc']['cookieprefix'],
        'prefix' => $config['Database']['tableprefix'],

        'sessupdate' => true, // Update vB session table when user speaks.
        'users' => array( 2,9 ) , // vB usergroups allowed access to chat.
        'mods' => array( 5,7 ) , // vB usergroups allowed access as chat moderators.
        'admin' => array( 6 ) , // vB usergroups allowed access as chat administrators.
        'banned' => array( 1,8 ) , // vB usergroups banned from accessing the chat (requires updated sendLoginInfo.php to work).
);

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

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


Paul M 11-05-2005 01:49 AM

Sorry, but that really doesn't help.

As it says in the support section, if you want me to have a look then I need ftp access and an admin login to the forum, otherwise there is little I can do.


All times are GMT. The time now is 05:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01829 seconds
  • Memory Usage 1,874KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete