|
|
| Author |
Message |
hellfire Staff Sergeant

Joined: 28 Jun 2003 Posts: 33
|
Posted: Tue Jul 29, 2003 12:29 am Post subject: How to include smilies in News articles |
|
|
|
| I was wondering about a good.....(not sure what to call it)...something to allow me to have smilies in my articles, and stuff like that. I have a WYSWYG thing but not to clear on installation, it needs to be for Nuke 6.0 |
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Tue Jul 29, 2003 12:44 am Post subject: |
|
|
|
You will have to use HTML, just as if it were an image you wanted to include:
| Code: |
<img src=http//www.yoursite/path-to-smiley/smiley.gif>
|
For this to work, img must be in the allowableHTML array of config.php, e.g.
| Code: |
$AllowableHTML = array("b"=>1,
"i"=>1,
"a"=>2,
"em"=>1,
"br"=>1,
"strong"=>1,
"blockquote"=>1,
"tt"=>1,
"li"=>1,
"ol"=>1,
"H1"=>1,
"H2"=>1,
"H3"=>1,
"H4"=>1,
"center"=>1,
"img"=>2,
"alt"=>1,
"table"=>2,
"tr"=>2,
"td"=>2,
"p"=>2,
"div"=>2,
"font"=>2,
"p"=>1,
"p"=>1,
"ul"=>1);
|
See that "img"=>2 there? A 2 means "attributes are allowed in the tag". A 1 means they are not allowed. But not everybody agrees on this interpretation - the above setting works for me anyway. _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
hellfire Staff Sergeant

Joined: 28 Jun 2003 Posts: 33
|
Posted: Tue Jul 29, 2003 2:14 am Post subject: |
|
|
|
| That helps but I was hopin for somethin that resembles the post message thing on the forum here. |
|
| Back to top |
|
 |
johnds Private

Joined: 24 Sep 2008 Posts: 1
|
Posted: Wed Sep 24, 2008 10:32 am Post subject: |
|
|
|
| chris wrote: | You will have to use HTML, just as if it were an image you wanted to include:
| Code: |
<img src=http//www.yoursite/path-to-smiley/smiley.gif>
|
For this to work, img must be in the allowableHTML array of config.php, e.g.
| Code: |
$AllowableHTML = array("b"=>1,
"i"=>1,
"a"=>2,
"em"=>1,
"br"=>1,
"strong"=>1,
"blockquote"=>1,
"tt"=>1,
"li"=>1,
"ol"=>1,
"H1"=>1,
"H2"=>1,
"H3"=>1,
"H4"=>1,
"center"=>1,
"img"=>2,
"alt"=>1,
"table"=>2,
"tr"=>2,
"td"=>2,
"p"=>2,
"div"=>2,
"font"=>2,
"p"=>1,
"p"=>1,
"ul"=>1);
|
See that "img"=>2 there? A 2 means "attributes are allowed in the tag". A 1 means they are not allowed. But not everybody agrees on this interpretation - the above setting works for me anyway. |
I have tried to make target=_blank work, so far without luck.
Seems to me, that adding target to the the AllowableHTML has no effect.
/john |
|
| Back to top |
|
 |
|
|
 |
|
|