1
Anonymous
CBB 3.08 image/permissions alignment
  • 2007/6/21 15:19

  • Anonymous

  • Posts: 0

  • Since:


Hi,

Been meaning to check this for ages...........

I use XOOPS 2.0.16, CBB3.08 (with latest Frameworks/xoopseditor), the xoops-magazine imageset (lovely, btw ) and jmorris' Bluehue theme.

Thing is, when viewing a thread the Poll/Reply/New Topic images and the permissions table are displaced across to the right, like so:

Resized Image

It's not a theme or imageset issue as I've tried both the CBB default imageset and the xoops-magazine imageset with both Bluehue and the default themes.

I'm assuming it's a CBB template issue (unless its something in the .css that's common to both the XOOPS default theme and Bluehue).

Does everyone else see this alighment problem or is it something unique to my set-up/site?

All advice welcome

2
Will_H
Re: CBB 3.08 image/permissions alignment
  • 2007/6/22 0:52

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


hadn't seen it, but a little in the template should snap it into place.

3
Anonymous
Re: CBB 3.08 image/permissions alignment
  • 2007/6/30 13:15

  • Anonymous

  • Posts: 0

  • Since:


Yay!!

Sorted it and, shock of all shocks, by looking at (and understanding!) the codes in the three template files used by CBB to display posts/threads, i.e. newbb_viewtopic_thread.html, newbb_viewtopic_flat.html and newbb_viewtopic_compact.html.

These three files contain the following code:

<div class="clear">div>


Then it dawned...... did my theme's .css file contain a definition for a class called "clear"? The answer was no

Anyway, to cut a long story short, I found the answer using my old friend Mr Google. Searching on the above code gave me this webpage:

http://www.andybudd.com/archives/2003/12/css_crib_sheet_2_clearing_floats/

and the answer, i.e. add the following code to my theme's .css file:

.clear {
  
clearboth;
  
height0;
}


So, if you're using CBB 3.0x and want it to display as phppp/DJ intended, make sure that your theme's .css file contains the above code. Should work in all web browsers.

And to save you looking, I can tell you that both the XOOPS "default" and the "Bluehue" themes don't. Or rather, didn't

Hope this helps a few peeps.

4
Anonymous
Re: CBB 3.08 image/permissions alignment
  • 2007/7/2 11:19

  • Anonymous

  • Posts: 0

  • Since:


Hi all,

there's been some discussion about this over on XOOPSinfo.com in this thread.

It seems as though CBB has its own .css which should be inherited but the "clear" code that it uses isn't supported by IE7 (my browser).

This is therefore an IE7 issue rather than an issue with CBB3.0x or with the theme in use.

All I can tell you at the moment is that the above "fix" when applied to a theme's .css will work.

I'm going to try adding the code to CBB's own .css file either as well as and/or instead of that's file's "clear" code to see what happens.

Also, please could a Mod change the title of this thread to "CBB 3.08 image/permissions alignment in IE7" so as to more accurately reflect the issue?"

Many thanks

5
Anonymous
Re: CBB 3.08 image/permissions alignment
  • 2007/7/2 18:41

  • Anonymous

  • Posts: 0

  • Since:


The definitive answer:

This is an IE7 issue (I think that viewers using IE6 don't have the problem.

The following is, I belive, the answer for all browsers; it certainly causes CBB to display correctly in both IE6 and IE7:

In the module's own stylesheet (/modules/newbb/templates/newbb.css) replace the following code

/* 
 * From http://www.positioniseverything.net/easyclearing.html 
 */ 
.clear:after 
    
content".";  
    
displayblock;  
    
height0;  
    
clearboth;  
    
visibilityhidden

.
clear {displayinline-table;} 
/* Hides from IE-mac */ 
html .clear {height1%;} 
.
clear {displayblock;} 
/* End hide from IE-mac */


With this code

.clear 
  
clearboth
  
height0
}



There is no need to modify your theme's stylesheet and the module's own stylesheet will be inherited.

Please could people let me know if this causes problems in other browsers (FF, Opera, etc) before I submit this to phppp as bug?

Many thanks

Login

Who's Online

154 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits