vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   phpMyChat Integration (https://vborg.vbsupport.ru/showthread.php?t=59592)

Buczilla 01-02-2004 10:00 PM

phpMyChat Integration
 
This hack will add integrate vBulletin with phpMyChat. It uses some small (but effective) security measures to prevent users from using any username but their own.

++ To Do:
vBulletin files to edit: 0
phpMyChat files to edit: 1 (you must also install phpMyChat)
Queries to Run: 0
Templates to add: 0
Templates to modify: 2
Time to install: 10 Minutes

++ Known Issues
Users with a space in their name can not chat
Username can be bypassed



Enjoy! :squareeyed:

Alan Ang 01-04-2004 05:18 AM

most of my users has usernames that has a <space> in them... can anyone resolve this problem? or are there free chat programmes that can allow the <spaces>?

Ryan Ashbrook 01-18-2004 08:57 PM

I need this as well, but nonetheless, nice job.

Oxygen 01-22-2004 05:23 PM

I installed phpMyChat..the latest version.
Modified the portion that goes into the header to look like:
PHP Code:

function my_chatwin()
{
var 
tmpName replace('$bbuserinfo[username]',' ','_');
tmpName replace(tmpName,',','');
window.open('/chat/index.php3?L=english&Ver=H&U='+tmpName+'&R=Home&T=1&D=10&N=20&ST=1&NT=1&First=1','mychatwindow','width=700,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');
}
function 
replace(string,text,by) {
    var 
strLength string.lengthtxtLength text.length;
    if ((
strLength == 0) || (txtLength == 0)) return string;
    var 
string.indexOf(text);
    if ((!
i) && (text != string.substring(0,txtLength))) return string;
    if (
== -1) return string;
    var 
newstr string.substring(0,i) + by;
    if (
i+txtLength strLength)
        
newstr += replace(string.substring(i+txtLength,strLength),text,by);
    return 
newstr;
}
//--> 
</SCRIPT

works great...
resolves the space issue...
just need to modify the exit button to close the window instead of going to chat index.

Smitty 01-23-2004 10:21 AM

Hey Oxygen, do you have this running on RC3?

Oxygen 01-23-2004 11:45 AM

No, just RC2 - I did not even see that 3 was out yet.
Man they are fast.
although there is no reason for it not to work in RC3.
Quote:

Originally Posted by Smitty
Hey Oxygen, do you have this running on RC3?


dutchbb 01-24-2004 06:12 PM

why no demo or screenshot???

Khoder 01-27-2004 08:31 AM

Hi Guys,

I keep getting the error message "This username is registered. Please type your password or chose another username"

Any ideas?

Thanx

Khoder 01-29-2004 09:10 AM

I guess no one has any ideas.. Ill just keep trying till it eventually works.

Smitty 01-29-2004 07:25 PM

Quote:

Originally Posted by Khoder
I guess no one has any ideas.. Ill just keep trying till it eventually works.

I'd like to know what you find out. I want to install this hack in the near future.


All times are GMT. The time now is 05:57 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.01055 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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