Jump to content

shoutbox

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1
Whitey

Whitey

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
okay well i am trying to make a shoutbox for a when your logged in..

now am i going to have to use ajax for it to display?
if i do can you help me start this?

if not how to start it?

thanks

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
You will have to use AJAX. I couldn't find any examples on the internet to forward you to but here is how it could be done:


  • You will need 1 PHP script that reads data from a database (username, shout-out/comment, etc). The output should be in XML format.
  • 1 PHP script that submits new comments to the database
  • HTML Text Box and Submit button (that submits to #2 above).
  • JavaScript/AJAX that reads the #1 script above on a time interval (every 10 seconds?) and updates the textbox with new shoutouts.

There is a myriad of free shoutbox clients for PHPBB, vBulletin and many other scripts. If I were you I would download one and see how they developed theirs.

#3
Whitey

Whitey

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
Ahh thanks.. and if anyone else has some other usefull information it would be very Nice :)

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
I think that Jordan covered it all...

#5
Whitey

Whitey

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
Someone messaged me on aim.. i dont remember who and said they had made 1.. If so can someone make a tutorial on it? Or may i have it/use it?

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
You mean a member on this forum?

#7
Whitey

Whitey

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
Yes "Someone messaged me on aim" i was refering to someone on this forum.. :)

#8
jessje

jessje

    Learning Programmer

  • Members
  • PipPipPip
  • 64 posts
I know the question is already answered, but i used to use shoutboxes when ajax was'nt invented, so there arec also other ways? what is the advantage of this method?

#9
Whitey

Whitey

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
Ajax will show the results without refreshing the whole page... Everything is pretty much standalone