Skip to main content Help Control Panel

Login   A+   A-

Development «   To be integrated «  

Private Messaging

At a complete loss...
I realize this should be the easiest thing in the world.

a table yacs_messages

timestamp (date) sender_id (int) recipient_id (int) read (y/n) (boolean) subject (varchar) message (text)

function to alert users as they surf the site 'you have message' function to allow messaging of user by clicking name.

then all in a 350x350px window

function to list online users function to list all messages function to read messages function to delete messages function to send messages

Heck, I even have something written that does 90% of this, but I have no idea how to convert it into yacs. If i knew how to insert, update, and delete into the db appropriately... maybe i could do this. but anyways... THIS is the single biggest disaster on my site right now, it's the one thing my members want, and until it exists, I really can't expand the membership.

What I'd love to find on THIS site are better examples of proper expansion of the code. where to build a module, what the proper techniques are.

There's tantanlizing bits that make it clear that what i want to do isn't THAT hard, but it's just that... a tantalizing bit. Oooh so difficult! DOH!!!

:)

anyways...

I attached to bits of code so you can see what i'm talking about. It's spaghetti code, but it actually worked. Maybe it'll help understanding what I'm trying to do.

Files

communicator processor code example 3,819 bytes, 252 downloads
Edited by AnsteyER on Mar. 1 2007
Zoom
code example: communicator 22,387 bytes, 287 downloads
Edited by AnsteyER on Mar. 1 2007
Zoom

Comments

Bernard
avatar
from nearby-an-airport
Associate, 6734 posts

on Mar. 1 2007


You are right, this is not so complicated compared to what YACS is doing in other areas. Well, to tantalize a bit more, I have posted a functional description of one-to-one private messaging to the development pipe. Please check it and change it if you wish. This specification will help developers to evaluate and to engage the work.
Bernard
avatar
from nearby-an-airport
Associate, 6734 posts

on Aug. 11 2007


Code has been added to YACS 7.8 to support instant messaging between online people, and this combines PHP - similar to your examples - and AJAX - for surfer alerts. No support for friends/buddies yet.
AnsteyER
avatar
301 posts

on Aug. 11 2007


I am going to weep with joy! YES!!!
AnsteyER
avatar
301 posts

inspired from ansteyER on Aug. 11 2007


AnsteyER:

when wil this be released?
AnsteyER
avatar
301 posts

on Aug. 24 2007


I was looking at it, adn it'll definitely do the job. however, i think there should be an option that allows the chat window to be a seperate window.. with just a simple banner on the top .. 350px wide, 400px tall or something like that.. so that folks can chat in one window whilst looking at pages in the other.
Bernard
avatar
from nearby-an-airport
Associate, 6734 posts

on Aug. 31 2007


You can start to play seriously with interactive discussions on a separate test server with yacs 7.8beta30. For your information, we had our first successful web party today using the same features, with more than 278 contributions from 6 people in France, Canada, Carribean Sea during 2hours and a half.

At the moment I am using tabs in firefox to track several pages at the same time, but you are right to mention that a separate window would be nice for some uses.

***** 2 rates
Posted by AnsteyER on Mar. 1 2007, commented by Bernard on Aug. 31 2007, (popular)