Toggle Content    Register or Login  -  June 16, 2019, 3:03 pm  
Toggle Content Commercial Themes
This is an opportunity for you to preview TCD commercial themes. All themes seen here can be purchased from the store.
Toggle Content User Info

Welcome Anonymous

Toggle Content Navigation
Toggle Content Project Status
Support Forums » DragonflyCMS » Tips & Tricks » Code/PHP/Quoting format fix for 9.1.2
Please use the forum search before making a post. Your question might have been previously answered.

Code/PHP/Quoting format fix for 9.1.2
Some of the best non-standard tricks for your site all in one location.

Post new topic   Reply to topic    Forum Index » Tips & Tricks Printer Friendly Page

View previous topic :: View next topic  
Author Message
Lead Developer

PostPosted: Mon Jul 02, 2007 4:45 pm Reply with quote

If you are like me and have updated your themes from 9.0 to 9.1 and found that your quoting format is borked it's because they've introduced new css classes into 9.1 that must be added.

In your theme's style.css file replace all of this:

.code,.quote {
  border: #D1D7DC;
  border-style: solid;
  border-width: 1px;
  background: #FAFAFA;
.code {
  color: #060;
  font: 11px Courier, 'Courier New', sans-serif;
.quote {
  color: #444;
  font: 11px/125%;

with this:

.bbhead, .bbchead, .bbphphead {
	background-color: #66ccff;
	font: bold 12px Verdana, Helvetica, sans-serif;
	border-left: 1px solid #000;
	border-right: 1px solid #000;
	border-top: 1px solid #000;
	padding:0px 4px 0px 4px;
	margin: 0px 20px 0px 20px;
.code, .quote, .bbcontent, .bbccontent, .bbphpcontent {
  color: #000;
  background-color: #FAFAFA;
  border: 1px solid #000;
  overflow: auto;
  max-height: 250px;
  margin: 0px 20px 0px 20px;
Please note that I'm not including the rounded corners of the quote labels as seen in the base Dragonfly Theme because it's non-compliant code.

You'll also need the bbcode.inc file. If you can't find one from another theme then put this in a blank file and rename it bbcode.inc. The file goes in your theme's root directory. Such as themes/TCD_Default/bbcode.inc. Notice there is no ending php tag in that file. It's supposed to be that way.

CPG Dragonfly™ CMS
Copyright © 2004 - 2005 by CPG-Nuke Dev Team

Dragonfly is released under the terms and conditions
of the GNU GPL version 2 or any later version

$Source: /cvs/html/themes/dragonfly/bbcode.inc,v $
$Revision: 9.3 $
$Author: djmaze $
$Date: 2005/12/17 04:05:51 $
if (!defined('CPG_NUKE')) { exit; }

$bb_codes['quote'] = '<div class="bbquote">
<div class="bbhead">Quote:</div>
<div class="bbcontent">'
$bb_codes['quote_name'] = '<div class="bbquote">
<div class="bbhead">\\1 wrote:</div>
<div class="bbcontent">'
$bb_codes['quote_close'] = '</div></div>';

$bb_codes['code_start'] = '<div>
<div class="bbchead">Code:</div>
<div class="bbccontent"><code>'
$bb_codes['code_end'] = '</code></div></div>';

$bb_codes['php_start'] = '<div>
<div class="bbphphead">PHP:</div>
<div class="bbphpcontent">'
$bb_codes['php_end'] = '</div></div>';


Back to top
View user's profile Photo Gallery
  Page 1 of 1All times are GMT - 5 Hours

Post new topic   Reply to topic    Forum Index » Tips & Tricks Printer Friendly Page


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Valid CSS!
Valid HTML 4.01!

Site Search | Support | Contact | Payments | Link to Us
All TCD logos and trademarks in this site are property of TreasureCoastDesigns.com
Interactive software released under GNU GPL, Code Credits, Privacy Policy
TCD_Natural © T.C.D.