Dear FireBoard users,
In order to further develope the need of Joomla for a robust forum, FireBoard component has been moved to its own new home and new name. You can find more information regarding the Kunena, the successor of FireBoard, at kunena.com. The current forum here will stay for some time more for referencing needs. You can find the FireBoard files under joomlacode.org and other files
Upgrading to Kunena is highly recommended!

Kunena! - To Speak!

A revolution is coming... Kunena - Swahili for: To Speak! THE Next generation of native Joomla based Forum ultra component. Forget what you know about Joomla based forums...
Amazingly Simple Lean and Clean Easier Customization
Kunena is about to redefine the world of Joomla! with the most simplistic ultra component out there. For ultimate performance based on state of the art development techniques, Kunena! is about to bring you... With an integrated plugin system that will allow you to extend Kunena beyond your wildest imaginations...
FireBoard Open Converter Framework
TOPIC: FireBoard Open Converter Framework
#53885
FireBoard Open Converter Framework 9 Years, 4 Months ago  
Ever since working on the latest install/upgrade framework for all future FireBoard versions I realized that most converters are basically one-time upgrades. They behave very similarly and so any install/upgrade framework would work very nicely for a standard framework for converters.
In most cases you need a set of SQL statements coupled with some level of custom code.

I snuck in a little something inside the latest FB1.0.5 builds that nobody notices so far. B)
Inside the plugin/converter directory of the backend you find 3 files - the blueprint for an open converter framework.

The main framework logic is inside the fb_converter.class.php file. It performs the actual convertion.
The other two files included: joomlaboard.xml and joomlaboard.php are a very simple example on how a converter could look like. The version information as well as the basic SQL tasks can be embedded into the XML file. More advanced php code would go into the php file.

The idea is to have a standard framework that allows for any forum converter to be built - as long as the target is FireBoard - and its execution is easy and straigh forward for the regular website admin, without the need for manual coding or manual execution of SQL scripts. Error handling is provided by the framework and it creates a clean screen output - exactly like the install function of the new FireBaord.

What would it take to integrate the converter framework and start building converters?

If there is a developer who is willing to take this to the next level I would be happy to lend some support in order to make this work.

Here is what is needed:
1.) Backend screen to install/uninstall, select and execute from a list of installed converters. Could be as simple as the backend config screen with a few selections possible.
2.) Take any existing or new converter and build a package based on the framework blueprint provided. Any existing converter with known SQL statements and code logic should easily be refactored into this framework.
3.) Make any necessary changes/additions to the db_converter.class.php - That\'s where I would be happy to help with.

Let me know if there is any serious interest from folks who have previously written converters. This could become a venue to publish converters to a broader audience.

Looking forward to your response... :)
#53885
FireBoard Open Converter Framework 9 Years, 4 Months ago  
Ever since working on the latest install/upgrade framework for all future FireBoard versions I realized that most converters are basically one-time upgrades. They behave very similarly and so any install/upgrade framework would work very nicely for a standard framework for converters.
In most cases you need a set of SQL statements coupled with some level of custom code.

I snuck in a little something inside the latest FB1.0.5 builds that nobody notices so far. B)
Inside the plugin/converter directory of the backend you find 3 files - the blueprint for an open converter framework.

The main framework logic is inside the fb_converter.class.php file. It performs the actual convertion.
The other two files included: joomlaboard.xml and joomlaboard.php are a very simple example on how a converter could look like. The version information as well as the basic SQL tasks can be embedded into the XML file. More advanced php code would go into the php file.

The idea is to have a standard framework that allows for any forum converter to be built - as long as the target is FireBoard - and its execution is easy and straigh forward for the regular website admin, without the need for manual coding or manual execution of SQL scripts. Error handling is provided by the framework and it creates a clean screen output - exactly like the install function of the new FireBaord.

What would it take to integrate the converter framework and start building converters?

If there is a developer who is willing to take this to the next level I would be happy to lend some support in order to make this work.

Here is what is needed:
1.) Backend screen to install/uninstall, select and execute from a list of installed converters. Could be as simple as the backend config screen with a few selections possible.
2.) Take any existing or new converter and build a package based on the framework blueprint provided. Any existing converter with known SQL statements and code logic should easily be refactored into this framework.
3.) Make any necessary changes/additions to the db_converter.class.php - That\'s where I would be happy to help with.

Let me know if there is any serious interest from folks who have previously written converters. This could become a venue to publish converters to a broader audience.

Looking forward to your response... :)
#53890
Re:FireBoard Open Converter Framework 9 Years, 4 Months ago  
lol i noticed it but i thought it\'s some outdated stuff for old joomlaboards :)
#53896
Re:FireBoard Open Converter Framework 9 Years, 4 Months ago  
[b]pedrohsi wrote:[/b]
[quote]lol i noticed it but i thought it\'s some outdated stuff for old joomlaboards :)[/quote]

I had to use a simple example and the joomla board converter is the easiest of all. B)
#58549
Re:FireBoard Open Converter Framework 9 Years, 2 Months ago  
such a great job you did finally get 1.05 stable out...

Any luck on making a Converter for PHPBB2 or PHPBB3 converter to FIREBOARD...

You seem to have the fRAMework..

it would be great to see a couple of official converters for the major boards to convert them to FB now?
#60881
Re:FireBoard Open Converter Framework 9 Years ago  
How do I get the converter to run if it does not show in the FB control panel? I have JB 1.1.2 running.
#60883
Re:FireBoard Open Converter Framework 9 Years ago  
You don\'t get JB upgraded properly first.
#60895
Re:FireBoard Open Converter Framework 9 Years ago  
Thanks. I got to work using FB 1.0.4 as suggested by another poster, so all is well.
#61073
Re:FireBoard Open Converter Framework 9 Years ago  
[b]fxstein wrote:[/b]
[quote]Ever since working on the latest install/upgrade framework for all future FireBoard versions I realized that most converters are basically one-time upgrades. They behave very similarly and so any install/upgrade framework would work very nicely for a standard framework for converters.
In most cases you need a set of SQL statements coupled with some level of custom code.

I snuck in a little something inside the latest FB1.0.5 builds that nobody notices so far. B)
Inside the plugin/converter directory of the backend you find 3 files - the blueprint for an open converter framework.

The main framework logic is inside the fb_converter.class.php file. It performs the actual convertion.
The other two files included: joomlaboard.xml and joomlaboard.php are a very simple example on how a converter could look like. The version information as well as the basic SQL tasks can be embedded into the XML file. More advanced php code would go into the php file.

The idea is to have a standard framework that allows for any forum converter to be built - as long as the target is FireBoard - and its execution is easy and straigh forward for the regular website admin, without the need for manual coding or manual execution of SQL scripts. Error handling is provided by the framework and it creates a clean screen output - exactly like the install function of the new FireBaord.

What would it take to integrate the converter framework and start building converters?

If there is a developer who is willing to take this to the next level I would be happy to lend some support in order to make this work.

Here is what is needed:
1.) Backend screen to install/uninstall, select and execute from a list of installed converters. Could be as simple as the backend config screen with a few selections possible.
2.) Take any existing or new converter and build a package based on the framework blueprint provided. Any existing converter with known SQL statements and code logic should easily be refactored into this framework.
3.) Make any necessary changes/additions to the db_converter.class.php - That\'s where I would be happy to help with.

Let me know if there is any serious interest from folks who have previously written converters. This could become a venue to publish converters to a broader audience.

Looking forward to your response... :)[/quote]


anychance of getting you to make a PHPBB2 or PHPBB3 converter to FIREBOARD...

don\'t understand as you have done a great job finally getting 1.5RC2 out so there is all of use who where using other boards that would like to convert to 1.5rc2 until FB2.0 arrives someday :)

here is code for a converter posted but i not clear that it works correctly... with joomla 1.5x and PHPBB3 -> FB 1.05RC2.. wish you guys would make some type of release..

thanks..

[code]<?
/*
PhpBB3 to Fireboard converter
Based on the phpbb2tfb.php script by Jon Fawcett jefawcett@thinkanywhere.com

This script is provided as is with no warranty. Use it at your own risk.

Modifications by Samuel Lopez samulopez@gmail.com

*/

// Should not need changed. This is the mysql host
$dbhost=\'localhost\';
// Enter your Database name here
$db=\'\';
// Enter your Database username here
$dbuser=\'\';
// Enter your Database password here
$dbpass=\'\';

// Joomla database prefix
$josConfig_dbprefix = \"jos_\";

// phpBB3 database prefix
$phpbb_dbprefix = \"phpbb3_\";


// Nothing below here should need changed. However, if you make a modification, please
// let me know what it is so I can incorporate it into my own copy.

// DB Connection Stuff
$sqlConnect=mysql_connect($dbhost,$dbuser,$dbpass);
if(!$sqlConnect):
echo \"db connection error\";
die();
else:
mysql_select_db($db,$sqlConnect);
echo \"OK\";
endif;



/* FORO Y USUARIOS */

$query=\"ALTER TABLE `{$josConfig_dbprefix}fb_messages` ADD `phpbb_userid` int(10) NOT NULL default \'1\'\";
$result = @mysql_query($query);// or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());
// $result = mysql_query($query) or alert(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

//Populate Categories
echo \"<br />Populating Categories...\\n\";
$query=\"TRUNCATE TABLE {$josConfig_dbprefix}fb_categories\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

// Import the main categories
$query=\"INSERT INTO {$josConfig_dbprefix}fb_categories (id,parent,name,cat_emoticon,locked,alert_admin,moderated,moderators,pub_access,pub_recurse,admin_access,admin_recurse,ordering,future2,published,checked_out,checked_out_time,review,hits,description) SELECT forum_id + 500, 0, forum_name, 0, 0, 0, 0, NULL, 0, 0, 0, 0, left_id, 0, 1, 0, \'0000-00-00 00:00:00\', 0, 0, \'\' FROM {$phpbb_dbprefix}forums WHERE parent_id=\'0\' ORDER BY left_id\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

// Import the forums
$query=\"INSERT INTO {$josConfig_dbprefix}fb_categories (id,parent,name,ordering,description,pub_access,pub_recurse,published,numPosts,numTopics,id_last_msg) SELECT forum_id, parent_id + 500, forum_name, left_id, forum_desc, 0, 0, 1, forum_posts, forum_topics, forum_last_post_id FROM {$phpbb_dbprefix}forums\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

$query=\"update {$josConfig_dbprefix}fb_categories, {$josConfig_dbprefix}fb_messages set time_last_msg={$josConfig_dbprefix}fb_messages.time WHERE {$josConfig_dbprefix}fb_categories.id_last_msg={$josConfig_dbprefix}fb_messages.id and id_last_msg>0\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());
echo \"OK\\n\";


//Populate Messages Table
echo \"<br />Populating Messages Table...\\n\";
$query=\"TRUNCATE TABLE {$josConfig_dbprefix}fb_messages\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

// Read all threads and posts from phpbb
// $query=\"SELECT p.post_id, p.poster_ip, p.topic_id, p.poster_id, p.post_time, t.topic_title, t.forum_id, t.topic_views\"

$query=\"SELECT p.post_id, p.poster_ip, p.topic_id, p.poster_id, p.post_time, p.post_username, t.topic_title, t.forum_id, t.topic_views,t.topic_type, p.post_subject\"
.\" FROM {$phpbb_dbprefix}posts AS p, {$phpbb_dbprefix}topics AS t\" // $JMI
.\" WHERE p.topic_id = t.topic_id\" // $JMI
.\" ORDER BY p.topic_id, p.post_id\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

// Iterate over all the posts and add them to simpleboard after some conversion
$currentthread = \"\";
$lastpost = 0;
while ($row = mysql_fetch_object($result)) {
// Convert ip to sb-format
// $row->poster_ip = phpbb_decode_ip($ip); $JMI mal!
$row->poster_ip = phpbb_decode_ip($row->poster_ip);

// Check if we have a new thread number
if ( $currenttopicid != $row->topic_id ) {
$currenttopicid = $row->topic_id;
$currentthread = $row->post_id;
$lastpost = 0;
$subject = addslashes( $row->topic_title );
$postparent = 0 ;
} else {
if ( $row->post_subject == \"\" ) { // $JMI ini
$subject = \"Re: \" . addslashes( $row->topic_title );
} else {
$subject = addslashes( $row->post_subject );
} // $JMI fin
$postparent = $currentthread ;
}

// Insert the post into the database
$query=\"INSERT INTO `{$josConfig_dbprefix}fb_messages`\"
.\" (id, ip, phpbb_userid, userid, name, time, thread, subject, hits, catid, parent, ordering)\"
// $JMI .\" VALUES (\'$row->post_id\', \'$row->poster_ip\', \'$row->poster_id\', \'$row->poster_id\', \'$row->poster_id\', \"
.\" VALUES (\'$row->post_id\', \'$row->poster_ip\', \'$row->poster_id\', \'$row->poster_id\', \'$row->post_username\', \"
// $JMI .\" \'$row->post_time\', \'$currentthread\', \'$subject\', \'$row->topic_views\', \'$row->forum_id\', \'$lastpost\')\";
.\" \'$row->post_time\', \'$currentthread\', \'$subject\', \'$row->topic_views\', \'$row->forum_id\', \'$postparent\', \'$row->topic_type\')\";
$updateresult = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());
$lastpost = $row->post_id;
}
mysql_free_result($result);


echo \"OK\\n\";

//Populate Messages_Text Table
echo \"<br />Populating Messages_Text Table...\\n\";

$query=\"TRUNCATE TABLE {$josConfig_dbprefix}fb_messages_text\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

$query=\"SELECT post_id, post_text, bbcode_uid FROM {$phpbb_dbprefix}posts\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());
$mtext = array();
$mpostid = array();
while ($row = mysql_fetch_object($result)) {
$text = addslashes($row->post_text);
$text = prep($text);

$text = preg_replace(\'/:\'.$row->bbcode_uid.\'/\', \'\', $text);
$mtext[] = addslashes($text);
$mpostid[] = $row->post_id;
}
mysql_free_result($result);

for ($i=0; $i < count($mtext); $i++){
$query=\"INSERT INTO `{$josConfig_dbprefix}fb_messages_text`\"
.\" (mesid, message) VALUES\"
.\" (\".$mpostid[$i].\", \\\"\".$mtext[$i].\"\\\")\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());
}
echo \"OK\\n\";


//Populate Users Table
echo \"<br />Populating Users Table...\\n\";

$query=\"TRUNCATE TABLE {$josConfig_dbprefix}fb_users\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

// Get the group id:s for regular users and administrators in Mambo.
$query = \"SELECT id FROM {$josConfig_dbprefix}core_acl_aro_groups WHERE name=\'Registered\' OR name=\'Administrator\' ORDER BY name ASC\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());
$admingid = mysql_result( $result, 0, 0 );
$usergid = mysql_result( $result, 1, 0 );




// Read all users from phpBB2
$query=\"SELECT u.*, b.ban_userid FROM {$phpbb_dbprefix}users AS u LEFT OUTER JOIN {$phpbb_dbprefix}banlist AS b ON u.user_id = b.ban_userid WHERE user_id > 0 ORDER BY u.user_id\";
// Read all users from postnuke
//$query=\"SELECT u.* FROM {$phpbb_dbprefix}users AS u WHERE pn_uid > 0 ORDER BY u.pn_uid\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

// The query to pull the existing nuke data

$count=0;
while($row = mysql_fetch_object( $result )):


// Is this user banned?
$block = \"0\";
if ( $row->ban_userid ) {
$block = \"1\";
}


// Set user type and group id
// if ( $row->user_level == \"1\" ) {
// $usertype = \"administrator\";
// $gid = $admingid;
// } else {
$usertype = \"Registered\";
$gid = $usergid;
//}
$emailadmin = \"0\";
// }
// Convert date for last visit and register date.
$registerDate = date( \"Y-m-d H:i:s\", $row->user_regdate );
$lastvisitDate = date( \"Y-m-d H:i:s\", $row->user_lastvisit);



$text = preg_replace(\'/:\'.$row->bbcode_uid.\'/\', \'\', $text);
// Convert bbcode in signature
$row->user_sig = preg_replace(\'/:\'.$row->user_sig_bbcode_uid.\'/\',\'\', $row->user_sig);
$row->user_sig = prep( $row->user_sig );
$row->user_from = prep( $row->user_from );
// No imported users will get mails from the admin
$emailadmin = \"0\";

print \"$row->username: \";


// Insert user into Mambo user table
$query = \"
INSERT INTO {$josConfig_dbprefix}users
(name, username, email, password, usertype, block, sendEmail, gid, registerDate, lastvisitDate)
VALUES (\'$row->username\', \'$row->username\', \'$row->user_email\', \'$row->user_password\', \'$usertype\', \'$block\', \'$emailadmin\', \'$gid\', \'$registerDate\', \'$lastvisitDate\')
\";
mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

$newuserid = mysql_insert_id( );
print \"$newuserid - NEW \\n\";

// Add user to core acl groups map
$query = \"INSERT INTO {$josConfig_dbprefix}core_acl_groups_aro_map ( group_id, aro_id ) VALUES ( $gid, $newuserid )\";
mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

// Add user to core acl aro map
$query = \"INSERT INTO {$josConfig_dbprefix}core_acl_aro (id,section_value,value,order_value,name,hidden) VALUES ( $newuserid, \'users\', $newuserid, 0, \'$row->username\', 0 )\";
mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());




// Update all posts from this user with the correct userid and username
$query = \"UPDATE `{$josConfig_dbprefix}fb_messages` SET userid = \'$newuserid\', name = \'$row->username\' WHERE phpbb_userid = \'$row->user_id\'\";
mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());

$query = \"INSERT INTO `{$josConfig_dbprefix}fb_users` (userid, posts, signature, location, ICQ, AIM, YIM, MSN, websiteurl) VALUES (\'$newuserid\', \'$row->user_posts\', \'$row->user_sig\', \'$row->user_from\', \'$row->user_icq\', \'$row->user_aim\', \'$row->user_yim\', \'$row->user_msnm\', \'$row->user_website\')\";

mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());


$id++;
$aroid++;
$count++;
endwhile;
mysql_free_result($result);

// Remove the placeholder for the userid from phpBB2
$query=\"ALTER TABLE `{$josConfig_dbprefix}fb_messages` DROP `phpbb_userid`\";
$result = mysql_query($query) or die(\"<br />Invalid query:<br />$query<br />\" . mysql_error());


echo \"<BR><B>Inserted \".$count.\" Users\";




/*******************************************************************************************************************************************************/





/* FUNCIONES AUXILIARES */



function phpbb_decode_ip($int_ip)
{
if ($int_ip == \'00000000\') {
return \'0.0.0.0\';
} else {
return long2ip(\"0x{$int_ip}\");
}
}

//--- Function to prepare strings for MySQL storage ---/
function prep($s) {
// Parse out the $uid things that fuck up bbcode


$s = preg_replace(\'/\\&lt;/\', \'<\', $s);
$s = preg_replace(\'/\\&gt;/\', \'>\', $s);
$s = preg_replace(\'/\\&#58;/\', \':\', $s);
$s = preg_replace(\'/\\&#46;/\', \'.\', $s);
$s = preg_replace(\'/\\&quot;/\',\'\',$s);
$s = preg_replace(\'/\\&amp;/\',\'&\',$s);


// <strong> </strong>
$s = preg_replace(\'/\\[b:(.*?)\\]/\', \'[b]\', $s);
$s = preg_replace(\'/\\[\\/b:(.*?)\\]/\', \'[/b]\', $s);

// <em> </em>
$s = preg_replace(\'/\\[i:(.*?)\\]/\', \'[i]\', $s);
$s = preg_replace(\'/\\[\\/i:(.*?)\\]/\', \'[/i]\', $s);

// <u> </u>
$s = preg_replace(\'/\\[u:(.*?)\\]/\', \'[u]\', $s);
$s = preg_replace(\'/\\[\\/u:(.*?)\\]/\', \'[/u]\', $s);

// quote
$s = preg_replace(\'/\\[quote:(.*?)\\]/\', \'[quote]\', $s);
$s = preg_replace(\'/\\[quote(:(.*?))?=\"(.*?)\"\\]/\', \'[b]\\\\3[/b]\\n[quote]\', $s);
$s = preg_replace(\'/\\[\\/quote:(.*?)\\]/\', \'[/quote]\', $s);

// image
#$s = preg_replace(\'/\\[img:(.*?)=\"(.*?)\"\\]/\', \'[img=\"\\\\2\"]\', $s);
$s = preg_replace(\'/\\[img:(.*?)\\](.*?)\\[\\/img:(.*?)\\]/si\', \'[img]\\\\2[/img]\', $s);

// color
$s = preg_replace(\'/\\[color=(.*?):(.*?)\\]/\', \'[color=\\\\1]\', $s);
$s = preg_replace(\'/\\[\\/color:(.*?)\\]/\', \'[/color]\', $s);

// size
$s = preg_replace(\'/\\[size=\\d:(.*?)\\]/\', \'[size=1]\', $s);
$s = preg_replace(\'/\\[size=1[0123]:(.*?)\\]/\', \'[size=2]\', $s);
$s = preg_replace(\'/\\[size=1[4567]:(.*?)\\]/\', \'[size=3]\', $s);
$s = preg_replace(\'/\\[size=((1[89])|(2[01])):(.*?)\\]/\', \'[size=4]\', $s);
$s = preg_replace(\'/\\[size=2[234567]:(.*?)\\]/\', \'[size=5]\', $s);
$s = preg_replace(\'/\\[size=((2[89])|(3[01])):(.*?)\\]/\', \'[size=6]\', $s);
$s = preg_replace(\'/\\[size=3[2-9]:(.*?)\\]/\', \'[size=7]\', $s);
$s = preg_replace(\'/\\[\\/size:(.*?)\\]/\', \'[/size]\', $s);

// code
$s = preg_replace(\'/\\[code:(.*?):(.*?)\\]/\', \'[code:\\\\1]\', $s);
$s = preg_replace(\'/\\[\\/code:(.*?):(.*?)\\]/\', \'[/code:\\\\1]\', $s);

// lists
$s = preg_replace(\'/\\[list(:(.*?))?\\]/\', \'[ul]\', $s);
$s = preg_replace(\'/\\[list=([a1]):(.*?)\\]/\', \'[ol]\', $s);
$s = preg_replace(\'/\\[\\*:(.*?)\\]/\', \'[li]\', $s);
$s = preg_replace(\'/\\[\\/list:u:(.*?)\\]/\', \'[/ul]\', $s);
$s = preg_replace(\'/\\[\\/list:o:(.*?)\\]/\', \'[/ol]\', $s);


$s = preg_replace(\'/\\<b>/\', \'[b]\', $s);
$s = preg_replace(\'/\\<\\/b>/\', \'[/b]\', $s);



$s = preg_replace(\'/\\<!-- s/\', \'\', $s);
$s = preg_replace(\'/\\-->/\', \'\', $s);
$s = preg_replace(\'/\\<!-- e/\', \'\', $s);
$s = preg_replace(\'/\\<!-- w/\',\'\' , $s);
$s = preg_replace(\'/\\<!-- m/\',\'\' , $s);
$s = preg_replace(\'/\\<img src=\\\\\\\"{SMILIES_PATH}.*?\\/>:.*?:/\', \'\', $s);
$s = preg_replace(\'/\\<img src=\\\\\\\"{SMILIES_PATH}.*?\\/>\\\\S\\\\S/\', \'\', $s);

$s = preg_replace(\'/\\<a class=\\\\\\\"postlink\\\\\\\" href=\\\\\\\"(.*?)\\\\\\\">(.*?)<\\/a>/\',\'[url=\\\\1]\\\\2[/url]\' ,$s );
$s = preg_replace(\'/\\<a href=\\\\\\\"(.*?)\\\\\\\">(.*?)<\\/a>/\',\'[url=\\\\1]\\\\2[/url]\' ,$s );

$s = preg_replace(\'/\\<a href=.*?mailto:.*?>/\',\'\' , $s);

$s = preg_replace(\'/\\<\\/a>/\' ,\'\' , $s);


$s = preg_replace(\'/\\\\\\\\/\', \'\', $s);



$s = addslashes($s);

return $s;
}


?>
<BR>
Skipped: <?=$skipped?>[/code]
Page: 1