• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

last posts copied in queue

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
2 posts • Page 1 of 1

Postby strategy » Sun Jun 17, 2007 2:32 pm

hey.

i've tried to understand the phpFreeChat code, but is so tricky. i want to make this code:
the idea is to create for each user an queue (array or whatever) with all posts or, i don't know .. last 10 posts at least. and the user can paste them into input bar like it is in mIRC when you hit the up key.

ideas?
strategy
New member
 
Posts: 1
Joined: Sun Jun 17, 2007 11:19 am
Top

Postby Wavesonics » Thu Aug 02, 2007 7:22 pm

Well I would say cut out the middle man, there is not point in hitting the server side data structure. Simply store a client side (JS) que, gradually fill it up as messages are sent and when you reach 10, just shift the array so the oldest one drops off.

This doesn't work between sessions, but does mIRC work that way anyway? It wouldn't seem very helpful to have it work that way. And in this scenario it seems like the extra hits to the server wouldn't be worth it.
Wavesonics
Member
 
Posts: 10
Joined: Mon Jul 30, 2007 8:00 pm
Top


Post a reply
2 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 22 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub