Icy Phoenix
Documentation And How To - BBCODE - CUSTOMIZATION - DANGEROUS - How To Allow IFRAME And Full HTML Parsing
mamagallo [ Sun 09 Sep, 2007 16:16 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
there is no form of which it works to me, although Mighty assures that if, I have proven it 20 times and it does not work, I suppose that those changes do not affect the last version of the IcyPhoenix, it creates an account of test user
http://www.mundodecuaimas.com/plus/
User: Test
Password:test123
the IcyPhoenix I have it installed in a test folder and configuration while I do not verify that it works correctly, the aspect that will see is the end, single I need to install a pair and things that I will have to consult later.

Mighty Gorgon [ Fri 14 Sep, 2007 02:45 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
I'll test it again tomorrow and let you know... ok?
mamagallo [ Fri 14 Sep, 2007 12:16 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
oK Thanks, really are important for my

Mighty Gorgon [ Mon 17 Sep, 2007 00:33 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
First post updated... try to reapply the modification and let me know.
When IFRAME active... Install a good antivirus and good luck.

mamagallo [ Mon 17 Sep, 2007 05:01 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing

Good so it seems that I did not know to explain myself, when I said that needed to be able to use the htm within post of my forum, and I made him waste its time, I request excuses to him, will try to be more I specify.... this is the example of the code of a table whatever I want to use:
<center>
<center><TABLE BORDER=2 CELLSPACING="07" CELLPADDING="30" background="http://fa.univision.com/attachments/univision/imagenes/286866/1/doradosecretgarden.jpg" WIDTH="85%"><TR><TD BACKGROUND="http://www.fiestac.com/fondos/nav76.jpg"><center>
<TABLE BORDER=1 CELLSPACING="5" CELLPADDING="10" background="http://fa.univision.com/attachments/univision/imagenes/286866/1/doradosecretgarden.jpg" WIDTH="85%"><TR><TD BACKGROUND="http://www.fiestac.com/fondos/darkgrain.jpg">
<center>
<font size=3 color=DARKBLUE>[b]
<CENTER><table width="320" height="455" border="02" cellpadding="0" bordercolor="DARKBLUE"><tr><td align="center" valign="middle"><img src="http://img507.imageshack.us/img507/2549/57177996gc8.gif" width="320" height="455" /></td></tr></table>
title of the POEM
[img]http://i14.photobucket.com/albums/a348/rousse/azulbrillo9op.gif[/img]
TEX TO POEM
[img]http://i14.photobucket.com/albums/a348/rousse/azulbrillo9op.gif[/img]
name of the author
</CENTER>
</TD></TR></TABLE></CENTER>
</TD></TR></TABLE></CENTER>[/b]</center>
this table to the published being had to be seen of this form by the users
that is what I can do in my old forum and the forums of poetry of shoshan.cl where I participate,

wanted that puediera IP to have that ability and that my users could operate a little plus their creativity. I returned to make the modifications and nothing has changed,

not if I am so clumsy that I cannot follow instructions so simple, if pleases I can place the code of the modified archives in order that it can review if I committed some error

Mighty Gorgon [ Thu 20 Sep, 2007 01:15 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
If you need to post full HTML you need to apply the latest modification in my first post... isn't that working?
I wouldn't do that... but if you cannot live without...
mamagallo [ Sun 23 Sep, 2007 02:41 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
edit

the archives are very great to be visualized in the forum, could indicate to me if I can be sent by email, to verify that well they were modified?

mamagallo [ Sat 29 Sep, 2007 20:31 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
Ok, already manages to see that it works, is not exactly what I look for but will have to serve, single that represents work much more for my because I must personally publish the messages that the users publish with htm, but that is better than nothing. Thank you very much, to him I am been thankful by all the annoyances that volume to occur a solution to me.

xmenfile [ Thu 22 Nov, 2007 06:44 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
I am thinking only board Admin is able to post HTML. is it still Dangerous? and beside this , is there any other way?
Thanks,
kUcHilla [ Sun 27 Apr, 2008 21:46 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
If you want add google maps iframe, you must change this to true:
'allow_empty' => true,
lvliguel [ Sun 14 Sep, 2008 17:21 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
I tried to use that and it doesnt work for me :s....
each time when i try to read my forum it was a white page, that is it!!
Quote:
/ This function will prepare a posted message for entry into the database.
function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0)
{
return trim($message);
}
Lopalong [ Mon 15 Sep, 2008 00:34 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
Then you appear to have broken the code in the wrong place or have not followed the exact instructions as outlined by MG.
For me it works OK.
lvliguel [ Mon 15 Sep, 2008 01:13 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
OK i think I copyied it bad, now It doesnt show me that error but I cant still see my HTML in the POSTs in Forums
Here I cicked in Preview and I can see it
Here I show I changed the codes
Here I show It doesnt work
well I am just doing that change "How to generally allow full HTML in posts" should I do everything to work?? or not??
Thanks
Fanshop [ Wed 17 Sep, 2008 21:00 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
Then you appear to have broken the code in the wrong place or have not followed the exact instructions as outlined by MG.
For me it works OK.
i cant do to work it too, can u share your edited files to try ?..please..i really neeed do it to work.
Lopalong [ Thu 18 Sep, 2008 00:36 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
I only tested why lvliguel was getting a white page
And if MG wants Icy Phoenix to have full html parsing, then it's better he makes the decisions and corrections in support of it.

Mighty Gorgon [ Thu 25 Sep, 2008 11:14 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
I have tested it in the past and it worked fine.
I will test again and report.
Lopalong [ Thu 25 Sep, 2008 13:07 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
How difficult would it to be to add HTML on a forum by forum basis rather than global. As I understand that's how it is at the moment. ?

Mighty Gorgon [ Fri 26 Sep, 2008 12:46 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
How difficult would it to be to add HTML on a forum by forum basis rather than global. As I understand that's how it is at the moment. ?

I have always discarded this option to avoid problems with the layout. If a user add a table not properly coded or with not all tags closed, then you may not be able to correctly view that page any more... and you may not even be able to edit the post because you can't properly access to the page (which html is broken). Enabling HTML is not a joke, and could be really dangerous, that is the main reason why I have never provided an easy way for doing it.
Anyway, someone shown how to enable HTML only for admins and mods... try to search the site for that, if you couldn't find it I will help.
Lopalong [ Fri 26 Sep, 2008 12:59 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
No, not for me either.
Sorry I asked the question.
As I agree with you about HTML and forums.
Mighty Gorgon [ Fri 26 Sep, 2008 13:47 ]
Post subject: Re: DANGEROUS - How To Allow IFRAME And Full HTML Parsing
Back on topic...
I have tried again this modification and it works great... you need to make sure that HTML is enabled in ACP and in your Profile... even the message you are viewing make sure doesn't have HTML disabled.
How to generally allow full HTML in posts:
OPEN
includes/functions_post.php
FIND
// This function will prepare a posted message for entry into the database.
function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0)
{
global $board_config, $html_entities_match, $html_entities_replace;
// Clean up the message
$message = trim($message);
if ($html_on)
{
// If HTML is on, we try to make it safe
// This approach is quite agressive and anything that does not look like a valid tag
// is going to get converted to HTML entities
$message = stripslashes($message);
$html_match = '#<[^w<]*(w+)((?:"[^"]*"|'[^']*'|[^<>'"])+)?>#';
$matches = array();
$message_split = preg_split($html_match, $message);
preg_match_all($html_match, $message, $matches);
$message = '';
foreach ($message_split as $part)
{
$tag = array(array_shift($matches[0]), array_shift($matches[1]), array_shift($matches[2]));
$message .= preg_replace($html_entities_match, $html_entities_replace, $part) . clean_html($tag);
//$message .= preg_replace($html_entities_match, $html_entities_replace, $part) . $tag;
}
$message = addslashes($message);
$message = str_replace('"', '"', $message);
}
else
{
$message = preg_replace($html_entities_match, $html_entities_replace, $message);
}
return $message;
}
REPLACE WITH
// This function will prepare a posted message for entry into the database.
function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0)
{
return trim($message);
}
If it doesn't work it is because you are doing something wrong.

Vinicius Harlock [ Sun 21 Feb, 2010 17:29 ]
Post subject: Re: BBCODE - CUSTOMIZATION - DANGEROUS - How To Allow IFRAME And Full HTML Parsing
Hello everyone
How do I add an HTML signature only for me?
Mighty Gorgon [ Wed 03 Mar, 2010 10:12 ]
Post subject: Re: BBCODE - CUSTOMIZATION - DANGEROUS - How To Allow IFRAME And Full HTML Parsing
You need to alter Icy Phoenix code for doing that... currently there is no easier way.