Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-31-2000 Last Update: Never Installs: 0
 
No support by the author.

This version fixes the problem with username's that are valid in vB, but not in phpMyChat. Add this code to index.lib.php3 right below the line unset($Regs). You can see a demo at http://www.linuxquestions.org (click on forum, then chat).
Code:
// Start vB hack version .03
// Please send bug reports, questions and suggestions to:
// jeremy@linuxquestions.org
 
require("/path/to/vB/global.php");
 
if ($userinfo[cookieuser]==1) {
$U = $userinfo[username];
 
// A phpMyChat username cannot have spaces, commas, or backslashes
$pat = "[[:space:]]";
$repl = "";
$U = ereg_replace($pat,$repl,$U);
$pat = ',';
$U = ereg_replace($pat,$repl,$U);
stripslashes($U);

$N = 20;
$D = 10;
$Form_Send = 1;
$PASSWORD = "1";
}
else {
print "To use the chat room you must be a registered user. <BR>";
print "Please register at <A HREF=\"path/to/forum">Site Name </A>";
$U = "";
exit;
}
 
// end vB hack

Show Your Support

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

Comments
  #2  
Old 08-30-2000, 09:41 PM
Guest
 
Posts: n/a
Default

Darned if I could get this to work.

I'm using phpMyChat v0.13.1 + vb 1.1.3

Do we remove anything below unset($Regs)?

Maybe I'm missing something...
Reply With Quote
  #3  
Old 08-30-2000, 09:51 PM
Guest
 
Posts: n/a
Default

Shaman,
What error do you get? I have phpMyChat version 0.13.0, they may have made a change in the two versions.
Reply With Quote
  #4  
Old 09-02-2000, 11:40 AM
Guest
 
Posts: n/a
Default

Hi,

I got vBB 1.1.3 and phpMyChat 0.13.1. Put the code above into index.lib.php and got this error:

Fatal error: Failed opening required 'admin/config.php' (include_path='') in /home/kowtun/htdocs/vbb/global.php on line 31

When I change the path to http://std.krawall.de/vbb/admin/config.php the whole board dosen't work!

So what can I do? Test it under: http://std.krawall.de/vbb/index.php
on the right side at the bottem you find a small "." where you cann test the chat.

Thanks
Reply With Quote
  #5  
Old 09-02-2000, 05:11 PM
Guest
 
Posts: n/a
Default

work now!!!

But now another prob:

In the config file I used: define("C_MSG_NB", 100);
so that 100 messeges are displayed! But the chat show only 20! Whats the problem?
Reply With Quote
  #6  
Old 09-03-2000, 12:06 AM
Guest
 
Posts: n/a
Default

Custom CPU - do you have a fake account we can use to see the chat in action - I didn't want to reg a fake user on your live vB. Also - when I put a wrong username/password into the chat sign-in and hit submit, I get a 404 error instead of a "Password Incorrect" message. Thanks!
Reply With Quote
  #7  
Old 09-03-2000, 12:06 PM
Guest
 
Posts: n/a
Default

Go to the forum: http://std.krawall.de/vbb/index.php and on the right side at the button is a ".". This is the link to the chat. Log in as test/test to the forum this is a fake account!
Reply With Quote
  #8  
Old 09-03-2000, 02:24 PM
Guest
 
Posts: n/a
Default

UserName, I don't have a fake user set up , but thanks to The_Sisko I don't need one The_Sisko, I am not sure about the problems you are having with C_MSG_NB. Did you figure it out? If not let me know and I will look into it. BTW, I am working on a second chat which is a real-time chat. The downside is that is a java applet. I am about 80% done. I will let you guys know when I am done.
Reply With Quote
  #9  
Old 02-11-2001, 12:59 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by The_Sisko
Fatal error: Failed opening required 'admin/config.php' (include_path='') in /home/kowtun/htdocs/vbb/global.php on line 31
How did you fix this? I'm having the same problem with version 0.14.1 of phpMyChat. Thanks for any suggestions!
Reply With Quote
  #10  
Old 02-20-2001, 09:37 PM
Guest
 
Posts: n/a
Default

I am using 0.14.1 of phpMyChat also and would love to know how to integrate my VB with it, so my vb users and only my vb users can get into the chat.

Thanks!!!
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 06:46 PM.


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.04566 seconds
  • Memory Usage 2,262KB
  • Queries Executed 23 (?)
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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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
  • 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