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-20-2001 08:25 PM

what are you speaking about? i`m dont charging for it its FREE!

ThePenguin 07-20-2001 08:28 PM

Then you really did lose me. Could you direct me to how to integrate it into Vbulletin? I've looked through this thread but don't see it. I also don't see it or any downloadable files or links in your initial thread on it.

I'm still not even sure that I can use this-- I don't know how rough phpMyChat is on a shared server.

PS-- Perhaps my question is not clear. I set up phpMyChat with the modifications listed in your instructions and it does appear to be running. On my Vbulletin, how do you get the box that says who is in the chat with the links? That's my question...

Stasik 07-21-2001 11:30 AM

ahm..... THIS isn`t in the hack.... it is just my private test :D

a small advice: look in "chat_activity.php3" :D

amsch 07-23-2001 03:28 PM

Anyone else having problems with this hack in netscape? I have it working correct in IE but I still get NO in netscape.
Amy

Stasik 07-23-2001 04:05 PM

hm....

Netscape suxx, it must die...

try to change the cookies options in netscape or "cookie domain" option in VBB control panel

amsch 07-24-2001 01:36 AM

What I have come up with is, it works in Netscape 4.75+ and fine in IE.

Just in case anyone else asks.
Amy

Sukij 07-26-2001 09:14 AM

HI..

I have problem on EXIT from Chat. After pressing EXIT in chat windows, it's not return to the vBulletin Forum. It's still in the Chat Windows.

Can you please help ? I have already modified the exit.php as mentioned in your instruction.

Thanks

Sukij 07-26-2001 09:25 AM

HI..

More info. in the index.php3 I also put

$exiturl = "http://203.154.80.13:90"; // the url the user will be redirected exiting the chat

So, it should be redirected back to the forum.

Thanks

Sukij 07-26-2001 10:00 AM

HI..

After install the hack, how can I choose the language.

Thanks

Sukij 07-26-2001 10:07 AM

HI..

After install the hack. How can I create new room ?

I try to use command /join

but the windows pop-up show that I need to register before I can create new room.

Thanks

Stasik 07-26-2001 11:10 AM

1) can u post yuur index.lib.php3 here?

2) where do u want to change language?

3) i fear its impossible :( (try to allow private rooms to unregistered users)

Sukij 07-27-2001 12:14 AM

HI..

1. I attached the index.lib.php3 in this post. The problem is still there, after press EXIT, usres are not redirected back to forum. Please help checking my attached file.
2. Language : After testing, I found that if the registerd users has been redirect from forum to Chat, they will be stop at the LOGON screen since password need to be enter where Language can be selected. But for the unregistered user, the system bring them directly to the chat windows without stoping at the LOGON screen, so these people can't choose language. Is it possible to move the language selection into chat windows instead of LOGON screen and allow users to select or change their language at any time.
3. Is ok, I understand now.

Thanks

Sukij 07-27-2001 12:17 AM

HI..

Let me confirm with you what is the correct way of the step..

1. In case of Registered Users. What happen after they press EXIT. Go back to the LOGON screen or Forum ?
2. In case of Unregistered Users. I think these people will be redirected back to forum. Am I correct ?

Thanks

Sukij 07-27-2001 01:47 AM

HI..

I solve the problem of Cannot EXIT already. It's my mistake to miss the STEP 2.

Thanks

Sukij 07-27-2001 06:43 AM

HI..

I don't care the Language Selection now since unregistered users can't go to the Chat page anyway. So, just fotgot it..

P.S. This question is not concern to Hack Integration. It's conern to the phpMyChat, which I think may be you have answer to my question. Who can you /save command in phpMyChat ? I'm admin, can use it without problem. How about other registered users, can they use /save command ? I ask this because when they issue the /save command, the chat just show another windows of the same chat screen.

Thanks

Stasik 07-27-2001 09:40 AM

i dont know about save command, ask one of your members

Sukij 08-01-2001 01:43 AM

HI..

Come back agin for one question.

If users have already registered with the vBulletin, and if they go to the Chat, can they create/join the private room with the /JOIN command ?

My current situation now is the vBulletin Registered Users cannot crate their own private room, only Admin now can create the private room. If they try to create the private room, the pop up windows will show that they are not registered. Since this integration hack is integrate with VB database, so it should recognize the the Registered User and allow to create the private room. Am I understand correctly ?

Thanks

Stasik 08-01-2001 09:36 AM

i fear you have right.. :(

Sukij 08-01-2001 09:41 AM

HI.

Do you mean users will not be able to create the private room even they are registered users of VB ?

Stasik 08-01-2001 09:44 AM

yes, if u cant allow the unregistered users to create own rooms it is impossible

ethank 08-05-2001 08:25 PM

Hack seems to work, but I can't login with the admin user. I made sure the password was set the same as it was in VBulletin, but it won't take it.

EThan

Sukij 08-05-2001 09:07 PM

HI..

Is it possible for you for the next future release, that the program can handle the private room feature for VB registered users. Thanks

Stasik 08-06-2001 07:03 AM

Quote:

Originally posted by ethank
Hack seems to work, but I can't login with the admin user. I made sure the password was set the same as it was in VBulletin, but it won't take it.

EThan

Have you replaced the administartion nick in index.lib.php3?

ethank 08-07-2001 01:52 PM

Quote:

Originally posted by Stasik


Have you replaced the administartion nick in index.lib.php3?

Works like a charm! Thanks. I'll be implementing this soon.

Ethan

Stasik 08-07-2001 02:12 PM

ok ;)

AJR 08-08-2001 04:13 AM

Hi everyone. I was as frustrated as many people about this phpMyChat hack. It works well, but I had to dig for 2 days to figure out how to integrate both vBulletin and phpMyChat together and not having all the code to add for both programs! Well, I have compiled 2 hacks...this one and Tom's forum index hack for phpMyChat. Plus I added a section of a couple of changes I made to make it more "user friendly". Read it once, read it twice, make sure you know what you want to add/change, then go do it!

ethank 08-08-2001 12:11 PM

Quote:

Originally posted by AJR
Hi everyone. I was as frustrated as many people about this phpMyChat hack. It works well, but I had to dig for 2 days to figure out how to integrate both vBulletin and phpMyChat together and not having all the code to add for both programs! Well, I have compiled 2 hacks...this one and Tom's forum index hack for phpMyChat. Plus I added a section of a couple of changes I made to make it more "user friendly". Read it once, read it twice, make sure you know what you want to add/change, then go do it!
Cool, I'll try it out tommorow and tell you how it goes.

Ethan

daroz 08-08-2001 02:46 PM

[QUOTE]Originally posted by AJR
Hi everyone. I was as frustrated as many people about this phpMyChat hack. It works well, but I had to dig for 2 days to figure out how to integrate both vBulletin and phpMyChat together and not having all the code to add for both programs! Well, I have compiled 2 hacks...this one and Tom's forum index hack for phpMyChat. Plus I added a section of a couple of changes I made to make it more "user friendly". Read it once, read it twice, make sure you know what you want to add/change, then go do it!

Stasik 08-08-2001 04:55 PM

AJR, hehe, nice....

I`m gonna to make a upgrade, do u have ICQ?

macom 08-09-2001 08:43 AM

Hi, i need two admins... how can i do this ??

Stasik 08-09-2001 09:12 AM

Quote:

Originally posted by macom
Hi, i need two admins... how can i do this ??
hi,
find the text

Code:

if($U != "Admin")
{
$PASSWORD="1";
}

replace it with

Code:

if($U != "Admin" or $U != "Admin2")
{
$PASSWORD="1";
}


and change "Admin" and "Admin2" to registered user names

macom 08-09-2001 09:41 AM

TXH for the fast request...

I have replace the text in the "index.lib.php3"... but it dont works ? Sorry for my bad english...

What can i do now ??

Stasik 08-09-2001 11:10 AM

Da bracuchst du dich nicht zu entschuldigen *g*...

was hast du genau gemacht? beschreib ma?

macom 08-09-2001 11:30 AM

also ich habe den text in der index.lib.php3 so wie beschrieben angepasst... im forum bin ich selber als "macom" registiert... der admin account in phpMyChat heist auch "macom" ich denke soweit ist auch richtig... den für mich alleine funktioniert das auch ganz gut... so jetzt soll aber der forums co admin auch bei eintritt in den chat den status admin haben... und hier fangen die probleme an...

Ich habe auch schon via phpadmin auf der mysql datenbank im table "c_reg_users" einen zweiten account "Steven" mit gleichem passwort wie bei "macom" angelegt... dann komme ich aber selber nicht mehr rein?? Jetzt weis ich nicht mehr weiter...

Stasik 08-09-2001 02:35 PM

dis acoouns auf vb muessen lauten: macom und Steven


versuch ma

Code:

if($U != "macom" or $U != "Steven")
{
$PASSWORD="1";
}

wenn es nicht klappt

Code:

if($U == "macom" or $U == "Steven")
{
}
else
{
$PASSWORD="1";
}

aber das erste code mus gehen

macom 08-09-2001 04:31 PM

Ok, werd ich gleich mal testen...
Was ich jetzt aber immer noch nicht weis... brauche ich in der table "c_reg_users" einem zweiten Admin account für Steven? Wen ja, wie generiere ich dann ein passwort (wegen verschüsselung)?

Danke schon mal im voraus...

Stasik 08-09-2001 05:51 PM

du muss einfach maeinen user hinfuegen und in tabelle unter "right" oder so was "admin" schreiben

Quote:

Originally posted by macom
Ok, werd ich gleich mal testen...
Was ich jetzt aber immer noch nicht weis... brauche ich in der table "c_reg_users" einem zweiten Admin account f?r Steven? Wen ja, wie generiere ich dann ein passwort (wegen versch?sselung)?

Danke schon mal im voraus...


macom 08-09-2001 06:41 PM

Hab noch mal nachgesehen?

Laut Setuproutine von myphpchat darf nur ein Admin vorhanden sein? der steht dann in dem Table ?c_reg_users? also bleibt nur der Table ?c_users?? hier darf ich aber keinen eintragen weil sonst der login in den Chat nicht mehr funktioniert (Username schon vergeben) ist mir auch klar, weil der Chat holt sich ja den User vom Board und tr?gt in dann in ?c_users? ein.

Wenn Steven eingeloggt ist kann ich mittels phpmyadmin im Table ?c_users? den Status auf admin oder mod setzen? diese Routine ist aber sehr unpraktisch und ich bin ja nicht immer zur selben zeit online. Ich hoffe du verstehst mich jetzt besser.
Oder mache ich doch noch etwas falsch :confused:

Ist es eventuell m?glich einen Table vom Board so anzupassen das dass Board beim Login in den Chat gleich die richtigen Parameter (admin, mod) an den Table ?c_users? ?bergeben kann?

Von der logischen Seite k?nnte ich mir das schon vorstellen, aber ob dies umsetzbar ist bleibt die Frage?? Ich kenne mich mit mysql und PHP noch nicht so gut aus? Es w?re aber echt super, dann h?tte gleich jeder Mod. vom Board auch den richtigen Status im Chat.

macom 08-09-2001 07:00 PM

Hab jetzt noch im Table "user" vom Board nachgesehen... dort gibt einen Eintrag "usergroupid" und nat?rlich auch den passenden Status dazu, leider nur als Nummer... 6 = Admin usw... kann man da net was machen?? Ich hoffe mal das Dir was Gutes dazu einf?llt. ;)

Stasik 08-09-2001 07:44 PM

ahm.... ich bin kein php+mysql genie... :(((

also ich garantiere nix

nach
Code:

$username=$getusername[username];
einfuegen
Code:

$getusername=$DB_site->query_first("SELECT usergroupid FROM user WHERE userid=$bbuserid");
$group=$getusername[usergroupid];

nach
Code:

$U = $username;
einfuegen
Code:

$PREMS = "admin";
if($group == "6"){
$U = $AUTH_USERNAME;
        $DbLink->query("SELECT perms FROM ".C_REG_TBL." WHERE username='$U' LIMIT 1");

        if ($DbLink->num_rows() != 0)

        {

                list($PREMS) = $DbLink->next_record();

        }

        $DbLink->clean_results();
};



All times are GMT. The time now is 08:27 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.01574 seconds
  • Memory Usage 1,824KB
  • 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
  • (8)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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