The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
|||
|
|||
Alright I have completed the project and updated the code above to display how I have mine setup. I hope this comes in handy for anyone else wanting to use AJAX chat.
|
#3
|
|||
|
|||
Hi,
I was so glad to find a description how to implement this. But I think there is a problem with vB 4.1.5. I wanted to use the "Displaying UserNames of Those Online". I created the plugin and I inserted the code in forumhome. When I load my vB there is the following error message: Warning: implode() [function.implode]: Invalid arguments passed in [path]/global.php(29) : eval()'d code (line 35) Do you have an idea what I have done wrong? Thank you in advance for your help. Regards, Feechen |
#4
|
|||
|
|||
Feechen, yes I had the same problem. It came from when there were NO users in chat it broke the code. I have added a "If Null" statement. I have fixed the "Display Users" Plugin Code above. But here it is again.
PHP Code:
|
#5
|
||||
|
||||
Hi Hawk,
I'm trying to simply put the output in title tag like below, however, I'm just getting no echo. Any thoughts on what I might be missing? Thank you for your help. Chris HTML Code:
<a class="ajaxchat" style="float:left; position:relative; top:4px;" href="#" title="Chatting: {vb:raw chat_userlist}" onClick="ChatWindow=window.open('http://forums.usmilitarygamers.com/chat/index.php','ChatWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=800,height=600'); return false;">Chat ({vb:raw num_chatting})</a> PHP Code:
|
#6
|
|||
|
|||
Thanks for the Plugin!!!
How can I show the users on other forum pages besides the start page? And how can I show the chat users in another location of my website - outside of vBulletin? |
#7
|
||||
|
||||
[s]What needs to be modified to make this work in vB 3.8 ?[/s]
I figured it out. I'll try and make some time to create an actual v3.8.x plugin. It wasn't too hard, having read the vB4 docs on template variables. Thanks for making this vB4 plugin available. |
#8
|
|||
|
|||
I'd like a widget on the front page to show who is chatting. Any idea how to modify this code to make that work?
|
#9
|
|||
|
|||
That's what the second half ICThawk's original post does for you. Look carefully at the "Displaying the UserNames of Those Online" section. Those two pieces of code will show the usernames of users that are chatting. Just don't forget to turn on the plugin after you create it (I keep doing that and wondering why my plugin doesn't work...
|
#10
|
|||
|
|||
For what I was working on I wanted the chat window to be "inside", that is, have the usual header, navigation bar, footer, etc. as the rest of the forums, instead of popping up as a window.
This is how I did it (in case someone else needs to do the same thing). First I made a custom template, named custom_ajaxchat with the following code as the body of the template: Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> <title>{vb:raw vboptions.bbtitle}</title> {vb:raw headinclude} </head> <body> {vb:raw header} {vb:raw navbar} <div class="blockbody"> <div class="blockrow"> <!-- Custom Code Start Here --> <center> <iframe src="http://DOMAINNAME.COM/chat/" width="80%" height="640> </iframe> </center> <!-- / Custom Code Ends here --> </div> </div> {vb:raw footer} </body> </html> The link in the navbar template I changed from what ICThawk gave us, to this: Code:
<a class="navtab" href="misc.php?do=page&template=ajaxchat" target="_blank">Chat ({vb:raw num_chatting})</a> You'll still need the Plugin (hooked to global_bootstrap_init_start) that ICThawk provided, I didn't make any changes there. |
Благодарность от: | ||
dorans |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|