Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Flashchat Integration for vB 3.5 Details »»
Flashchat Integration for vB 3.5
Version: 2.67, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.5.x Rating:
Released: 06-28-2005 Last Update: 12-07-2006 Installs: 706
 
No support by the author.

This modification is no longer available or supported.

Flashchat integration with vBulletin 3.5

Note:
The latest versions of Flashchat include my integration as part of the standard Tufat supplied files - including the vBulletin 3.5 CMS file.



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".

Also ;

* Real ip detection when a proxy server is used (only if the proxy server passes on the details).
* Permanant, Private Rooms are loaded by Admins (and moderators in 4.5.0) (allows for Staff Rooms).


More notes:

* This integration is for Flashchat versions 4.7.0 upwards, support for versions prior to this has been withdrawn.
* If you use non standard usergroups you will need to edit the CMS file to give them permission to enter the chat.

[high]The CMS file assumes that you are installing Flashchat in your forum 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]

Support: Please check any file edits carefully, and make sure you have uploaded any edited files to the correct location - the vast majority of problems reported are due to an error made in editing [or uploading] a file. If you are still stuck and want me to take a look then feel free to PM me your site address, an admin user, and ftp access details, without these I cannot help you. I will then look as soon as I have time.

Finally, I am not Tufat.com nor anything to do with the Flashchat product - if you have questions about Flashchat in general, their forums are here.


History:

2.53 - Support for customer role added.
2.54 - GetUser caching added.
2.55 - Lastactivity update added, caching altered to match main flashchat code.
2.56 - Support for 4.5.x photo feature added with choice of avatar or profile picture.
2.57 - Changes for local language translations. Session cookie cleared on logout.
2.58 - Security fix: Integrated login code altered to cut out the use of insecure userid cookie.
2.59 - GetUser caching re-enabled, Port fix added for pre 3.5 RC3 versions of config.php
2.60 - Added the ability to login direct to a room using ../chat/flashchat.php?username=_int_&room=n
2.61 - Changes to User and Role Caching.
2.62 - Minor fix to Get User for membergroupids.
2.63 - Security (anti-hacking) code added (as supplied by Darren).
2.64 - Usergroup settings moved to top of CMS file.
2.65 - Fixed error message when accessing chat admin area.
2.66 - Default role changed.
2.67 - Minor bug fix to Avatar detection, login code changes, tidy up.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #272  
Old 10-14-2005, 05:19 PM
FindYourHost FindYourHost is offline
 
Join Date: Jan 2004
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #273  
Old 10-14-2005, 05:26 PM
nymyth nymyth is offline
 
Join Date: Jun 2002
Location: New York
Posts: 367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Peace
Reply With Quote
  #274  
Old 10-14-2005, 07:00 PM
FindYourHost FindYourHost is offline
 
Join Date: Jan 2004
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

//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
Reply With Quote
  #275  
Old 10-14-2005, 08:22 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #276  
Old 10-15-2005, 12:34 AM
Carl Anderson's Avatar
Carl Anderson Carl Anderson is offline
 
Join Date: Apr 2003
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #277  
Old 10-15-2005, 11:10 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #278  
Old 10-15-2005, 01:19 PM
Carl Anderson's Avatar
Carl Anderson Carl Anderson is offline
 
Join Date: Apr 2003
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..............
Reply With Quote
  #279  
Old 10-16-2005, 08:55 AM
LeeWicKeD LeeWicKeD is offline
 
Join Date: Jan 2005
Location: Germany
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #280  
Old 10-17-2005, 04:15 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #281  
Old 10-17-2005, 05:04 AM
djmac djmac is offline
 
Join Date: Sep 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great fix and great upgrade. Thanks Paul

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


Regards
Don
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05032 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete