Elgg Bottom Bar v0.5 alpha

Release Notes

Note: This plugin is still in alpha stage, and most likely has quite a few bugs in it .. you have been warned! ;)

** Updated chat version - very alpha release for those interested in helping bug test **

** Friends not showing up online bug should now be fixed **

Welcome to my first attempt at a plugin!

The bottom_bar plugin adds a fixed bar at the bottom of the browser with an auto updating notification and friends list.

The notification button will show red when there are new notices to be seen. When the button is clicked, the notice is cleared ready for the next update. The friends list auto updates with a list of online friends.

As of v0.2, basic chat has been added to the system, including persistant windows between page loads, chat history, sound notifications and smiley and url translation. There are now some settings for both admin and user to enable/disable chat and a few other bits.

I have tested this with Internet Explorer 7, Google Chrome 2.0 and Firefox 3.0 & 3.5, and as far as I can tell it works ok. If anyone can test against other browsers/OS I would appreciated it. Also, please let me know if you come across another plugin that this conflicts with.

Known Bugs:

  • Occasional chat messages are lost - still looking into this one.
  • Chrome doesn't cache the sound files for some reason, so can block for a second or two when a notification sound is triggered.
  • Message delivery speed is not always consistant, but that might be due to my sandbox server ;)

 

Some screenshots ...

image

image

image

image

image

(yes I know the notification area is showing the same as the main page .. it was kind of the point to show the notifications were in sync ;) )

All constructive comments welcomed.

 

Like this code? Consider a donation ;)

image

 

  • @Jayadeep - Hopefully it will be resolved in future releases. As I stated, the javascript has not yet been compressed, so there will be a saving made there as and when I get to that - but right now there is little point in compressing a buggy script ;)

  • So some feedback:

    1. Very nice... looks great
    2. Chat doesn't work at all.  The window looks like it is sending but the recipient never gets the message.  How can I try to debug?  (using IE7 and/or FF2)
    3. The notifications (lower right hand corner) seems to have a bad loop in it.  When some new activity show up it "bliiing bliings" many many times.  I would assume it should only be one.
    4. If I leave the notifications popup open during this period then the "All" "Mine" tabs seems too switch back and forth in time to the chimes.
  • @Dave - A couple of things please.

    Chat - Firstly, do you have php5_sqlite installed on your server? Does the webserver process have write access to the data folder? If you delete the bbchatdb file in the data directory in the mod, does it reappear (with someone logged into the site)?

    Notificiations - I can't see why it would do that, as it uses existing elgg methods to get the data for the updates .. so providing you can get "The River" plugin working, then the notifications should be the same. I would suggest clearing cookies and cache and trying again. If not then drop me a private message with the url of the site you are testing on and I will take a look when I get 5 minutes

  • @The Mad Professor

    I looked into the httpd/error_log and I noticed lots of these coming from bottom_bar:

    PHP Fatal error:  Class 'SQLiteDatabase' not found

    So something is certainly wrong with my sqlite.

    I have checked with PHPinfo and see this:

    PDO
    PDO support:  enabled
    PDO drivers: mysql, sqlite

    pdo_sqlite
    PDO Driver for SQLite 3.x enabled
    PECL Module version 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6 2006/01/01 12:50:12 sniper Exp $ SQLite Library 3.3.6

    Is this the same as php5_sqlite?

  • No - I don't use the PDO drivers, as technically with mine you could use sqlite2 or 3. If you are using debian/ubuntu, the package is called php5-sqlite3 - not sure what it is on other systems.

  • i'm having trouble with the chat aswell... i'm gussing i dont have something installed on my server how could i find out??

  • @nirok - check your server logs, see if there is anything obvious,  but I would suspect it is the same as the others - you need php5_sqlite installed. Depending on your distro, this should be as simple as installing the library via your update/install system.

The Mad Professor

Nutter .. Brit .. that's about it! ;)

Stats

  • Category: Uncategorized
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 17405
  • Recommendations: 16