vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Chat Invitation (https://vborg.vbsupport.ru/showthread.php?t=48990)

USODJA 03-01-2003 08:23 PM

Quote:

Originally posted by Edgemyster
I had a similar issue with the hack: The pop-up box just wouldn't show up after I invited myself to chat.

What was actually happening was that the chat invite javascript was not loading into the head of the file. Yes, the template existed and yes, I'd made every change to the other four PHP files.

I checked the database and the changes I made to my account in the UserCP were working properly when I enabled and disabled pop ups for chat.

I finally got it to work when I commented out the following in global.php:

---------
$headchatInvite='';
if ($bbuserinfo['userid']!=0 and $bbuserinfo['chatpopup']==2) {
if ($noshutdownfunc) {
$DB_site->query("UPDATE user SET chatpopup=1 WHERE userid=$bbuserinfo[userid]");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY user SET chatpopup=1 WHERE userid=$bbuserinfo[userid]";
}
// $cutTime = time()-(15*60);
// if($bbuserinfo[invitetime] > $cutTime){
$chatInvite=1;
eval("\$headchatInvite = \"".gettemplate('head_chatInvite')."\";");
// } else {
// $chatinvite=0;
// $headchatInvite ="";
// }
}

-----------
So, obviously - I'm not getting the benefits of the timer functionality and - well - I was hoping to leave any solution up to you. :)


Only way I could get it to work too...

amykhar 03-01-2003 09:18 PM

Ok. I'll strip that part out. It was an optional feature anyway. Works fine here, though.

Amy

Edgemyster 03-03-2003 09:56 PM

It'd be cool if that worked, however. :) So, if anyone has any clues....

amykhar 03-04-2003 12:44 AM

I think I found the problem. It looks like the zip has the wrong php file. I need a version control system :D

I updated it with the one from my server, and then that code should work fine.

Amy

Edgemyster 03-04-2003 03:01 PM

Yup - you nailed it. Works fine.

For anyone else who already has it installed: Upload the new inviteChat.php file (and uncomment the lines in global.php if you followed my lead) to your server and that should take care of it.

Thanks.

Now I'm going to attempt to get an Invite to Chat Link in the user profile and see how that works out.

Intex 04-16-2003 05:21 PM

Nice hack amykhar. Works a treat !! :).

[high]* Intex installs.[/high]

floridaideal 04-20-2003 02:22 PM

Hi I also installed this, works great.

Only thing, I tested this and cancelled the chat invite, should the user sending the invite then be told its been cancelled or something? I am not getting that.

Thanks

Stu

amykhar 04-20-2003 02:40 PM

No. It doesn't tell the user that the invitee cancelled. Perhaps in the future.

Amy

floridaideal 04-20-2003 02:48 PM

Thats cool, thanks Amy you have done a really good job with the chat invite I hope you do consider further work and upgrades with the hack, you have done us proud!

Thanks

Stuart

chitown 04-27-2003 10:16 PM

i have this installed, it goes through the whole blahblah has been invited but no one is getting the invitation?

any help would be appreciated!!

gmarik 05-24-2003 11:07 AM

Amy, can it be integrate with:
https://vborg.vbsupport.ru/showthrea...highlight=chat ?

amykhar 05-24-2003 02:27 PM

I believe you could do it with modifications. Because that chat window is open all the time, you wouldn't need to open the windown when somebody accepts the invitation to chat.

Amy

gmarik 05-24-2003 04:09 PM

Could you more detailed?
What shoudl I start from (because you coded it).

Marco

amykhar 05-24-2003 04:59 PM

Modify the head_chatInvite template. That is the javascript that controls what happens when the invite window pops up.

Amy

kaotic 05-25-2003 07:34 PM

Having a problem...

Quote:

a) Open admin/functions.php

Find: global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg,$microstats;

Replace With: global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg,$microstats,$chatInvite;
I can't locate "$microstats" anywhere in the admin/functions.php file. Here's the closest thing I can find:

Quote:

global $PHP_SELF, $DB_site, $replacementsetid, $gzipoutput, $gziplevel, $newpmmsg;
Is that correct? (notice the spaces)

Funkie 05-25-2003 08:13 PM

$microstats

unless you have that hack installed you wont find it:)

you have it right in your quote

kaotic 05-25-2003 09:09 PM

Alright, cool. I ran into a couple of small errors in the instructions, but other than that, this hack is working great! I suggest cleaning up the install file some and moving it to Full Releases when you get the chance.

ImportPassion 06-24-2003 07:19 PM

ok, I just went to add this in 2.2.9 and I don't have this anywhere!

Find: if ($newpmmsg) {
if (substr($PHP_SELF,-strlen('private.php'))=='private.php') {
} else {
$newtext=preg_replace("/<body/i","<body onload=\"Javascript:confirm_newpm()\"",$newtext);
}
}

WTF?

D|ver 04-07-2004 01:52 PM

will there be a vb3 version of this?

that would be so great :D :D

nighteyes 07-11-2004 09:04 AM

I want to see this for vb3 too :)


All times are GMT. The time now is 04:18 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.01058 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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