Member
Member
micheall   24-11-2009, 15:18
#1

Ok, I thought I had it nailed down, but recently while checking out the pages with firebug I noticed that the CSS isn't actually being loaded like I thought it would be.

So perhaps I'm missing this somewhere? Here's my current code-call for it.
function zenTwitterToCSS() { $css = USER_PLUGIN_FOLDER . '/zenTwitter/zenTwitter.css'; $link_css = ''; return $link_css; unset($css,$link_css); }
Edit:

Nevermind, another tired night and missed an obvious problem, the lack of use of echo on the variable.

Administrator
Administrator
acrylian   24-11-2009, 17:29
#2

If you want to automatically add that into the head of the page you can also use addPluginScript('...'). See the flowplayer3 plugin for an example.

Member
Member
micheall   25-11-2009, 09:51
#3

Thanks for that tip acrylian! Much easier to do it that way, and one less edit that an end-user would have to do to use it. Much appreciated.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.