Blogging Fool

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

Do you still use, or have you ever used, and will you continue to use phpNuke? What is your current favorite CMS?


Share

No Responses to "Quick Tip for phpNuke 8.x Admins – Linking Images In News Stories"

Comment Form


  • Blogging Fool: Ideally, yes.
  • Abigail: Thank you, I am a newbie at all this, that description of anchor text is great. Thank you. Do you use your keywords that you want to rank for, as an
  • Blogging Fool: A blog is a content management system "CMS" whose etymology is the longer term "web log" - developed by a man who wanted to create a journal of his in

About

Blogging Fool has been running internet communities since the days of Lynx, Veronica and gopher but only really understood the heart and soul of blogging as late as 2008. He has been invited to speak about emerging media strategies at conferences across North America.

Sign up for my private newsletter!

Name:
E-mail address:
Blogging Fool
Subscribe

Twitter links powered by Tweet This v1.8.3, a WordPress plugin for Twitter.