Hey guys,
Ran into an issue earlier, I have debugged this as far as I can and I can't get why I'm having issues. Mind taking a look at it? I'm trying to replace the postbit template with <if condition="$post['noattachdisplay']"> and apparently I'm not doing
something right.
Thanks in advance.
Parse error: syntax error, unexpected T_VARIABLE in /home/www/f/includes/class_postbit.php(304) : eval()'d code on line 108
PHP Code:
<?
// showthread_create_postbit
global $vbulletin;
if($vbulletin->options['hide_attach_enable']) {
$find_begin = '<!-- attachments -->';
$find_end = '<!-- / attachments -->';
$replace_begin = '<!-- attachments -->
<if condition="$post[' . "'" . 'noattachdisplay' . "'" . '">';
$replace_end = ' <!-- / attachments -->
</if>';
$vbulletin->templatecache['postbit'] = str_replace($find_begin, $replace_begin, $vbulletin->templatecache['postbit']);
$vbulletin->templatecache['postbit'] = str_replace($find_end, $replace_end, $vbulletin->templatecache['postbit']);
}