Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
Chat Invitation Details »»
Chat Invitation
Version: 1.00, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-15-2003 Last Update: Never Installs: 11
Is in Beta Stage  
No support by the author.

OK. This one was by request. It is most definitely in Beta.

This Hack puts a link on the Who's Online page that if clicked, invites the user to chat in your forum chat room.

1. You will have to do some customization to make this work for your chat system.
2. This is a manual install. Don't go anywhere near it if you don't know how to run queries, update files, create templates, etc.
3. I will support bugs and possibly add new features. However, I will not teach hacking basics in this thread.

Know Issues:
a) Resolved.
b) Currently, the only invitation link is on the Who's Online page. I will probably add it to the user profile later.
c) You are probably going to want to create an invitation icon to use instead of the text link I have. Feel free to share with the rest of us

Features:
a) User Control Panel interface allows members to turn off chat requests.
b) Shows who invited you to chat.


ScreenShots to Follow in subsequent posts.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 02-18-2003, 06:52 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #33  
Old 02-18-2003, 07:15 PM
attic attic is offline
 
Join Date: Mar 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #34  
Old 02-21-2003, 10:06 PM
VAN's Avatar
VAN VAN is offline
 
Join Date: Oct 2001
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #35  
Old 02-23-2003, 11:51 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Amy
Reply With Quote
  #36  
Old 02-24-2003, 02:18 AM
Edgemyster Edgemyster is offline
 
Join Date: Feb 2003
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #37  
Old 02-24-2003, 02:33 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, it's the timeout function giving you guys grief?
Reply With Quote
  #38  
Old 02-24-2003, 05:30 AM
attic attic is offline
 
Join Date: Mar 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Thanks, will try this tonight and let u know!

hP
Reply With Quote
  #39  
Old 02-24-2003, 11:00 AM
attic attic is offline
 
Join Date: Mar 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

That did the trick, its working now!

Thanks both!

hP
Reply With Quote
  #40  
Old 02-24-2003, 11:06 AM
attic attic is offline
 
Join Date: Mar 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

hP
Reply With Quote
  #41  
Old 02-24-2003, 01:37 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.15006 seconds
  • Memory Usage 2,290KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete