Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-04-29 01:44:15
- alex9142
- Member
- Registered: 2008-03-17
- Posts: 45
emoticons in comments
Hi!
I tried to use an7_filter but it doesn’t show the emoticons in the comment form (I tried in several ways). Is there another plugin that can be used?
Thank you!
Offline
#2 2008-04-29 03:04:30
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: emoticons in comments
The emoticons will not show up in the comment form but will in the comment messages after being sent.
<txp:Ruhh />
Offline
Re: emoticons in comments
Yep, Sarah is correct. To add, remember that an7_filter does replace the text strings everytime when page is loaded with your code, in example with the <img src="" alt="" />
that is the “smiley”. That causes quite speed drop, so the page takes a lot time to load. Also, what more you use an7_filter
, the more it increases the amount of text that must be checked and replaced.
I would succest that you don’t surround the whole page with the tags, but only the comments. But when there is 500 comments for one article, eh then it’s slow, matter what.
And to point out, you must modify the plugin to point the paths to the images correctly, and set what to replace. Also, at same time you can replace f words and so on, if you wish.
If you want it to replace text with images in the textarea, then you would need WYSIWYG /javascript editor script, that is always aware what is going on.
Offline
Re: emoticons in comments
This could be a stupid or a clever idea:
Try wrapping the comment preview with an7_filter, so the text strings are replaced during preview and are already saved that way on the database. If this works, then it could improve performance.
Just an idea that has to be tested.
Offline
Re: emoticons in comments
As Gocom explained me on #textpattern at irc.freenode.net: this is an stupid idea.
Textpattern strips HTML before saving comments.
Offline
Re: emoticons in comments
maniqui wrote:
As Gocom explained me on #textpattern at irc.freenode.net: this is an stupid idea.
Textpattern strips HTML before saving comments.
Not stupid, actually it could work if we use textile or bypass the stripping ;) But then it could require little more modifications, plugin or little snippet, that makes it look and work cooler. Then it could work even if preview is edited or neither we won’t need to hide the preview :P
And actually the channel was #xpat but it’s quite same ;)
Last edited by Gocom (2008-04-29 04:58:47)
Offline
#7 2008-04-29 11:48:46
- alex9142
- Member
- Registered: 2008-03-17
- Posts: 45
Re: emoticons in comments
Hi!
Thank you all, for the reply.
What I am trying to do is add the emoticons in the same way that is shown in this page:
http://thebombsite.com/article/theory
I tried to wrap some elements in the forms, then the images are shown in the preview. But when I login the admin to set the comment free, it is shown with the text ( ;), 0_0 , :0 , :) , :] ) not the images.
Offline
#8 2008-04-29 16:38:27
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: emoticons in comments
You won’t be able to see the emoticons in the comments on Admin side because those are not being wrapped with an7_filter tags.
<txp:Ruhh />
Offline
Pages: 1