Page 1 of 2
Chat smileys approach... Possible?
Posted: Wed Oct 04, 2006 9:24 pm
by Inf0Byt3
The chat program we're making would definately look more cool if we could support smileys, but i don't have any idea of how to do this. Actually i've got 2 ideas, but none of them seems reliable enough... The first one would be to use a WebGadget, but we have a problem here... How can we add a new line to the contained page without having to refresh it each time an user sends a message? This would be the fastest way, and there is an alternative to this, using an EditorGadget, but I really can't figure out how to add the graphics to a specific location in the text (on the fly).
Is this possible in the first place? I would really appreciate any idea or code example. If it is too hard to make i'll quit trying to make this part.
Thanks in advance !
Posted: Wed Oct 04, 2006 9:52 pm
by White Eagle
How can we add a new line to the contained page without having to refresh it each time an user sends a message?
Wouldn't
this work?
http://www.purebasic.fr/english/viewtopic.php?t=16837
Posted: Wed Oct 04, 2006 9:53 pm
by Inf0Byt3
I guess it would, but it would not be that 'professional' to refresh each time somebody sends a message... I need some ideas of how to do this...
Posted: Wed Oct 04, 2006 9:59 pm
by White Eagle
*scratches my head* I might be missing something, the code I linked to above doesn't require a refresh, does it? Or am I remembering wrong?
I have not used that code to try and insert graphics, but I have used it with text in a "chat type" environment, and not had any issues.
Posted: Wed Oct 04, 2006 10:02 pm
by Inf0Byt3
GOD!!! I really really must start wearing glasses... Or get to sleep earlier... I didn't even see the link

. Thanks, i'll study it!
Posted: Wed Oct 04, 2006 10:12 pm
by White Eagle
Hehe, that happens to me all the time

Posted: Thu Oct 05, 2006 7:11 am
by Character
I also didn't see it.
not possible on this forum to underline links by default instead of showing up after hoovering over it?
Posted: Thu Oct 05, 2006 11:32 am
by White Eagle
I dunno, from now on I will just paste the link and not use the forums "url" commands, they never appear right for me on any browser.
Edited above post to clearly show the link.
Posted: Thu Oct 05, 2006 12:08 pm
by rsts
They may display differently depending on which phpbb "style" is selected also.
cheers
Posted: Thu Oct 05, 2006 12:53 pm
by Joakim Christiansen
Why don't you just
color your link?
Posted: Thu Oct 05, 2006 6:02 pm
by Character
Why don't you just color your link
hé, you're a smart guy

Posted: Thu Oct 05, 2006 6:13 pm
by White Eagle
Joakim Christiansen wrote:Why don't you just
color your link?
Or, I could
underline it

Posted: Thu Oct 05, 2006 6:21 pm
by Inf0Byt3
This part is done now

. What about automatically scrolling the contents down with every line added? How can i do that?
Posted: Thu Oct 05, 2006 7:05 pm
by Joakim Christiansen
You mean something like this?
Code: Select all
SendMessage_(GadgetID(#Main_Chat),#EM_SCROLL,#SB_BOTTOM,0)
Each time you add text to the editorgadget use that line.
Posted: Thu Oct 05, 2006 7:45 pm
by Inf0Byt3
Thanks, but it doesn't seem to work

. The scroll doesn't occur in the webgadget

.
[Edit]
My bad... I didn't specify i needed this for the WebGadget... I'm sorry for that.