Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 - 0 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

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

NP xpider & tx 4 the tx...
Re: Could we make a smarty or php(CSS), to link from anywhere; to the head?
by xpider on 2006/5/22 23:38:01

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 =)
Re: Could we make a smarty or php(CSS), to link from anywhere; to the head?
by wizanda on 2006/5/19 21:05:09

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?
Re: Could we make a smarty or php(CSS), to link from anywhere; to the head?
by tripmon on 2006/5/19 1:51:26

<!-- RMV: added module header -->
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...
<!-- RMV: added module header -->

somewhere between the line above and </head> 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
Re: Could we make a smarty or php(CSS), to link from anywhere; to the head?
by xpider on 2006/5/18 22:25:47

running newbb (cbb) in the generated header view source says...

le="color: #000000"><?php <!-- RMV: added module header --> <style type="text/css">img {behavior:url("include/pngbehavior.htc");}</style> <link rel="stylesheet" type="text/css" href="newbb.css" /> <script src="include/js/newbb_toggle.js" type="text/javascript"></script>


What is RMV and how is this done?

What I would like to see as a website designer is the ability within each module to select different themes and image packs per individual module.

Objective would be to have a skins and image pack folder that you could just upload new skins folders and image packs folders to and then from within the admin of the module have a drop box for each.... capable of reading the directory and letting you choose different ones and saving to db your choice. Just like preferences in XOOPS core admin...

Just a thought...

Who's Online

387 user(s) are online (338 user(s) are browsing Support Forums)


Members: 0


Guests: 387


more...

Donat-O-Meter

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

Latest GitHub Commits