Log in

View Full Version : Smilies missing after Plugin-Script


CGhostGroup
04-08-2013, 07:48 PM
Hello, I'm trying to add some Data to my postings (this works), but sadly the smilies missing / changed to clear.gif

<img src="http://domain.com/board/clear.gif" border="0" alt="" title="grins" class="inlineimg" original="images/smilies/grins_eckig.gif" style="">

should be:

<img src="images/smilies/grins_eckig.gif" border="0" alt="" title="grin" class="inlineimg" original="images/smilies/grins_eckig.gif" style="display: inline;">


Hook: postbit_display_complete
Executionorder: 5
My Plugin-Code:
global $vbulletin;

// Some Database-Stuff and getting $amoung
$box_top = "<div id='amnt'>".$database_stuff;
$box_end = "</div>";


if($amount == $vbulletin->options['mbs_hide_at']){

$this->post['message'] = $box_top . $this->post['message'] . $box_end;
}

So I think its a Problem with $this->post['message']?

Hopefully someone can help me with this :D


Greetings.

Lynne
04-08-2013, 08:23 PM
You do nothing else but add a div around the message and it causes the problem? That doesn't sound right. I'd be interested to see exactly what is in this part:

// Some Database-Stuff and getting $amoung