Well, I love this hack it`s a great idea but the users where complaining about the different tags showing up in the downloaded messages, I added the following to remove them.. (don`t know if this is the best way of doing this, but it works and for the users that`s all that counts)
add:
Code:
$dlt = $post[pagetext];
$dlt = htmlspecialchars($dlt);
$dlt = preg_replace("/(\[quote])/siU", "\r\n******************************************************************************\r\n", $dlt);
$dlt = preg_replace("/(\[\/quote])/siU", "\r\n******************************************************************************", $dlt);
$dlt = preg_replace("/(\[)(.*)(\])/siU", "", $dlt);
$dlt = preg_replace("/(\[\/)(.*)(\])/siU", "", $dlt);
$dlt = preg_replace("/(\[\*\])/siU", "", $dlt);
after:
Code:
while ($post=$DB_site->fetch_array($post_db))
{
and change:
Code:
print ("\r\n$post[pagetext]\r\n\r\n");
to:
Code:
print ("\r\n$dlt\r\n\r\n");