FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Search results blank...sometimes?? (search error blank page)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Search results blank...sometimes?? [message #163269 is a reply to message #163268] Wed, 13 October 2010 15:06 Go to previous messageGo to previous message
tw_nick   United States
Messages: 57
Registered: October 2010
Location: Dallas, TX
Karma:
Member

Here's what's in the file:

function trim_body($body)
{
/* remove stuff in old bad quote tags - remove in future release */
while (($p = strpos($body, '<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>')) !== false) {
if (($pos = strpos($body, '<br></td></tr></table>', $p)) === false) {
$pos = strpos($body, '<br /></td></tr></table>', $p);
if ($pos === false) {
break;
}
$e = $pos + strlen('<br /></td></tr></table>');
} else {
$e = $pos + strlen('<br></td></tr></table>');
}
$body = substr($body, 0, $p) . substr($body, $e);
}

/* Remove stuff in quotes */
while (preg_match('!<cite>(.*?)</cite><blockquote>(.*?)</blockquote>!is', $body)) {
$body = preg_replace('!<cite>(.*?)</cite><blockquote>(.*?)</blockquote>!is', '', $body);
}

$body = strip_tags($body);
if (strlen($body) > $GLOBALS['MNAV_MAX_LEN']) {
$body = mb_substr($body, 0, $GLOBALS['MNAV_MAX_LEN']) . '...';
}
return $body;
}

[Message index]
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: User Administration System: max 50 users displayed
Next Topic: Trying to register user gives blank page
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 13:03:49 GMT 2024

Total time taken to generate the page: 0.05289 seconds