Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
css.php and js.php in modules
Natedogg265
N8Flash Designs


Joined: 28 Jan 2007
Posts: 5866
Location: St. Louis, Missouri

Posted: 01/07/11 16:15 
Currently can modules include a js.php and css.php?

If not, that would be a very good move.


_________________
Modules, Skins, Flash Players and more.
Exclusively for Jamroom


Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 01/07/11 22:09 
Not sure if this is a question for SteveX or a request, but you can do this via modules in the module/ModuleName/include.php file:


Code
// Set up our CSS and JS files
$config['ModuleName_cp_js'] = array(
  "{$jamroom['jm_dir']}/modules/ModuleName/javascript.js" => 'no_minify',
);

$config['ModuleName_cp_css'] = array(
  "{$jamroom['jm_dir']}/modules/ModuleName/css.css" => 'minify',
);



_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Natedogg265
N8Flash Designs


Joined: 28 Jan 2007
Posts: 5866
Location: St. Louis, Missouri

Posted: 01/08/11 16:34 
This should be moved.

Thanks for the answer!


_________________
Modules, Skins, Flash Players and more.
Exclusively for Jamroom


Back to top
Natedogg265
N8Flash Designs


Joined: 28 Jan 2007
Posts: 5866
Location: St. Louis, Missouri

Posted: 01/08/11 16:36 

smith.kyle:
Not sure if this is a question for SteveX or a request, but you can do this via modules in the module/ModuleName/include.php file:


Code
// Set up our CSS and JS files
$config['ModuleName_cp_js'] = array(
  "{$jamroom['jm_dir']}/modules/ModuleName/javascript.js" => 'no_minify',
);

$config['ModuleName_cp_css'] = array(
  "{$jamroom['jm_dir']}/modules/ModuleName/css.css" => 'minify',
);


I see you have cp. Does that work for skin_css and theme_css?


_________________
Modules, Skins, Flash Players and more.
Exclusively for Jamroom


Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 01/08/11 16:48 
I haven't tried it, but I don't see why it shouldn't - let me know if you try it and it does/doesn't.

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Natedogg265
N8Flash Designs


Joined: 28 Jan 2007
Posts: 5866
Location: St. Louis, Missouri

Posted: 01/08/11 16:49 
This would help me avoid panic.


_________________
Modules, Skins, Flash Players and more.
Exclusively for Jamroom


Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 01/08/11 17:53 
Please avoid panic N8, it splashes sweat into speaker grills..

I'm glad that you have a solution and that this isn't a question for SteveX Wink


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
Natedogg265
N8Flash Designs


Joined: 28 Jan 2007
Posts: 5866
Location: St. Louis, Missouri

Posted: 01/08/11 19:05 
Laughing


_________________
Modules, Skins, Flash Players and more.
Exclusively for Jamroom


Back to top
Aluscia



Joined: 30 Nov 2011
Posts: 1

Posted: 11/30/11 18:31 
<a>hahaha</a>

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.