PDA

View Full Version : Chat Modifications - 8WayRun.Com - Addonchat Extension


Jaxel
09-08-2010, 10:00 PM
The Official Addonchat Product is REQUIRED for this Extension
https://vborg.vbsupport.ru/showthread.php?t=233009

This is a simple mod I created to not only fill in the gaps of features in the official addonchat product for vBulletin, but also add a few features which are liked on my forum. You will need to make a few changes to some of the templates for Addonchat. I have asked AddonInteractive to make a few fixes in their files to support a mod like this; so hopefully less edits will be needed in the future.

Features:
Adds a "Who's Chatting" list ABOVE the forum, instead of in the WGO area. Who's Chatting area will now also sort by usernames, and give markup based on display usergroups.
Adds a "most chatters at one time" datastore; this is the same datastore used by Paul's Flashchat Integration script; so if you switch from Flashchat to Addonchat, or vice versa, you will retain this record.
Adds support for Streaming video and chats from within the embed page. (Only works with the embedded page, not the popup page; I have disabled the popup page on my forum in order to promote the use of this new feature.) With this, users can chat in your chatroom, while also viewing flash based streaming video (uStream, JustinTV, etc). Stream data is handled through AJAX; so if you change the stream location, users will not be forced to leave the chatroom in order to get the new location, they only need to hit the "Update" button.


Demos:
Who's Chatting: http://www.8wayrun.com/forum.php
Streaming Video: http://www.8wayrun.com/addonchat.php (click the "Show Stream Video and Chat" button)


Installation:
Make sure the Official Addonchat Product (https://vborg.vbsupport.ru/showthread.php?t=233009) has already been installed.
Upload all files in the included ZIP file to their respective directories.
Install this product using the XML file within the included ZIP file.
Setup your settings in "Stream Settings" under AddonChat in AdminCP.
Replace the contents of the template "addonchat_embed" with this:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
<title>{vb:raw vboptions.bbtitle} - {vb:rawphrase addonchat_nav_link_title}</title>
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}vbulletin-formcontrols.css" />
</head>
<body<vb:if condition="$addonchat[embed_enable]"> onload="initstream();"</vb:if>>
{vb:raw header}

{vb:raw navbar}

<div id="pagetitle">
<h1>{vb:rawphrase addonchat_nav_link_title, {vb:raw vboptions.bbtitle}}</h1>
</div>

<table class="tborder" border="0" width="100%" align="center" style="margin-top: 10px;">

<tbody>
<tr>
<td align="center">

<vb:if condition="$addonchat[embed_enable]"><div id="streamHTML"></div></vb:if>

<script type="text/javascript">
/*<![CDATA[*/
var addonchat = {
server: {vb:raw addonchat.server_id},
id: {vb:raw addonchat.account_id},
width: "{vb:raw addonchat.width}",
height: "{vb:raw addonchat.height}",
language: "{vb:raw addonchat.language}",
ssl: {vb:raw addonchat.ssl}
}
var addonchat_param = {
{vb:raw addonchat.code_parameters}
autologin: {vb:raw addonchat.enable_auto_login},
username: "{vb:raw addonchat.username}",
password: "{vb:raw addonchat.password}"
}
/* ]]> */
</script><script type="text/javascript" src="clientscript/addonchat.js"></script><noscript>
<applet id="addonchat" code="Client.class"
codebase="{vb:raw addonchat.protocol}://{vb:raw addonchat.server_name}/current/"
archive="scclient_{vb:raw addonchat.language}.zip" width="{vb:raw addonchat.width}" height="{vb:raw addonchat.height}"
alt="AddonChat Chat Software">
<param name="room" value="{vb:raw addonchat.account_id}">
<param name="autologin" value="{vb:raw addonchat.enable_auto_login}">
<param name="username" value="{vb:raw addonchat.username}">
<param name="password" value="{vb:raw addonchat.password}">
<param name="image" value="loader.gif">
<param name="boxborder" value="false">
<param name="centerimage" value="true">
<param name="java_version" value="1.5+">
<param name="codebase_lookup" value="false">
{vb:raw addonchat.applet_parameters}
This forum uses <a href="http://www.addonchat.com/">AddonChat Chat Software</a>.<br /> <br />
To use this chat room, you will need to <a href="http://www.java.com/">Download Java</a>.
</applet></noscript>

<vb:if condition="$addonchat[embed_enable]"><br />
<input type="button" class="button" value="Show Stream Video and Chat" id="showstream" onclick="showstream()" style="margin: 0px 10px;" />
</vb:if>

</td>
</tr>
</tbody>
</table>

{vb:raw forumjump}
{vb:raw footer}

<vb:if condition="$addonchat[embed_enable]">
<script type="text/javascript" src="clientscript/addonchat_ext.js"></script>
<script type="text/javascript">
<!--
addonchat['height'] = {vb:raw addonchat.height};
-->
</script>
</vb:if>

</body>
</html>


Thank you! Donations welcome!

BadgerDog
09-09-2010, 02:39 PM
Downloaded... :)

Thanks ... we really love the AddonChat product and the outstanding support given by the developer ....

Nice to see extensions being developed ...

Question: Before I install this, is it possible to have the option of keeping the Who's Chatting" list in the WGO area, instead of having it appear at the top of the forums? We're getting a little cluttered up there and it would be nice (at least for our site) to leave it in the WGO area.

Thanks for your efforts .. :up:

Regards,
Badger

Jaxel
09-09-2010, 02:40 PM
This mod doesn't replace the existing WGO2 plugin, it adds a NEW one. So if you want to remove either of the two plugins (the above forum, and the WGO2), you simply need to disable the appropriate plugin.

BadgerDog
09-09-2010, 02:45 PM
This mod doesn't replace the existing WGO2 plugin, it adds a NEW one. So if you want to remove either of the two plugins (the above forum, and the WGO2), you simply need to disable the appropriate plugin.

Thank you .... :up:

Regards,
Badger

djscoop
09-11-2010, 01:51 PM
After uploading everything and changing the template nothing has changed and i don't see an option for "Stream Settings", any idea what might be wrong?

http://www.clankms.com/forum/addonchat.php

Jaxel
09-12-2010, 11:50 AM
Stream settings is in you're admin cp... In the addonchat area.

djscoop
09-12-2010, 06:53 PM
i have no idea why im having trouble but i dont see that option and it still doesnt show the whos chatting option.

djscoop
09-16-2010, 03:57 PM
Ok still having an issue, as u can see in the pic the "whos chatting" is showing a bad link/pic and i still dont have the stream settings option! Can u help?


https://vborg.vbsupport.ru/external/2010/09/33.jpg

Cicada
10-24-2010, 04:44 PM
is there any way to change the color of the header bar of "who's chatting" to match the rest of the forum?

does it autohide if there is noone in chat?

level8
12-30-2010, 10:27 AM
please help... 2 requests....

# Setup your settings in "Stream Settings" under AddonChat in AdminCP.
Just cannot find this!?!?!? Looked in the forums Admin. Can see where I change the size of pop-up etc... but no "Stream" info?!!?

Can someone screenprint where this should be???

level8
12-30-2010, 02:39 PM
ok looked a bit more into it... its just seems when I add this upload in it doesnt link/replace anything so Im running the default addonchat... has the original script been changed and this needs to be updated??

8thos
02-17-2011, 11:11 PM
Does video still work for you? Which version do I have to buy to get video enabled?

vwdforum
03-08-2011, 08:16 PM
How do I get it in a box? great mod thanks for putting it together!

holyknight0326
06-21-2011, 05:04 AM
Jaxel

I saw that you switched over to lightIRC for your website

Did Addonchat not work out? I really like this extension you created here but want to make sure it works before jumping on board.

holyknight0326
06-21-2011, 05:31 AM
Actually I just noticed you are using xenforo; not vbulletin.

Please still let me know if you still encountered any issues as to why you switched.

VonDoom
06-21-2011, 12:57 PM
The switch from Addonchat to IRC was a necessity because addonchat doesn't support XenForo at the moment.. I suspect Jaxel would prefer addonchat and will probably move back when it becomes compatible with the XF software. But thats just my guess.. I dont think Jaxel supports his vB mods any longer, again i could be wrong i see they are still listed as supported but i believe thats no longer the case.

flbutterflyz
07-13-2011, 12:00 AM
Does this work with 4.1.4?

8thos
07-16-2011, 03:00 AM
I used to have AddonChat on my site but they require you to pay to use video.

Lame. You can easily just embed a tinychat in your site.