>>  Site Map >>  Forums >>  General 7x

Forum module - topics in forum:



General 7x - Discussions reagarding any other PHP-Nuke Problems. 7x



HTML in Messages

I want to post a picture in a message but when I put the HTML in and click submit the image doesn't show up and if I edit the message the HTML has gone. How do I fix this?

Thanks in advace

Version 7.6 with latest patch






Are you sure it's 7.6?






Yes definately 7.6, I can't use <center> our <a href=> tags in messages either they just disappear






Can you post up the bottom part of your config.php where it says what tags are allowed. $AllowableHTML






The same config.php with the database info in it or is there another? All I see at the bottom of that is word censor info






Yes above that....

below $badreasons






Oops, see it now Embarassed

Code: :
$AllowableHTML = array("tr"=>1,"td"=>2,"table"=>2,"div"=>2,"p"=>2,"hr"=>1,"b"=>1,"i"=>1,"strike"=>1,"u"=>1,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);


Sorry the quote is so wide but I figured I'd best post the full thing up






cool...

add the tags you want to be able to use here!! "center" "a href"

Smile






Thanks, one more question tho: what does "=>1" mean?






MiniDave Wrote: :
Thanks, one more question tho: what does "=>1" mean?


Whether something is equal to or more than 1. Not sure why it's used in this circumstance though.






its if you want to add things to your code

eg: img src= border= etc etc

attributes!






Thanks you've been a great help!!






im trying this too, and i added the image tag
and when i go to my page...the image doesnt show
and when i go back to my html code its <img border="0"> is the only thing that shows =/

this is my code i have on my config.php

Code: :
$AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1,"img"=>1,"object"=>1,"embed"=>1,"border"=>1,"center"=>1,"src"=>3,"width"=>1,"height"=>1,"a"=>1,"a href"=>1,"img src"=>1);


EDIT:
http://www.cisumfan.e-fans.net/jamment/modules.php?name=Content&pa=showpage&pid=1

the page im talking about




NEVERMIND ALL IN ITALICS! I FIGURED IT OUT =]







I just tried to add the above to the 'allowable html' array and now the login security code isn't working - instead of seeing numbers I now just get the words 'Security Code'. Please help! Confused






what did you add?

instal the back up of the config.php that you surely would have made BEFORE fiddling with it.




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Select page

Valid HTML 4.01 Valid CSS