1
fabou78
NewBB incorect display under certain condition
  • 2015/2/21 12:23

  • fabou78

  • Friend of XOOPS

  • Posts: 43

  • Since: 2012/6/16


Hi guys,

XOOPS Version: 2.5.7.1
Module Name/Version: NEWBB 4.33 RC7 (from irmtfan)
PHP Version: 5.5.9
MySQL Version: 5.5.41
Web Server Software (Apache/IIS/Other): Apache2
Operating System: Ubuntu 14.04.1 LTS Server
Theme you are using: xbootstrap-1.03
Custom template: (Yes/No), Not sure what is this…


I found an issue with newbb not displaying correctly in certain occasion and I can’t figure out what’s wrong. I am also not sure where is the problem so probably I posted in the wrong forum category. I have configured forum block to be displayed @ home page but the forum table doesn’t want to align correctly by default. See below

Image 1

Now, when I logging it become better by using all space provided. See below

Image2

As soon as I hit the refresh button we are back to square one with ugly table.

By comparing the code from the two different scenarios I found one difference between the two files. When the forum is displayed correctly I can see the following

<link rel="stylesheet" href="http://helilocal/xoops/language/english/style.css" type="text/css" />
<
link rel="stylesheet" href="http://helilocal/xoops/modules/newbb/templates/css/language/english/style.css" type="text/css" />
<
link rel="stylesheet" href="http://helilocal/xoops/xoops.css" type="text/css" />


But when it’s not displaying correctly I can see the following
<link rel="stylesheet" href="http://helilocal/xoops/language/english/style.css" type="text/css" />
<
link rel="stylesheet" href="http://helilocal/xoops/modules/newbb/templates/css/language/english/style.css" type="text/css" />


That is to say that the line “<link rel="stylesheet" href="http://helilocal/xoops/xoops.css" type="text/css" />“ is missing.

Those CSS references seems to be from “<{$xoops_module_header}>” in the folowing file "/var/www/html/xoops/themes/xbootstrap/theme.html" (line 40).

Now I have fixed the problem by adding hardcoding “<link rel="stylesheet" href="http://helilocal/xoops/xoops.css" type="text/css" />” just below “<{$xoops_module_header}>” but I don’t really understand what is going on.

I am not good enough to figure out why “<{$xoops_module_header}>” would return sometime 3 lines or 2 lines. Seems like this is a CSS related issue where some property are overrided by the “/xoops/xoops.css" CSS file.

Any one came across this issue and managed to fix it? What else can I do to try to understand this? I don’t really like my fix and would like to find a cleaner solution for this issue.

Fabou

2
Mamba
Re: NewBB incorect display under certain condition
  • 2015/2/22 1:11

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


The templates for NewBB for the theme you're using are in:

/xbootstrap/modules/newbb

check over there if you find any issues that you could fix



Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
fabou78
Re: NewBB incorect display under certain condition
  • 2015/2/22 11:58

  • fabou78

  • Friend of XOOPS

  • Posts: 43

  • Since: 2012/6/16


Quote:

check over there if you find any issues that you could fix


Will do but should I understand by this that you don't think the issue is related to “<{$xoops_module_header}>” and CSS as explained previously?

Fabou

Login

Who's Online

234 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 234


more...

Donat-O-Meter

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

Latest GitHub Commits