RSS Feed, BB Code

Here's one for you guys, not that familiar with RSS or BB Code, so I am deferring to you guys on this one.  When integrating phpBB3 into Dolphin, the RSS Feed on the home page and members page is displaying the BB Code for color, font and so on.  Is there a way to get the RSS in dolphin to ignore this code and just print the words or act at least like Unity and leave the space blank as it shows in the forum spy?

Quote · 26 Jul 2009

*Bump*

Quote · 27 Jul 2009

*Bumped for the great mrpowless to answer if he will**

Quote · 28 Jul 2009

Hi there. I just said to myself hmm lets find out how phpbb3 does it and use what it has.

forum/includes/functions_content.php

/**
* Strips all bbcode from a text and returns the plain content
*/
function strip_bbcode(&$text, $uid = '')
{
if (!$uid)
{
$uid = '[0-9a-z]{5,}';
}

$text = preg_replace("#\[\/?[a-z0-9\*\+\-]+(?:=(?:".*"|[^\]]*))?(?::[a-z])?(\:$uid)\]#", ' ', $text);

$match = get_preg_expression('bbcode_htm');
$replace = array('\1', '\1', '\2', '\1', '', '');

$text = preg_replace($match, $replace, $text);
}

You have the function: these kind usually get placed into inc/utils.inc.php

Now how and where does dolphin spit out forum posts text?

wrap it in this function

IE:

function strip_bbcode($text)

You will need more work but this will get you going in the right direction.

I have video tutorials to help you mrpowless.com
Quote · 29 Jul 2009

Thanks a million for giving me a place to start on this, take a look at it and see if I can't finish it up.  Let you know how it goes.

Quote · 29 Jul 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.