Clan Adverts

Custom PHPNuke Scripts

 

Allow html tags in phpnuke

Description: There are times when you add an image or flash to your news and they do not show up. Why you asked? Well these html tags are usually not allowed. There is good news however, there is an easy way to add them to the list of allowed html tags. This tutorial will show you how to add any html tag to the allowed list.
Version: 1.0
Added on: 23 January 2008
Author: Admin
Difficulty Level: Easy
Views: 765
Rating: 10.0 (1 Vote)
Detailed ProfileView Comments (1)

Please note that you should not allow all html since some are dangerous.

Files to edit:
config.php

Steps :
1. Open config.php file and find the following codes:

Code:
$AllowableHTML = array("b"=>1,


It is really easy to add your own html. Notice how they are added:

Code:

"i"=>1,
"a"=>2,
"em"=>1,
"br"=>1,
"strong"=>1,


The numbers beside each html is significant.
(1) means that there are NO extras in the tag. Example:

Code:
<b></b>
<i></i>
<u></u>


(2) means that there ARE extras in the tag. Example:

Code:
<a href="http://www.yoursite.com" title="my link">
<img src="link to image" border="0" align="left" />


In this tutorial we will allow images, flash and class. At the end of the array we will add a comma then our tags. We will use 2 for images and flash since they allow extras and 1 for class.

Code:

"img"=>2,
"embed"=>2,
"class"=>1


Notice there are no commas after the last value in the array.