Register Members List Search Today's Posts Mark Forums Read

Mod Options
Old 25 Mar 2005, 01:09
UltimatePhysiqu UltimatePhysiqu is offline
Join Date: Feb 2005
Sound when user posts or joins?

Is this hack supposed to have audio when someone posts?

If not, how can i make it have audio?
Old 28 Mar 2005, 15:07
sv1cec sv1cec is offline
Join Date: May 2004
Real name: John
Not that easy! Especially the audio when someone logs in the chat.

You see, the messages are stored in the database, from where they are retrieved to be displayed. You could add something like

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to your chat_row, template, but then the sound will be played everytime a message shows. And as we know, the screen refreshes every now and then, which means you would be hearing a sound continuously, for each and every message shown. So, what we need is a method to play that sound, only for the new messages and not for the older ones.

As for the sound when a user joins in, the only way I 've managed to do it, is by counting the users in the chat and if that number goes up, then play a sound. Still, it is not full-proof, since this info is taken from the session table. So if a user keeps going back and forth between the chat window and the main forums window, you end up hearing that sound again and again and again.

Not easy!



Similar Mod
Mod Developer Type Replies Last Post
Play a sound when a user has a new PM. amykhar vBulletin 3.5 Template Modifications 67 24 Jun 2007 01:41

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 20:53.

Layout Options | Width: Wide Color: