\n";
+ $str .= $indent . "
\n";
if($client_is_mobile_device) {
$avatar = "mobileavatar.gif";
} else {
if($user->avatar) $avatar = $user->avatar;
else $avatar = "default.gif";
}
- echo $indent . "
\n";
+ $str .= $indent . "
\n";
if(!$client_is_mobile_device) {
- echo $indent . "
ID: " . $this->pid . "
\n";
- echo $indent . "
Title: " . convert_xml($this->title) . "
\n";
+ $str .= $indent . "
ID: " . $this->pid . "
\n";
+ $str .= $indent . "
Title: " . convert_xml($this->title) . "
\n";
}
- echo $indent . "
";
- if(!$client_is_mobile_device) echo "UserID: ";
- echo $user->name . "
\n";
- echo $indent . "
";
- if(!$client_is_mobile_device) echo "Date: ";
- echo date("j. M Y - G:i", $this->date) . "
\n";
- echo $indent . "
\n";
- echo parse($this->message, $indent . " ") . "\n";
+ $str .= $indent . "
";
+ if(!$client_is_mobile_device) $str .= "UserID: ";
+ $str .= $user->name . "
\n";
+ $str .= $indent . "
";
+ if(!$client_is_mobile_device) $str .= "Date: ";
+ $str .= date("j. M Y - G:i", $this->date) . "
\n";
+ $str .= $indent . "
\n";
+ $str .= parse($this->message, $indent . " ") . "\n";
if(trim($user->signature) != "") {
- echo $indent . "
\n";
- echo parse("--------------------------\n" . $user->signature, $indent . " ") . "\n";
- echo $indent . "
\n";
+ $str .= $indent . "
\n";
+ $str .= parse("--------------------------\n" . $user->signature, $indent . " ") . "\n";
+ $str .= $indent . "
\n";
}
- echo $indent . "
\n";
- echo $indent . "
\n";
+ $str .= $indent . "
\n";
+ $str .= $indent . "
\n";
- echo $indent . "
\n";
+ $str .= $indent . "
\n";
+ $str .= $indent . "
\n";
if($recurse) {
foreach($this->replies as $reply) {
- $reply->show($indent . " ");
+ $str .= $reply->show($indent . " ");
}
}
- echo $indent . "
\n";
- echo $indent . "
\n";
+ $str .= $indent . "
\n";
+ $str .= $indent . "