Quote:
Originally Posted by Boofo
It looks to me like you forgot to edit the includes/functions_bbcodeparse.php. Post the bbcode_php template here and let me see it. We'll get you going. 
|
hello boofo

thnx for ur time this is the template
i am using vb 3.0 and want to hide the code only for only for PHP tag.
can u possibly also tell me, to make this work only for users who have more then 25 posts.
only users above 25 posts should be able to read the content under hidden tags
Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<table cellpadding="0" cellspacing="0" border="0" width="$stylevar[codeblockwidth]">
<tr>
<if condition="$bbuserinfo['userid']">
<td class="smallfont" align="left" nowrap="nowrap">
$vbphrase[php_code]:
</td>
<td class="smallfont" align="right" nowrap="nowrap">
(Double-click PHP box to copy code to clipboard)
</td>
</tr>
</table>
</div>
<a ondblclick='javascript:window.clipboardData.setData("Text", this.innerText); alert("PHP code copied to the clipboard. You can paste it now.");'><div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">
<code style="white-space:nowrap">
<!-- php buffer start -->$code<!-- php buffer end -->
</code>
</div></a>
<else />
<td class="smallfont" align="left">
$vbphrase[php_code]:
</td>
</tr>
</table>
</div>
<div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset">
<code style="white-space:nowrap">
<!-- php buffer start -->$vbphrase[bf2_block_php]<!-- php buffer end -->
</code>
</div>
</if>
</div>
thnx.
Sandy...