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

I updated the hack to time out 15 minutes after the invitation. If you have already installed, you need to reupload the inviteChat.php file and you need to modify the global.php file with the changes in the new install.txt file.

Amy
Reply With Quote
  #23  
Old 02-18-2003, 05:53 PM
attic attic is offline
 
Join Date: Mar 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I;m getting this error:

Invalid SQL: UPDATE user set chatpopup=2,inviter='Admin' WHERE userid=1
near ''Admin' WHERE userid=1' at line 1
mysql error number: 1064
Date: Tuesday 18th of February 2003 02:44:06 PM
Script: http://www.***/forums/forums/inviteC...nvite&userid=1
Referer: http://***/forums/online.php?s=

I did run the sql queries

Any idea why?

Thanks in advance.

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

Hi,

Another use tried to click the link.
The redirector says succesfull, but nothing is showing up at the other site. He doesnt get the sql error, but is redirected back to the who's online...

Regards,

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

You are going to have to be a bit clearer in your explanation.

1. What other site?
2. When a user invites somebody to chat, after they issue the invitation, they are redircted to where they were. In this case, that is the who's online page.
3. If you look in the database right after the invitation is issued, you should see the chatpopup value is set to 2 and the inviter's name is also set.
4. The popup behaves just like the pm popup; so if the invitee is just sitting there not changing pages, nothing is going to happen.

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

Hi,

I mean with the other side, the one I want to invite.

I checked the database, the value is set to 2 when invited. After a refresh the value is 1 again, The WhoInvited field is still filled.

Looks like this works, but still no popup

After an invitation the location in the Who's online shows:

Unknown Location: /forums/inviteChat.php?action=invite&userid=7&s=55a46d28bf 59a2af802a2e7ab79b45d1

Thanks in advance,

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

Did you modify the headinclude template as directed in the instructions? If that isn't done, the box won't pop up.

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

Hi,

No, didnt do anything with it, just reupped the original, but same thing happens.

Regards,

T.
Reply With Quote
  #29  
Old 02-18-2003, 06:38 PM
attic attic is offline
 
Join Date: Mar 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Yes I did.
I pmed u a login/pass if u want to look for yourself.
Not sure if its of any use tho..

THanks,

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

No, you didn't modify the headinclude template like you were supposed to? It might just be easier if you would send me your forum url via PM so that I can look instead of trying to debug your installation problem this way.

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

Last 3 lines of my headinclude:

</style>
$headnewpm
$headchatInvite

hp
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 12:31 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.09830 seconds
  • Memory Usage 2,293KB
  • 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