 |
 |
 |
 |
#315344 - 08/22/07 12:41 AM
Re: [7.2x] - Naked shoutbox
[Re: Gizmo]
|
Enthusiast
Registered: 11/08/03
Posts: 415
Loc: SoCal
|
shoooo fly shooo  random musing mode.... idea! had to write it down before putting down for the nite.. the protocol should not only be JSON (leaner), but also only return changes, based upon either last shout id or time.. the way process control does it.. this cuts the xmlhttprequest traffic size down considerably. also, the ajax server(s) should be one file, so that it has a better chance of staying in the php cache as a unit. also easier to maintain one piece of ajaxshoutserver.php code.. drawback.. added branching in the server file.. minimal (imo) weird idea.. add proxy capability for cross-site / multiple joined shouts in one.. ie site1 + site2 .... siten all serving up to same shout UI.. keep in mind: load! convert fully to yui.. add effects for new shouts.. fade in.. etc.. not sure yet.. global / personalized wallop menus.. menus need to be ul, li and NOT table, tr, td! longer history for shouts.. ie ability to search back further than just 30 or whatever.. urls, imgs.. admin cpanel for FULL setup and customization... possible full page reload interval, so adverts get more hits.. colorized names, like in showflat.. admin, mod, whatever.. dynamic resizing with handles, using yui.. set mode -v  bleh.. that's it.. brain dump over ..
_________________________
Unfair, Unbalanced, Unmedicated.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#315419 - 08/25/07 07:27 PM
Re: [7.2x] - Naked shoutbox
[Re: sirdude]
|
Wizard
Registered: 01/10/00
Posts: 5091
Loc: Portland, OR, USA
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#315423 - 08/26/07 06:33 PM
Re: [7.2x] - Naked shoutbox
[Re: Gizmo]
|
Enthusiast
Registered: 11/08/03
Posts: 415
Loc: SoCal
|
ok, i've complete overhauled it to use new javascript. this is essentially standalone and only shares with ubbthreads on the user DB side of things as well as to grab the styles. sooo, you don't have to worry about upgrades trashing this. the new javascript (ajax) is much more efficient by using JSON as the transport format. formerly it took 14K to fill a shoutbox and now it takes 4K. i've pushed the load of ALL of the formatting to the client, using DOM instead of burdening the php server code. so this is less of a strain on the server itself. i almost have it done, but will at least leave you with a typical screenie..  the lower right side is a space that you can put your own content into.. ads, logo, whatever.. i showed the ajax 'bashing..' 'sending..' reveals here, but they are normally hidden and come into play on an async call begin. the 2 columns of buttons on the left allow a user to select rows (1st one) for subsequent 'Bash'.. the 2nd column is the same as the delete [x] is now.. selection gives feedback in a different highlight color, like phpmyadmin does for rows.. the upper right hand side is a current tally of who's online in the shoutbox.. configurable in the admin cpanel.. i will wrap it up soon, but it ain't ready for prime time yet.. til then... patience  ps: and thanks to Rick!! for the wonderful style from which to use as an excellent look/feel.
_________________________
Unfair, Unbalanced, Unmedicated.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#315428 - 08/27/07 12:57 AM
Re: [7.2x] - Naked shoutbox
[Re: blaaskaak]
|
Enthusiast
Registered: 11/08/03
Posts: 415
Loc: SoCal
|
hehe.. well you want kick + ban, max online limit ? (i will leave out the start/stop times as you can figure a way to deal with that manually -- ie make the link not work or have a default screen -- for now)
also, i'm using a decay algorithm that offloads the server and it's kinda not right yet.
basically, if you are just idling in the chat window, your delay between async xmlHTTPRequests decays to a longer time (to a limit of course).. this offloads the server load..
when you start chatting or doing things in the chat window, the decay is restored to the 'fast' value (configurable)
i will get a prototype up tomorrow or next day for you to play with.
once caveat.. php 5, so i can use the zend built in json_encode routine (very fast).
if you MUST have php4, then there is a workaround, but i don't recommend. (slower and in php code vs compile c)
_________________________
Unfair, Unbalanced, Unmedicated.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|