Author Topic: Ingame Message received..  (Read 1076 times)

Offline Wakish

  • Level 14
  • *
  • Posts: 111
  • Reputation: +0/-1
    • View Profile
    • Wakish Wonderz
Ingame Message received..
« on: June 28, 2007, 10:50:36 AM »
When a user receives a message, I like the idea of having the Mailbox pic or link prompting the user that he has received ingame-mail.. Like for example, the font color might change or the pic might be "dancing".. etc.
Can this be achieved using only PHP, or is there the need for AJAX integration?

Thanks!

Offline Zeggy

  • Global Moderator
  • Level 35
  • *****
  • Posts: 1,187
  • Reputation: +13/-4
    • View Profile
Re: Ingame Message received..
« Reply #1 on: June 28, 2007, 10:57:18 AM »
Well, you use PHP to check if a new message is received, and how you want to show it is your choice :)
You can use HTML to add an extra image or section to the layout with different font, or use AJAX to 'popup' a mini-window with the mail.

Offline Wakish

  • Level 14
  • *
  • Posts: 111
  • Reputation: +0/-1
    • View Profile
    • Wakish Wonderz
Re: Ingame Message received..
« Reply #2 on: June 28, 2007, 11:00:51 AM »
I mean that the user should see a msg has been received without refrshing the page..etc..
Like a constantly refreshing pic..

Offline Zeggy

  • Global Moderator
  • Level 35
  • *****
  • Posts: 1,187
  • Reputation: +13/-4
    • View Profile
Re: Ingame Message received..
« Reply #3 on: June 28, 2007, 12:08:43 PM »
Oh, then I guess you could do that with javascript (refresh an iframe or something) or use AJAX.

Offline Sinzygy

  • Level 28
  • **
  • Posts: 420
  • Reputation: +11/-0
    • View Profile
Re: Ingame Message received..
« Reply #4 on: June 28, 2007, 12:47:54 PM »
yeah, JS or AJAX would be the key here.

Unless you're writing an ingame chat, you should ask yourself if it will be necessary (if it's hard to implement. if it's an easy task, then do it). I for one wouldn't include something like this. I'm counting on the user to not spend all his time staring at only one screen ;)

Offline Wakish

  • Level 14
  • *
  • Posts: 111
  • Reputation: +0/-1
    • View Profile
    • Wakish Wonderz
Re: Ingame Message received..
« Reply #5 on: June 28, 2007, 01:31:37 PM »
I'm counting on the user to not spend all his time staring at only one screen ;)

Heheheh  :D

Yeah, thanks for the advice guys..

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal