PHP Chat

From CodeMonkeyWiki

Jump to: navigation, search

Contents

Updates

When you've added summat put it here at the top of the list.

  • page title updates to tell you how many new messages have been posted in chat when the chat screen doesn't have focus.
  • now get system messages when someone logs in
  • header redirects based on access rights to certain pages -> do this with user level and a database call? maybe can do it all in user object
  • classes are secure & cannot be browsed to
  • all standard pages (ie, not classes) are secure now. need to do class dir
  • added a logout method to the user object and rationalised all the user redirects.. if a user is not logged in they cannot access chat... have to login as guest to be able to see owt without an account.
  • created a logger class
  • ajax now uses post to send messages
  • user prefs should work right
    • added 'extra scripts' to prefs to allow us to put some fancy bloatware in
      • uber matrix thingy in top right
      • cliky the tool and links menu (the actual heading thing) to contract/expand it

New Functionality

Stuff we want to add.

  • add extra navigation to history? view by day etc
  • need to style login, register & prefs page
  • streamline database conn code... where objects are pulled out of the session the methods need the dbconn passed in
  • frameless version
  • alterations to iframes
  • restricted access to various links and sections
  • online user list thingy
  • look into compressing the xml output? theres a big lag at refresh
  • private messages!
  • preference to block system message output

Bugs

Eek shits broken!

  • the wonderful history page is broken and not showing more than the first 50 entries
  • frameless version is just plain broke
  • need to make history & commands take preferred style
  • ajax seems to drop messages sometimes
  • ajax doesn't display £ correctly (shows as ?)

Fixed Bugs

Woot shits fixed!

  • iframe version doesn't show toolbar
  • need to make prefs link break out of iframe properly
  • register link broken (was actually a bug in template class stopping un authenticated users from using the template... doesn't make a whole let of sense in the register context so ive removed it

Components

Site Engines

Currently 3 versions of the same app.

AJAX

  • WTF is with the 'updateid is not defined' messages in the error console?
  • Really need a *loading chat* message when you first load it

IFrame

Frameless

Themes

Mmmm nice views of the same application.

Standard

Matrix

This looks really nice on my home flatscreen but its a bit hard to read at work.

Newspage

  • doesn't yet exist

Classes

The application objects.

Actions

  • moved most of the code out of commands.php into the action_class.php file.

Chat

DBConn

  • as with logger, should create 1 instance and pass it down; not sure how to accomplish this as redirects are in place

History

  • moved most of the code out of history.php into history_class.php and created a getNav() method.

Logger

  • should create 1 instance and pass it down
  • should create a general logging and error logging type printout
  • once integrated get rid of *all* the die() calls

Message

Output

Page

The class that will do all the work when building a users webpage.

Template

  • would be nice if template did all the work without it being called a load of times from different places. This would fix the above w issues about not being able to pass down objects.

Update Hashes

This is a bit wank and dirty... we should make this work, like, well (its not even a class).

User

UserList

UserPrefs

Personal tools