i am gettign
this error on my forum when i add the center code
error
Code:
Parse error: syntax error, unexpected T_STRING in /home/zonamusi/public_html/tu_zona/global.php(341) : eval()'d code on line 3
Fatal error: Call to undefined function: highslide_attachment_replace() in /home/zonamusi/public_html/tu_zona/includes/class_bbcode.php(345) : eval()'d code on line 3
Highslide Attachment Thumbnail
Code:
$vbulletin->templatecache['postbit_attachmentthumbnail'] = str_replace('href=\"attachment.php','id=\"att_$attachment[attachmentid]\" rel=\"'.$slashurl.'_slash_attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]\" class=\"highslide\" onclick=\"return hs.expand(this, { slideshowGroup: \'$post[postid]\', align: \'center\' })\" href=\"attachment.php',$vbulletin->templatecache['postbit_attachmentthumbnail']);
Highslide Main Function
Code:
function highslide_attachment_replace($in) {
global $post, $attachment;
return preg_replace('/<a href="([^"]*)" target="_blank"><img src="([^"]*)" class="thumbnail" border="0"/','<a class="highslide" onclick="return hs.expand(this, { slideshowGroup: '.$post[postid].', align: 'center'} )" href="\\1" id="att_'.$attachment[0].'" target="_blank"><img src="\\2" class="thumbnail" border="0"',$in);
}
what i do wrong? :/