View previous topic :: View next topic |
Author |
Message |
acidgloss
Joined: 08 Oct 2003 Posts: 12 Location: Long Island NY
|
Posted: Sat Jan 17, 2004 9:00 pm Post subject: Smilies in Comments |
|
|
I looked around the boards and couldn't find what I was looking for; so I had to post it here - Sorry in advance.
I set up B2 for someone, and they wanted the clickable smilies on the comments, using the tutorial I got off kittyness.com, everything seemed to be going well until I tested it after posting. The image doesn't show up; it shows me the code.
Code: | <script language="JavaScript">
function smile(face)
{
var cache = document.form.comment.value;
document.form.comment.value = cache + " " + face;
document.form.comment.focus();
}
</script>
<a href="javascript:smile(':arrow:')">
<img src="/b2/b2-img/smilies/icon_arrow.gif " border="0">
</a> |
This is the code setup that I'm using, via kittyness.com's tutorial. Now it seems to work for her, and I know that smilies are enabled being as they're showing up for the blog itself, and the b2config.php shows that they are enabled.
Any idea's on how I can fix this?
http://13r0wnsuga.net/b2/
Is the URL ; if you look at the comments on the top entry you have an idea on what I'm talking about.
Krissy - email - url
Comments test? :biggrin:
17.01.04 @ 14:46:34
It's supposed to look like this:
Krissy - email - url
Comments test?
17.01.04 @ 14:46:34[/code]
Thanks in advance. |
|
Back to top |
|
 |
Miyu
Joined: 05 Nov 2002 Posts: 32
|
Posted: Sun Jan 18, 2004 12:10 am Post subject: |
|
|
There is a tutoriala round here somewhere, because I got it for my comments...but that was awhile ago....  |
|
Back to top |
|
 |
acidgloss
Joined: 08 Oct 2003 Posts: 12 Location: Long Island NY
|
Posted: Sun Jan 18, 2004 12:14 am Post subject: |
|
|
I actually did some tweaking myself and realized that you have to set up the kind of code to match the one listed on the b2config file; so I think you can consider this a closed thread now :hehe: -- Sorry for the trouble. |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1006 Location: Washington
|
|
Back to top |
|
 |
Kathryn618
Joined: 03 Sep 2003 Posts: 6 Location: South Carolina
|
Posted: Sun Feb 08, 2004 4:29 am Post subject: Thanks.. :) |
|
|
thanks for sharing this hack! Very easy!!  |
|
Back to top |
|
 |
|