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:

<link rel="stylesheet" type="text/css" href="templates/newbb.css" />

<link rel="stylesheet" type="text/css" href="http://www.mysite.com/themes/mytheme/css/newbb.css" />

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" />
<!-- 
RMVadded module header -->
<
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

299 user(s) are online (202 user(s) are browsing Support Forums)


Members: 0


Guests: 299


more...

Donat-O-Meter

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

Latest GitHub Commits