|
Page 3 of 3
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7192
Location: Borgo San Michele
|
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.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#31 Thu 25 Sep, 2008 11:14 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Inactive User
|
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. ?
|
#32 Thu 25 Sep, 2008 13:07 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7192
Location: Borgo San Michele
|
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.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#33 Fri 26 Sep, 2008 12:46 |
|
Inactive User
|
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.
|
#34 Fri 26 Sep, 2008 12:59 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7192
Location: Borgo San Michele
|
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.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#35 Fri 26 Sep, 2008 13:47 |
|
Vinicius Harlock
Joined: February 2010
Posts: 12
Location: Salvador
|
Re: BBCODE - CUSTOMIZATION - DANGEROUS - How To Allow IFRAME And Full HTML Parsing
Hello everyone
How do I add an HTML signature only for me?
____________ “Computer, compute to the last digit the value of pi”
— Spock (Star Trek)
|
#36 Sun 21 Feb, 2010 17:29 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7192
Location: Borgo San Michele
|
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.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#37 Wed 03 Mar, 2010 10:12 |
|
|
Page 3 of 3
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
Similar Topics
Similar Topics
Topic |
Author |
Forum |
Replies |
Last Post |
|
FAP CUSTOMIZATION - Full View Only For Mem...
|
Anemia |
Archived phpBB Topics (Styles, Mods, Support) |
3 |
Sun 21 Jan, 2007 00:25 Artie |
|
FAP CUSTOMIZATION - BBCODE In Categorie's ...
|
Fabien |
Archived phpBB Topics (Styles, Mods, Support) |
6 |
Wed 28 Feb, 2007 14:03 Fabien |
|
BBCODE - How To Add Icy Phoenix BBCode Par...
|
DWho |
Documentation And How To |
10 |
Sun 24 Aug, 2008 14:08 DWho |
|
BBCODE - CUSTOMIZATION - FLV Player Allow ...
|
TheSteffen |
Documentation And How To |
10 |
Sun 08 Jan, 2012 20:03 Mighty Gorgon |
|
FAP CUSTOMIZATION - Full Album Pack
|
Julie13 |
Archived phpBB Topics (Styles, Mods, Support) |
1 |
Fri 08 Mar, 2013 08:17 Joshua203 |
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|