11
tripmon
Re: Could we make a smarty or php(CSS), to link from anywhere; to the head?
  • 2006/5/19 1:51

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28



Is just a comment... there to let you know that the code directly below the comment is being passed from the $xoops_module_header value (which is assigned to (not necessarily defined in) the active .html template that you are viewing).

To better understand, open header.php from cbb, you will see $xoops_module_header getting populated (or for the sake of this discussion...defined).

open (still cbb) index.php... you can see $xoops_module_header being assigned to the template here.

As long as you are not using module wide cache, at this point (with $xoops_module_header assigned from a php page to a .html (or smarty) template) whatever is assigned to $xoops_module_header will show up in the(compiled) page header.

Open your theme.html file from your active theme and you will see...


somewhere between the line above and will be:
<{$xoops_module_header}>

This is there so to facilitate what I described in my earlier post and above(module specific css... more specifically passing header information from a module page to be wrapped in the header by theme.html). Some very old themes will not have this code... they will also not pass module header information (unless you add above code in the head section).

Hope that shines some light

12
wizanda
Re: Could we make a smarty or php(CSS), to link from anywhere; to the head?
  • 2006/5/19 21:05

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


So after reading that, can I then define a variable as being contained in the <{$xoops_module_header}> like CSS?

Would it be possible to show me how to do this, to get a CSS file in there from any module.

As any refrence to CSS could then just be added with this, please! thxz!

Oh just to add does it need to run through XOOPS template system/smarty?

13
xpider
Re: Could we make a smarty or php(CSS), to link from anywhere; to the head?
  • 2006/5/22 23:38

  • xpider

  • Not too shy to talk

  • Posts: 150

  • Since: 2004/5/9 2


Thanks Tripmon =)

Appreciate the input =) And yes I did know it was a comment but didn't know what it was trying to say... and how it worked. I believe I can take what you have explained throughout this thread and put it to use =)

Thanks again =)
Some of the best things in life truly are FREE

Xpider

XpidersWeb
XtremeFreeware
...........................................

14
tripmon
Re: Could we make a smarty or php(CSS), to link from anywhere; to the head?
  • 2006/5/23 0:26

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


NP xpider & tx 4 the tx...

Login

Who's Online

295 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 295


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