TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 468
  • Total: 468

AJAX Chat

Started by Wantonio, May 08, 2007, 03:24:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wantonio

Yes, sure...  :)

An easy way to replace ":)" with a smiley is the following:

1. Open the file w.php
2. Insert the line:
$out = str_replace(":)", "<img src='http://www....your_webspace.../smile.gif' />", $out);

Feel free to program your own features.
For example you can add the smileys under the input-field and make them clickable.
Or you can add a checkbox for "Show smileys"

If I have time enough, I will code a more exclusiv Chat with more security and more features.
Besides I don't like it, that the chat reloads every time when you open a new page.

Perhaps I should make a ToDo-List :)

katoona

QuoteFor example you can add the smileys under the input-field and make them clickable.
Or you can add a checkbox for "Show smileys"

Do you know how to do this? I am still a newbie but I am trying to learn.

Great support on this forum.  ;)

Wantonio

Yes, I know.

Showing the Smileys under the input-field should be no problem.
Then you have to write a javascript, which inserts automatically something like ":smile:" in the input-field when you click on it.
After that you have to insert:
$out = str_replace(":smile:", "<img src='http://www....your_webspace.../smile.gif' />", $out);

That's all

katoona

Ok, thanks.

I don't think that I will be able to write this javascript, but I understand for you are saying perfectly.

Is is a lot of code that will be needed in the .js, or is it just a few sentences?


espiman

Hello.

First of all, sorry for my English, iÃ,´m spanish  ;D

I have the Ajax Chat in a center block, and all is ok, but if I added a block news before, in Internet Explorer only view one line of chat, but in Mozilla Firefox view all lines correctly. If the chat block is in the top of center blocks, all is ok.

Thanks.

Wantonio

Tomorrow I'm having an important presentation, but I promise, that I'll take care of it after that ;)

katoona

I have a center block over the center block which contains the AJAX Chat, and it works in all browsers for me. I understand that this is not helping, but which IE version do you have?

espiman

Quote from: katoona on June 08, 2007, 12:45:41 AM
I have a center block over the center block which contains the AJAX Chat, and it works in all browsers for me. I understand that this is not helping, but which IE version do you have?

IE 7, thanks

Quote from: Wantonio on June 08, 2007, 12:30:01 AM
Tomorrow I'm having an important presentation, but I promise, that I'll take care of it after that ;)

   
good luck with your presentation and thanks for help me

katoona

The only browser I do not have is IE7.0, so perhaps I have the same problem without knowing it.


espiman

Wantonio, any idea?

Thanks

This website is proudly hosted on Crocweb Cloud Website Hosting.