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)

version 03-22-2002 06:58 AM

Quote:

Originally posted by Twin-x
Oi it looks great.

Is there any chance you will post your version of this hack?

TIA

hrm. i'll go re-read the license for phpmychat and see if they let me redistribute it modified for vb. i'll get back to you on this.

thehobbyforum 03-22-2002 09:18 PM

I would love to know when you get it integrated with vBulletin 2.2.4 - is there a way to show users online through vBPortal??

Thanks - John
http://www.thehobbyforum.com

thehobbyforum 03-24-2002 10:27 PM

OK I got it completely integrated with vBulletin v.2.2.4 but it is making me sign in every time I go to the chat start page - the other thing is that I can not seem to integrate the chat_activity.php3 file into vBPortal - Help Please!!!!

Thanks in Advance - John

Fallout2man 04-01-2002 10:09 PM

Quote:

Originally posted by version


hrm. i'll go re-read the license for phpmychat and see if they let me redistribute it modified for vb. i'll get back to you on this.

So, can you redistribute it or not? I'd love to be able to have a fully integrated PHPMychat for my VBB.

Velocd 04-05-2002 07:53 PM

I'm having a very annoying problem with this hack, and I can't seem to fix it. If you can help please contact me on AIM at
Invincible Box. :D

Velocd 04-05-2002 09:52 PM

Somebody please help me! Here is the error I'm getting:
PHP Code:

WarningChDirNot a directory (errno 20in /home/velocd/public_html/chat/chat/lib/index.lib.php3 on line 91

Fatal error
Failed opening required './public_html/global.php' (include_path='.:/usr/local/lib/php'in /home/velocd/public_html/chat/chat/lib/index.lib.php3 on line 92 

And here is the index.php3 file:
PHP Code:


//a VBB integration hack by Stasik (stasik@t-online.de)
//v0.1
//(C)2001

$exiturl "http://www.diffusion4.com"// the url the user will be redirected exiting the chat

if($Ver == ""){print "
<HTML>
<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">
    <!--
    var NS4 = (document.layers) ? 1 : 0;
    var IE4 = ((document.all) && (parseInt(navigator.appVersion)>=4)) ? 1 : 0;
    var ver4 = (NS4 || IE4) ? \"H\" : \"L\";
function defineVerField()
    {
        if (document.images && ver4 == 'L')
            document.forms['Params'].elements['Ver'].value = 'M';    // js1.1 enabled browser
        else document.forms['Params'].elements['Ver'].value = ver4;
    }
 -->
</SCRIPT>
<FORM ACTION=\"index.php3\" METHOD=\"POST\" AUTOCOMPLETE=\"OFF\" NAME=\"Params\">
<INPUT TYPE=\"hidden\" NAME=\"Ver\" VALUE=\"L\">
</FORM>
<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">
defineVerField();
document.forms.Params.submit();
</SCRIPT>
</HTML>
"
; exit;}

chdir("/public_html");
require(
"./global.php");
chdir("/public_html/chat/chat");

if (
$bbuserid == 0)

print 
"To Join the Chat you need to go the forums and Register on the board ;  
The Register Button is on the top. If you are already registered then go the 
board and login. Once this is complete select the chat button on the
main forum page in the forum. Thank You For Joining the Chat<br>
<a href=\"http://forums.realwebhost.net\">Back to the Forums</a>"
;
//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 "'"
$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 != "id")
{
$PASSWORD="1";


..and what the hell is this? ---> :bunny: lol

svoec 04-06-2002 12:11 PM

Hey --

What would be the chance of displaying someone's avatar in phpmychat ?????

Thanks!
EricC

Stasik 04-06-2002 06:15 PM

2 velocd.. you got to write full path
eg not
chdir("/public_html");
but
chdir("/home/velocd/public_html");

2svoec... can be :)

Stasik 04-06-2002 06:17 PM

i`m back folks....

can you tell me what problem are there with vb 2.2.4/2.2.5?

webhost 04-06-2002 06:19 PM

RWH works fine with 2.2.4 without any code changes


All times are GMT. The time now is 05:54 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.01417 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_php_printable
  • (2)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