26 Dec, 2008
Quick Tip for phpNuke 8.x Admins – Linking Images In News Stories
Posted by: Blogging Fool In: Content Management Systems|Web Hosting
Today I found the fix. It’s a simple one, now that I have found it – and it is just a simple switch that needs to be turned on in the config.php file.
For some reason, being able to include an image tag in a News Story was considered a security risk after phpnuke version 7.9.
To restore the ability to link to images in your news stories, all you have to do is allow it in $AllowableHTML in the config.php file).
Here is what the actual config.php file’s annotation says:
* If you want to use the IMG tag in your HTML code, to include images in News for example you must use the following line and comment out the old $AllowableHTML */
/*$AllowableHTML = array("img"=>2,"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); */
/* or just include "img"=>2 in the $AllowableHTML array bellow. This feature isn't included by default due to possible security issues */
$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);
So there you have it. Just un-REM one line and REM the other and you can link images in your News Stories.
OK, enough of that, just wanted to throw a little love out there to all the old-schoolers who might need a hand.
Back to blogging in the next article!
Your friend,
The Blogging Fool
Pages: Page 1 Page 2