1
fragttdg
[newbb3.0]how is this css file inserted into template? Please advise.
  • 2006/3/7 8:53

  • fragttdg

  • Just popping in

  • Posts: 34

  • Since: 2004/6/13


Hi All,

Please take a look at my problem and advise. Thanks!

(newbb3, xoops2.2)
There are two css files that have been specified in most pages of newbb module:





For the first one, I know it is specified in 'newbb/header.php', but I cannot figure out where and how does the 2nd entry be introduced. (PS. the conf_name 'theme_set' with title '_MI_THEMESET' has no value in database).

If you guys could give me a hint, it will be greatly appreciated.
Xoops Based site - http://www.xiubei.com

2
McNaz
Re: how is this css file inserted into template? Please advise.
  • 2006/3/7 9:28

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


Have your tried:

$xoopsTpl->assign('xoops_module_header','your css goes here');


Note that the theme you are using has to have a $xoops_module_header already defined.

3
fragttdg
Re: how is this css file inserted into template? Please advise.
  • 2006/3/7 12:09

  • fragttdg

  • Just popping in

  • Posts: 34

  • Since: 2004/6/13


McNaz, thanks for your input. Maybe I have not made myself clear. My question is that why the 2nd css link exists. if I need to replace it(not to add a new one), where should I change?
Xoops Based site - http://www.xiubei.com

4
McNaz
Re: how is this css file inserted into template? Please advise.
  • 2006/3/7 13:07

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


Oops!

This is my fault for quickly glancing over your post instead of reading it properly. Shame on me .

You are correct in that header.php specifies the newbb.css file and assigns it to $newbb_module_header.

I can then see a few

$xoopsTpl->assign('xoops_module_header'$newbb_module_header);


in index.php, viewall.php etc.

I went to a forum post and looked at the HTML source but could only see a single newbb.css reference.

<link rel="stylesheet" type="text/css" media="screen" href="http://xasset.co.uk/xoops.css" />

<
link rel="stylesheet" type="text/css" media="screen" href="http://xasset.co.uk/themes/xasset/styleNN.css" />

<
link rel="alternate" type="application/xml+rss" title="Discussion Forums" href="http://xasset.co.uk/modules/newbb/rss.php" />
    <
link rel="stylesheet" type="text/css" href="templates/newbb.css" />
    <
script type="text/javascript">var toggle_cookie="xasset_co_uk_newbb16_G";script>
    <
script src="include/js/newbb_toggle.js" type="text/javascript">script>


I must say that I am looking at Newbb 1.15. Could you specify which Newbb version you are looking at for reference?

Cheers.

McNaz.

5
fragttdg
Re: how is this css file inserted into template? Please advise.
  • 2006/3/7 14:55

  • fragttdg

  • Just popping in

  • Posts: 34

  • Since: 2004/6/13


Hey, thanks again. am just tasting newbb3 (based on XOOPS 2.2), and wondering why this css link comes up.
Xoops Based site - http://www.xiubei.com

Login

Who's Online

322 user(s) are online (269 user(s) are browsing Support Forums)


Members: 0


Guests: 322


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