any way here is the loop:
<?
foreach($db->getBySpecId("news_comments", $_REQUEST[n_id], "article_id", "Desc") as $comment)
{
//user asset data (sig, avatar, display name, & so on)
$user = $db->getBySpecId2("users_assets", $comment[1], "user_id", "Desc");
?>
<table class="responce">
<tr>
<td colspan="2">
<br /><b> Re:<?php echo $news[3]; // Title of news article ?></b>
</td>
</tr>
<tr>
<td rowspan="3" class="responceUserBar">
<center>
<br />
<b><?php echo $user[4]; //Name of person leaving a coment ?></b>
<br />
<img src="<?php echo $user[3]; //user avatar ?>" border="0" />
<br /><br />
thumbs
<br />
</center>
</td>
<td class="responceBody">
<?php echo $string->bbToHtml($comment[4]); // users comment ?>
</td>
</tr>
<tr>
<td class="responceEditBar">
Edit | Delete
</td>
</tr>
<tr>
<td class="responceBody">
<?php echo $user[2];//user signiture ?>
</td>
</tr>
</table>
<?php
}
this is the line in the above code that is giving me trouble:
<?php echo $string->bbToHtml($comment[4]); ?>
Here is the method being called:
private function setBbToHtml($var)
{
include_once("config/bb_codeConfig.inc.php");
//replace smileys
$var2 = str_replace($smileyAscii,$smileyHtml, $var);
//replace bb code
$var3 = str_replace($bbCode,$htmlCode, $var2);
return $var3;
}
public function bbToHtml($var)
{
$var2 = $this->setBbToHtml($var);
return $var2;
}
Here is a screen of what is happening (note that i am trying to use the same smiley on them so its not that i did the smiley wrong, i copy pasted it from the working post)
[ATTACH]2988[/ATTACH]
I would like to go to bed and have a go at it when i'm awake, but unfortunitly that is not an option so i am posting on here.


Sign In
Create Account




Back to top









