vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   A phpMyChat integration Hack (https://vborg.vbsupport.ru/showthread.php?t=21329)

Stasik 07-15-2001 07:29 PM

it had workt I had seen it.... it worked when there was "no"

polizist 07-17-2001 12:06 PM

Quote:

Originally posted by webhost
we tired I think the way you put require ./index.php3 in is correct problem somewhere else. I f you have it working could you direct to the url where I could see it in action?
http://www.windelwinni.de/docs/forum/index.php

Click on a forum and read the red marked announcement. Into the annoucement click on "hier aufrufen" and enter the chat (or not, if you?re not registered)

but it?s german ;)

webhost 07-17-2001 12:50 PM

Thanks
It was a struggle, no good at German but I did manage to register on your board and go to the chat room. What version of vb and phpmycaht ar you using. Can you help me get mind working. I am using vb 2.0.1 and phpmychat version 14.2

Joey

Great looking board which I could understand the German though.

polizist 07-17-2001 01:09 PM

Well, i should be able to help you. What?s your problem?

We are using 2.0.0 with phpMyChat *14..5

What is the exact problem? Maybe you can post a link to your forum or chat and i?ll see what i can do. But i`m very busy, so please bepatience ;)

polizist

webhost 07-17-2001 01:34 PM

forum is here http://forums.realwebhost.net
chat is here http://chat.realwebhost.net

I have a chat button on the top of the opening page in my forum

Thanks you can read the previous posts and see what peoblems we were having.

Stasik 07-17-2001 04:54 PM

Hey webhost, it has worked by you, when there was written "no".

webhost 07-17-2001 04:57 PM

I never got it working.

Stasik 07-17-2001 05:01 PM

ok... lets start it new

edit ur /usr/lib/index.lib.php3
plaste bbefore "require("./${ChatPath}config/config.lib.php3");"

//a VBB integration hack by Stasik - source parts were taken from other authors ;)
chdir("/home/realweb/public_html/forums/");
require("./global.php");
chdir("/home/realweb/public_html/chat/chat/");

if ($bbuserid == 0)
{
print "no"; //Message if the user has no cookie
exit;
}
else
{
if ($bbusername == "" || (isset($bbusername))==0)
{
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid");
$username=$getusername[username];
$bbusername = $username;
}
else
{
$username = $bbusername;
} }

$U = $username;

$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;

//Replace admin with your administration nick
if($U != "Admin")
{
$PASSWORD="1";
}


If you had a login problems (bad password), I have forgotten to say, that you have to DELETE all exisind accounts and leave only admin-account

webhost 07-17-2001 09:20 PM

Sorry for the delay, got busy. Do you mean delete all users in my chat and just leave admin?

Joey

Stasik 07-17-2001 09:45 PM

yes, I mean it

P.S. The name must not be "Admin", but if you want it - you can do it ;)


All times are GMT. The time now is 03:13 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.01317 seconds
  • Memory Usage 1,734KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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