Support chat counter as a block

mdlueck - November 10, 2008 - 17:45
Project:ParaChat
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Great module!! :-)

Would you mind adding a chat counter as a block? This would be very helpful to us.

Also, I came up with XHTML'ified syntax to plug the chat counter into a block for now. Using this syntax (rather than the ParasChat suggested syntax) gives a meaningful error when no Java is installed on a Windows machine.It is as follows:

<!-- Begin Counter Code -->
<!--[if !IE]>-->
<object codebase="http://host7.parachat.com/pchat/applet/" classid="java:count.ChatCounter.class" type="application/x-java-applet" archive="counter.jar" height="20" width="20">
  <!-- Konqueror browser needs the following param -->
  <param name="archive" value="counter.jar" />
  <!-- ParaChat Specific -->
  <param name="query.Site" value="XXXX" />
  <param name="ui.bg" value="F7F7F7" />
  <param name="ui.fg" value="000000" />
  <param name="ui.FontSize" value="14" />
  <param name="ui.FontName" value="Helvetica" />
<!--<![endif]-->
  <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="20" width="20" codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab">
    <!-- ParaChat Specific -->
    <param name="codebase" value="http://host7.parachat.com/pchat/applet/" />
    <param name="code" value="count.ChatCounter.class" />
    <param name="archive" value="counter.jar" />
    <param name="query.Site" value="XXXX" />
    <param name="ui.bg" value="F7F7F7" />
    <param name="ui.fg" value="000000" />
    <param name="ui.FontSize" value="14" />
    <param name="ui.FontName" value="Helvetica" />
  </object>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
<!-- End Counter Code -->

#1

octafour - February 20, 2009 - 17:23

I would very much like to have this block! did you sort this out? do you have a solution that is working for you? I saw a similar post on the parachat forum is that you to?

LMK
thanx

#2

mdlueck - February 25, 2009 - 23:01

Greetings octafour: I have not come up with a solution to this request. Yes we have posted to the ParaChat forum as well, and were told this mod solves the problems.

Turns out that the Java crashes are specific to JRE 6 on Ubuntu 8.04. JRE 6 on Ubuntu 8.10 does not crash, so at least that has a work around.

So for now, paste that code into a block, update the XXXX, and away you go.

 
 

Drupal is a registered trademark of Dries Buytaert.