Version: 1.00, by amykhar
Developer Last Online: Nov 2013
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.
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.
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.
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.
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!