Log in

View Full Version : parse $post[title] in bbcode_code template


bartek24m
10-12-2011, 08:01 AM
How can i parse thread title in bbcode_code template ?




my bbcode template is:

<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px inset;
width: $stylevar[codeblockwidth];
height: {$blockheight}px;
text-align: left;
overflow: auto">
$code</pre>
</div>

i would like to add before $code thread title

i try to add $post[title] but it doesn't work :/

kh99
10-12-2011, 12:51 PM
You might be able to use $GLOBALS['threadinfo']['title'].