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

Reply
 
Thread Tools
FlashChat : Integration upgrades for vBulletin. Details »»
FlashChat : Integration upgrades for vBulletin.
Version: 1.21, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.x Rating:
Released: 01-17-2005 Last Update: 12-07-2006 Installs: 83
Template Edits
Re-useable Code Code Changes Additional Files Translations  
No support by the author.

This modification is no longer available or supported.

This originally made changes to add new facilities to your FlachChat & vb set-up. However, all the features added are now part of standard Flashchat (4.6.0 and above). This now just supplies the latest vb 3.0 CMS file, which depending on circumstances, may either be the same as, or newer than, the one supplied with Flashchat itself.

To install the latest 3.0 CMS file - unzip it, edit the usergroups access and options as required, and then copy the file to the ../chat/inc/cmses/ folder on your server.


Optionally, you can also edit inc\langs\en.php.

Finding ;
Code:
'banned' => "You've been banned",
and replacing with ;
Code:
'banned' => "You do not have permission to enter the chat",


* Version 1.82 was the last version of the old hack (for Flashchat 4.2.1 upwards).

History of the 3.0 CMS file

* v1.13 - updated vbulletin30CMS.php file for vb 3.0 and Flashchat 4.5.2+ this contains a fix for a cookie security issue.
* v1.14 - Added ability to login direct to a room using ../flashchat.php?username=_int_&room=n
* v1.15 - Alterations to caching code.
* v1.16 - Minor fix to Get User for membergroupids.
* v1.17 - Security (anti-hacking) code added (as supplied by Darren).
* v1.18 - Usergroup settings moved to top of CMS file.
* v1.19 - Fixed error message when accessing chat admin area.
* v1.20 - Default role changed.
* v1.21 - 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
  #52  
Old 05-13-2005, 12:12 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Little confused! I'm just starting to install flashchat, do i start with this hack?
Reply With Quote
  #53  
Old 05-13-2005, 02:27 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

No, Install flashchat and get it working first, then you can install this hack.
Reply With Quote
  #54  
Old 05-13-2005, 02:37 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
No, Install flashchat and get it working first, then you can install this hack.
Where is Flash Chat hack?? Or download?
Reply With Quote
  #55  
Old 05-13-2005, 03:19 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

<a href="http://www.tufat.com" target="_blank">www.tufat.com</a> - it costs $5.
Reply With Quote
  #56  
Old 05-14-2005, 02:22 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

Version 1.55 released (for FlashChat 4.0.1 or above).

This adds a 4th new feature - an optional welcome message when a member first joins the chat.
Reply With Quote
  #57  
Old 05-16-2005, 09:54 PM
snotek snotek is offline
 
Join Date: Mar 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vulture> Are you going to post that addition? I too could use something like that.
Reply With Quote
  #58  
Old 05-17-2005, 01:13 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

snotek

Make the following changes to your vbulletinCMS file (whichever one you are using).

Find;
PHP Code:
$this->getUserStmt = new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['tableprefix']}user WHERE userid=?"); 
Replace with;
PHP Code:
$this->getUserStmt = new Statement("SELECT userid AS id, username AS login, usergroupid, membergroupids FROM {$GLOBALS['tableprefix']}user WHERE userid=?"); 
Find;
PHP Code:
$rec['roles'] = $this->getRoles($rec['usergroupid']); 
Replace with;
PHP Code:
$rec['usergroupid'] .= ",".$rec['membergroupids'] ; //added by Paul M
$rec['roles'] = $this->getRoles($rec['usergroupid']); 
Find the getRoles function ;
PHP Code:
function getRoles($usergroupid) {

# current block of code # >


Replace it with a new version ;
PHP Code:
  // Paul M Version - Edit to set user roles for different vB usergroups 
  
function getRoles($usergroupid) {

    
// Set default access
    
$userrole ROLE_NOBODY ;

    
$groups explode(',',$usergroupid);

    
// Set Allowed groups
    
if (in_array(2,$groups)) $userrole ROLE_USER;
    if (
in_array(7,$groups)) $userrole ROLE_USER;

    
//Set Staff groups
    
if (in_array(5,$groups)) $userrole ROLE_ADMIN;
    if (
in_array(6,$groups)) $userrole ROLE_ADMIN;

    
//Set Banned groups
    
if (in_array(8,$groups)) $userrole ROLE_NOBODY;
    if (
in_array(9,$groups)) $userrole ROLE_NOBODY;

    return 
$userrole;
  } 
Edit the above function for your usergroups. This is working fine on my test system.

This version assigns access in the following priority based on both primary and secondary groups.

1. Assign default access (which is set to NO access).
2. If they are a member of an allowed group, grant USER access.
3. If they are a member of a staff group, grant ADMIN access.
4. If they are a member of a banned group, grant NO access.

Reply With Quote
  #59  
Old 05-18-2005, 10:54 AM
plateau plateau is offline
 
Join Date: Apr 2005
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well done!

installed clicked!!!
Reply With Quote
  #60  
Old 05-18-2005, 11:16 AM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't look like the stuff from post #57 (waste of space to quote it) is included in the instructions, unless I somehow missed it.

Is that on purpose, or just lack of time?

Once bitten twice shy, screwed up things before and don't wanna do it again.

Thanks
Reply With Quote
  #61  
Old 05-18-2005, 10:27 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 dsboyce8624
It doesn't look like the stuff from post #57 (waste of space to quote it) is included in the instructions, unless I somehow missed it.

Is that on purpose, or just lack of time?
It will be in the next release when I have time to update the instructions.
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 07:21 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.05344 seconds
  • Memory Usage 2,332KB
  • 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
  • (2)bbcode_code
  • (6)bbcode_php
  • (2)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
  • (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