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)

amykhar 02-18-2003 06:52 PM

The javascript is not in the code on your page. Therefore, you have one of a few problems:

1. You didn't do the head include, but the source you showed me shows that you did.
2. You didn't modify global.php so it's not calling the popup box
or
3. You didn't modify functions.php to put the call to the function in the body
or
4. You didn't put in the new popup templates.

I am not seeing any sql errors, and you say the values are getting updated in the database. So, I believe the invitation part is working on the inviter side.

Amy

attic 02-18-2003 07:15 PM

Double checked all files,
they are exactly as in the install.txt... :ermm:

I'll check once more tomorrow, maybe I'm just overlooking something at the moment...

Thanks,

hP

VAN 02-21-2003 10:06 PM

Howsa bout adding an "Invite All" link?

This wouldn't always be practical, of course, but if there are only a handful of people online, and I wanna invite them all, a single click would be nice. :)

amykhar 02-23-2003 11:51 PM

I would honestly never use an Invite All link and hesitate to add the possibility of more bugs. Sorry.

Amy

Edgemyster 02-24-2003 02:18 AM

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. :)

amykhar 02-24-2003 02:33 AM

So, it's the timeout function giving you guys grief?

attic 02-24-2003 05:30 AM

Hi,

Thanks, will try this tonight and let u know!

hP

attic 02-24-2003 11:00 AM

Hi,

That did the trick, its working now!

Thanks both!

hP

attic 02-24-2003 11:06 AM

Anyone knows if its possible to assign a normal location instead of the url showing in the location field in who's online?

hP

amykhar 02-24-2003 01:37 PM

for when you are in chat, attic?

That depends on which chat hack you are using and isn't in the scope of this hack. If you mean while the person is inviting somebody, they are only there for seconds. I am not sure it is worth the effort to put that in who's online.

Amy


All times are GMT. The time now is 07:25 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.01413 seconds
  • Memory Usage 1,729KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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