Code:
This is how the CODE bbcode looks :)
PHP Code:
This is how the PHP bbcode looks :)
HTML Code:
This is how the HTML bbcode looks :)
To start with go to Admin Control Panel --> Look & Feel Tab --> Manage Templates & CSS --> (YOUR SKIN NAME) --> CSS --> ipb_styles.css
Scroll to the bottom and add the following CSS:
Code:
/* ***** new code styles by Dan @ marmbi.com ***** */
.bbcode{
background: #FFF;
border: 1px solid #FFCC66;
border-top: 4px solid #FFCC66;
padding: 5px;
color: #996600;
overflow: auto;
font-size: 11px;
line-height: 110%;
}
.bbcodetitle{
font-weight: bold;
font-size: 10px;
border: 0px;
border-bottom: 1px dashed #CC6600;
color: #CC6600;
padding-bottom: 3px;
margin-bottom: 5px;
overflow: auto;
font-size: 12px;
line-height: 110%;
}
/* ***** new html styles by Dan @ marmbi.com ***** */
.bbhtml{
background: #FFF;
border: 1px solid #c3ffa8;
border-top: 4px solid #c3ffa8;
padding: 5px;
color: #7fa66e;
overflow: auto;
font-size: 11px;
line-height: 110%;
}
.bbhtmltitle{
font-weight: bold;
font-size: 12px;
border: 0px;
border-bottom: 1px dashed #82cc00;
color: #82cc00;
padding-bottom: 3px;
margin-bottom: 5px;
overflow: auto;
font-size: 11px;
line-height: 110%;
}
/* ***** new php styles by Dan @ marmbi.com ***** */
.bbphp{
background: #FFF;
border: 1px solid #ffa8a8;
border-top: 4px solid #ffa8a8;
padding: 5px;
color: #990000;
overflow: auto;
font-size: 11px;
line-height: 110%;
}
.bbphptitle{
font-weight: bold;
font-size: 12px;
border: 0px;
border-bottom: 1px dashed #cc0000;
color: #cc0000;
padding-bottom: 3px;
margin-bottom: 5px;
overflow: auto;
font-size: 11px;
line-height: 110%;
}
Save it.
Next go to Admin Control Panel --> Look & Feel Tab --> BBCode Management --> Click on the 'Code' Dropdown Button --> Edit BBCode
Tick 'yes' to drop all 'xx' cached items
ishot-2.jpg (34.87K)
Number of downloads: 1
Then scroll down to the 'Custom BBCode Replacement' box and insert this code:
Code:
<div class="bbcode">
<div class="bbcodetitle">Code:</div>
<pre>{content}</pre>
</div>
ishot-3.jpg (97.73K)
Number of downloads: 0
Click the 'Edit BBCode' button at the bottom and thats the Code bbcode done.
Next go to Admin Control Panel --> Look & Feel Tab --> BBCode Management --> Click on the 'HTML' Dropdown Button --> Edit BBCode
Tick 'yes' to drop all 'xx' cached items
ishot-2.jpg (34.87K)
Number of downloads: 1
Then scroll down to the 'Custom BBCode Replacement' box and insert this code:
Code:
<div class="bbhtml">
<div class="bbhtmltitle">HTML Code:</div>
<pre>{content}</pre>
</div>
ishot-4.jpg (96.98K)
Number of downloads: 0
Right, right click this small HTML icon
and save it to your computer. Now upload it to: forum root/public/style_images/(skin_directory)/rte_icons/ Next go down to 'BBCode Image' and in the field add 'html.png'
Click the 'Edit BBCode' button at the bottom and thats the HTML bbcode done.
Next go to Admin Control Panel --> Look & Feel Tab --> BBCode Management --> Click on the 'PHP' Dropdown Button --> Edit BBCode
Tick 'yes' to drop all 'xx' cached items
ishot-2.jpg (34.87K)
Number of downloads: 1
Then scroll down to the 'Custom BBCode Replacement' box and insert this code:
Code:
<div class="bbphp">
<div class="bbphptitle">PHP Code:</div>
<pre>{content}</pre>
</div>
ishot-5.jpg (96.3K)
Number of downloads: 0
Right, right click this small PHP icon
and save it to your computer. Now upload it to: forum root/public/style_images/(skin_directory)/rte_icons/ Next go down to 'BBCode Image' and in the field add 'php.png'
Click the 'Edit BBCode' button at the bottom and thats the PHP bbcode done.
And we are done!
Enjoy


Sign In
Register
Help

Back to top
MultiQuote
