| Re: how is this css file inserted into template? Please advise. |
| by fragttdg on 2006/3/7 14:55:49 Hey, thanks again. am just tasting newbb3 (based on XOOPS 2.2), and wondering why this css link comes up. |
| Re: how is this css file inserted into template? Please advise. |
| by McNaz on 2006/3/7 13:07:42 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 le="color: #000000"><?php $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. le="color: #000000"><?php <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" /> <!-- RMV: added 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. |
| Re: how is this css file inserted into template? Please advise. |
| by fragttdg on 2006/3/7 12:09:53 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? |
| Re: how is this css file inserted into template? Please advise. |
| by McNaz on 2006/3/7 9:28:34 Have your tried: le="color: #000000"><?php $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. |
| [newbb3.0]how is this css file inserted into template? Please advise. |
| by fragttdg on 2006/3/7 8:53:06 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. |