MyBB Community Forums

Full Version: Removing HTML Comments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a template that uses the group image code to create a background image.

<td class="{$altbg}" width="100%" style="background:url('{$post['groupimage']}') #efefef no-repeat;" valign="top">

Yet in the HTML output it shows:

<td class="trow1" width="100%" style="background:url('<!-- start: postbit_groupimage -->
/images/whatever.png
<!-- end: postbit_groupimage -->') #efefef no-repeat;" valign="top">

Thus I don't get the background image I need... is there a way to delete the HTML comments so that this can work? Big Grin
You can just delete the comment if you want. It won't really effect anything since it isn't parsed because it's a comment.
Well it's clearly effecting something 'cause the images aren't displaying (unless I'm missing something else, but I shouldn't be...)

I don't know where to delete the comments from, that's my problem. They aren't located in the templates so yeah...
Well are you adding the background through the theme editor? Or are you trying to put it directly into the template?
Admin CP --> Board Settings --> Change --> Server & Optimization Options

Disable "Output template start/end comments?"
You're a legend, Dennis. Smile