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!!


All times are GMT. The time now is 07:10 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.01351 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)pagenav_pagelink
  • (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