BBCODE Plugin Formatting Fix

Found a bug? Tell us!!
Post Reply
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

BBCODE Plugin Formatting Fix

Post by TKS »

Inside plugins/serendipity_event_bbcode/serendipity_event_bbcode.php

Code: Select all

.bb-code, .bb-php {
    font-family: courier, "courier new";
    background-color: #DDDDDD;
    padding: 10px;
}
should be:

Code: Select all

.bb-code, .bb-php {
    font-family: courier, "courier new";
    background-color: #DDDDDD;
    padding: 10px;
    overflow: auto;
}
Overflow: auto; will allow the bbcode to fix itself on narrow blog when long lines of code text are posted (for example, Carl02)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: BBCODE Plugin Formatting Fix

Post by garvinhicking »

Hi!

Hm, this IMHO depends on the specific template. Some might not work well with the auto overflow? IMHO this should be put into a templates style.css rather than the default setting of the plugin?

Then again, I'm not that good with overflow, so I don't know if my assumption is true that it could cause trouble on blogs using other templates.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

Post by TKS »

if it's set to overflow: auto; it should only add in when needed (ie, clipped content to large for the bbcode), otherwise it will not effect the bbcode.

http://www.w3schools.com/css/pr_pos_overflow.asp
Post Reply