Log in

View Full Version : BB Code Enhancements - new simple design for [php] [code] tags


Mohammad Kamal
01-14-2013, 11:00 PM
Hello,

Here is a new simple design for [php] tags

Hope you like it!

Screenshot:

https://vborg.vbsupport.ru/attachment.php?attachmentid=143316&stc=1&d=1358249392

*Take a backup before editing any template.

open bbcode_code template, and replace it with:

[CODE]<div style="margin:20px; margin-top:5px">
<strong style="color:#8CC8FF; padding:6px; display:block; font-size:10px; border: 1px solid; background-color: #CDE7FF; width: 700px; font-size: 13px;">CODE:</strong>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px solid #8CC8FF;
width: 700px;
max-height: 400px;
text-align: left;
font-size: 13px;
background-color: #CDE7FF;
overflow: auto">$code</pre>
</div>

then open bbcode_php template and replace it with:

<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="color:#34C200; padding:6px; display:block; font-size:10px; border: 1px solid; background-color: #A5EB8B; width: 700px; font-size: 13px;">$vbphrase[php_code]:</div>
<div class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px solid #34C200;
width: 700px;
max-height: 400px;
text-align: left;
font-size: 13px;
background-color: #A5EB8B;
overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start -->$code<!-- php buffer end -->
</code>
</div>
</div>

matrex722
03-21-2013, 09:14 AM
Awesome i will try it now

http://www.7elm3aber.com/vb/f107.html

but how can i change its names (http://www.7elm3aber.com/vb/f106.html) ?

usHealthy
03-22-2013, 10:30 PM
Looks great thanks for sharing

Dorgham
03-31-2013, 12:22 AM
Modify a wonderful bbcode_code template
Thanks Mohamed