Business Card
Weather

Clickable Smilies and Live Preview

A quick MovableType hint. This applies specifically to those who have implemented the writeImgTag form of clicakble smilies in their Comments AND the Live Preview script. It enables you to get the smilies in the live preview. But the principle is also easy to adapt to other methods of using clickable smilies. My method is explained below, but also posted here in the MT forums. Try it out in the comments right here to see if it would suit your needs.

Posted by Oscar on 02/23 at 05:22 PM

The trackback URL for this entry is:

Maggie
25 Feb, 2003
09:01 AM

I’m testing this out and finding it very cool indeed Oscar this should definitely keep Maggie entertained today

Oscar
25 Feb, 2003
09:51 AM
member avatar

Yes, this is all kinds of fun! Be sure to check out Scriptygoddess’s LazyMan’s smilies ... I’m too lazy to install them ... actually, the truth is, I have hundreds of smilies, and the thing would take forever to load ... guess I’ll have to cogitate on the matter ... probably the intelligent thing is to actually pick and choose the best smilies and trash the rest ... but who can do that? I my smilies!

Julie
25 Feb, 2003
06:12 PM

Hey, Oscar, not that this just isn’t the greatest, whatever it is, but I’m ready for something else here ... but I do like the new jokes thing ...

adam
25 Feb, 2003
09:50 PM

Thanks for the tips.  If you want your live preview to reflect newlines as well, all you have to do is add NewText = NewText.replace(/n/g,"<br />"); to ReloadTextDiv().

Thanks for putting up the info to make smilies work with the live preview!

Oscar
25 Feb, 2003
10:13 PM
member avatar

Hey, good thinking Adam! Thanks. I hadn’t even noticed that it didn’t!

Oscar
26 Feb, 2003
06:56 PM
member avatar

Actually Adam, I coulodn’t get that to work, but this foes:

NewText = NewText.replace( /[rn]/g,"<br />");

Oscar
27 Feb, 2003
12:40 PM
member avatar

Oops! You are right to begin with Adam, as I have pointed out over on SG ... My problem is this particular browser!


19 Sep, 2003
11:45 PM

felix
31 Mar, 2004
06:00 PM

This is so cool! Just one question: would it be possible to get this to work with bbcodes? My sites comments don’t use HTML and I haven’t got the foggiest on how to change this.

Any ideas? Is it even possible?

Oscar
31 Mar, 2004
08:03 PM
member avatar

Sure Felix - that should work well. You might try searching over at the MT forums for a more specific answer as I’m just totally out of time these days, but you should be easy to do.

The trackback URL for this entry is:

Name:

Email:

Location:

URL:

Some Other Smileys

smiley sad blush wink smug wacky tongue2 tongue shifty undecided shocked wreck cry angry
veryangry2 evil cool anxious surprised smart veryhappy irked mischievous worried dead confused angel ashamed
biggrin bigmouth guilty cutie ill drunk wave lovestruck devil scoobydoo spongebob


Live Comment Preview

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:


<< Back to main