https://www.icyphoenix.com/viewtopic.php?f=4&t=4403&p=30374#p30374
-----------------------------------
Lopalong
Fri 08 Aug, 2008 01:39

Re: How To Add Icy Phoenix BBCode Parsing To MODS Or Other P
-----------------------------------
I'm not sure to what extent you need in the way of examples, but here's the old code that MODS use, and the new code that IP uses. ;)

[code linenumbers=false]OLD:

$preview_announcement = $new['announcement_text_draft'];

$preview_announcement_uid  	= make_bbcode_uid();
$preview_announcement	= bbencode_first_pass( $preview_announcement, $preview_announcement_uid );
$preview_announcement	= bbencode_second_pass ( $preview_announcement, $preview_announcement_uid );
$preview_announcement	= smilies_pass($preview_announcement, './../');
$preview_announcement	= str_replace("n", "n<br />n", $preview_announcement);

#######

NEW: (Just one line that parses the bbCode to the page.)

$preview_announcement = $bbcode->parse ($new['announcement_text_draft']);

#######


NOTE: That the new  "announcement_text_draft" is now encapsulated. ;-)

So this would be the most important line for parsing the code. $bbcode->parse ($new['announcement_text_draft']);
[/code]

You could also download the modified ACP_Announcement_Center from icythemes.com as it's only about 3-4 pages, and strip the Db queries and anything else that you don't need out of it. :P

If you need to compare it, then search phpBB customisations for "Announcement" and that should bring up the old version.


Best of Luck!  :mryellow:


