MyBB Community Forums

Full Version: Code & Quote Feature
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all

I'm asking what template do I need to edit (in admin panel) to change the style of the code & quote appeance when thery're posted in a message.

Thanx. for your help

NOTE: Didn't know where to post this thread, if its in the wrong forum, I'm sorry for any convienience! Big Grin
As far as I know, there is no template. You have to edit inc/functions_post.php, function doquotes($message) and bfunction docode($message)
Most of the time you can edit the css template,

.quote_header {
	margin-left: 20px;
	padding: 4px;
	border-top: 1px dashed #000000;
	border-left: 1px dashed #000000;
	border-right: 1px dashed #000000;
	color: #000000;
	background: #ffffff;
	font-weight: bold;
}

.quote_body {
	margin-left: 20px;
	padding: 0 4px 4px 4px;
	border-bottom: 1px dashed #000000;
	border-left: 1px dashed #000000;
	border-right: 1px dashed #000000;
	color: #000000;
	background: #ffffff;
}

.code_header {
	margin-left: 20px;
	padding: 4px;
	border-top: 1px dashed #000000;
	border-left: 1px dashed #000000;
	border-right: 1px dashed #000000;
	color: #000000;
	background: #ffffff;
	font-weight: bold;
}

.code_body {
	margin-left: 20px;
	padding: 0 4px 4px 4px;
	border-bottom: 1px dashed #000000;
	border-left: 1px dashed #000000;
	border-right: 1px dashed #000000;
	color: #000000;
	font-family: monospace;
	background: #ffffff;
}
Hi guys I have change the css template abit, here is the new code of the change:

.quote_header {
	margin-left: 20px;
	margin-right:20px;
	padding: 4px;
	color: #000000;
	font-weight: bold;
}

.quote_body {
	margin-left: 20px;
	margin-right:20px;
	padding: 4px;
	border: 1px solid #cccccc;
	color: #333333;
	background: #ffffff;
}

.code_header {
	margin-left: 20px;
	margin-right:20px;
	padding: 4px;
	color: #000000;
	font-weight: bold;
}

.code_body {
	margin-left: 20px;
	margin-right:20px;
	padding: 4px;
	border: 1px solid #cccccc;
	color:#333333;
	font-family: "Courier New", Courier, mono;
	background: #ffffff;
}

I have change it so that the Code: or Write: text stays out of the code/quote_body area. Big Grin As that just confused me a little and I didn't like the default style.

Also a screen shot of how they look now is attached Big Grin

NOTE: that was a test on my test forum on my comp! I aint that dumb what is stated in that pic. lol!