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)

FindYourHost 10-14-2005 05:19 PM

Fatal error: Call to a member function on a non-object in /usr/local/home/httpd/vhtdocs/dsvr.claretandbanter.co.uk/chat/inc/classes/chatServer.php on line 112

I get this when going to the admin section.

Install didn't give me any errors tho. Using the latest version of flashchat 4.3.3

nymyth 10-14-2005 05:26 PM

^^Go back to the "in inc\classes\connection.php ;" file and make sure the edit change is correct.

Peace

FindYourHost 10-14-2005 07:00 PM

//Touch connection
$stmt = new Statement("UPDATE {$GLOBALS['fc_config']['db']['pref']}connections SET updated=NOW() WHERE id=?");
$stmt->process($this->id);

//Touch room
$this->updateSelfRoom();

return;
}
}

$this->id = md5(uniqid(rand(), true));
$this->userid = ChatServer::isLoggedIn( $args );
$this->roomid = $this->getAvailableRoom($GLOBALS['fc_config']['defaultRoom']);

$color = $GLOBALS['fc_config']['themes'][$GLOBALS['fc_config']['defaultTheme']]['recommendedUserColor'];
if($color == null) $color = 0xFFFFFF;

$this->color = $color;
$this->state = 1;
$this->lang = $GLOBALS['fc_config']['defaultLanguage'];

// Paul M - Real ip detection
$realip = ''; $proxyip = '';
$ignoreprivate = true; // Set to false to allow private 'real' ip's //
if ($_SERVER['HTTP_FROM'] != '') $proxyip = $_SERVER['HTTP_FROM'];
if ($_SERVER['HTTP_FORWARDED'] != '') $proxyip = $_SERVER['HTTP_FORWARDED'];
if ($_SERVER['HTTP_CLIENT_IP'] != '') $proxyip = $_SERVER['HTTP_CLIENT_IP'];
if ($_SERVER['HTTP_X_FORWARDED_FOR'] != '') $proxyip = $_SERVER['HTTP_X_FORWARDED_FOR'];
if (preg_match("#\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}#" , $proxyip, $iplist))
{
$proxyip = $iplist[0];
if ($ignoreprivate and preg_match("#^(127|10|172\.(1[6-9]|2[0-9]|3[0-1])|192\.168|169\.254)\.#", $proxyip)) $proxyip = '';
}
else $proxyip = '';
if ($proxyip == '') $realip = $_SERVER['REMOTE_ADDR']; else $realip = $proxyip;
$this->ip = ($args['ip'] == null)? $realip : $args['ip'];

Taken from my connection.php

Paul M 10-14-2005 08:22 PM

Quote:

Originally Posted by djmac
You may have been doing what I have been doing. When I log into the forums I wasn't checking the "Remember Me" box.

This is due to the very annoying change the the default action for "remember me", Jelsoft in their infinite wisdom have decided to turn it off by default, and most people simply don't notice, and it breaks things like this.

I'm working on a new CMS file that should eliminate this problem, it also removes the need to enter your vb licence number in the file (and also updates your location in the vb session table when you login).

If anyone would like to test it please drop me a PM with your e-mail address.

Carl Anderson 10-15-2005 12:34 AM

Quote:

Originally Posted by Paul M
This is because they don't log out properly, but just close the browser. It mainly affects non IE users (see posts 150 & 151).

I turned off blocking popups in firefox and that works - logs me out by just closing the page.

When I use my IE 6 I used to get nothing so I turned off the popup blocker in that. Now as I close it I get a pop up that just hangs and stays there and never closes or logs me out?

Any ideas?

Paul M 10-15-2005 11:10 AM

Quote:

Originally Posted by Paul M
If anyone would like to test it please drop me a PM with your e-mail address.

Well, it seems no one is interested. So apart from my own site, it will be untested when released.

Carl Anderson 10-15-2005 01:19 PM

Quote:

Originally Posted by Paul M
Well, it seems no one is interested. So apart from my own site, it will be untested when released.

I would like to test it I wilkl leave a PM...

Thanks for this great well supported hack..............

LeeWicKeD 10-16-2005 08:55 AM

Quote:

Originally Posted by FindYourHost
Fatal error: Call to a member function on a non-object in /usr/local/home/httpd/vhtdocs/dsvr.claretandbanter.co.uk/chat/inc/classes/chatServer.php on line 112

I get this when going to the admin section.

Install didn't give me any errors tho. Using the latest version of flashchat 4.3.3

same problem here, but error on line 22 in chatserver.php :speechless:

Paul M 10-17-2005 04:15 AM

I have uploaded the new version.

Quote:

New in version 2.47;

* The users location is now displayed in "who's online".
* 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".
To upgrade from previous versions ;

Import the plugins as a product using the vb Product Manager.
Upload the new vbulletin35CMS.php to the flashchat /inc/cmses/ folder.

If you use custom usergroups, edit the new CMS file to give them access (note, the section to edit is totally different and near the bottom of the file).

djmac 10-17-2005 05:04 AM

Great fix and great upgrade. Thanks Paul :D

BTW Sorry I didn't see the request for wanting to test it first.


Regards
Don


All times are GMT. The time now is 12:39 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.01410 seconds
  • Memory Usage 1,747KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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