| Author |
Message |
candy Worker


Joined: Dec 21, 2004 Posts: 225 Location: Kansas City metro
|
Posted:
Tue Jun 05, 2007 11:13 pm |
|
i am trying to add a jpg (hyperlinked) in a block but every time i put in the html code into the block and save it, the jpg doesn't show up. Then when i go back into edit the block all i see is the "<a>" code without the "<img src>" code. Any idea why it's not letting me insert images into blocks? I've used other versions of nuke before and it's not been a problem. Thanks. |
|
|
|
 |
persona_non_grata

Joined: Posts: 0
|
Posted:
Wed Jun 06, 2007 4:16 am |
|
hello candy,
did you checked if all of that is in the allowed html tags in the config.php ? |
|
|
|
 |
candy Worker


Joined: Dec 21, 2004 Posts: 225 Location: Kansas City metro
|
Posted:
Wed Jun 06, 2007 8:52 am |
|
here's what my code looks like for allowable html...is this right? i am trying to use the img src code.
| Quote: | | $AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"img src"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1); |
|
|
|
|
 |
persona_non_grata

Joined: Posts: 0
|
Posted:
Wed Jun 06, 2007 9:38 am |
|
|
|
 |
candy Worker


Joined: Dec 21, 2004 Posts: 225 Location: Kansas City metro
|
Posted:
Wed Jun 06, 2007 10:36 am |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Wed Jun 06, 2007 11:06 am |
|
You need to use "img" => 2.
The 2 means allow the img tag and attributes. The "src" is an attribute of the img tag.
I wish FB would put a comment next to that array in config.php explaining the 1 vs 2. It would have saved literally thousands of forum questions. LOL. |
|
|
|
 |
candy Worker


Joined: Dec 21, 2004 Posts: 225 Location: Kansas City metro
|
Posted:
Wed Jun 06, 2007 11:09 am |
|
ok i will try that. thank you. |
|
|
|
 |
|
|
|
|