Author |
Message |
neralex
Site Admin
![](modules/Forums/images/avatars/201442295664a46e4575d46.jpg)
Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Thu Aug 26, 2010 8:18 pm |
|
Hey RavenNuke(tm) team!
Thanks for this great feature to run own css files. I hope that this element continues!
![RavensScripts](modules/Forums/images/smiles/ravensphpscripts.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jestrella
Moderator
![](modules/Forums/images/avatars/bea6a62d4db43637aa29d.jpg)
Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic
|
Posted:
Thu Aug 26, 2010 10:27 pm |
|
You may wish to directly thank Kevin (kguske) for creating this great little RN addon! xD |
_________________ "For those whom have not reach the sky... Every mountain seems high"
Best Regards
Jonathan Estrella
http://about.me/jestrella04 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 18, 2010 6:17 pm |
|
hey!
i have a question about this addon.
if i set this into the /modules/Forums/index.php, then it does not work.
Code:
addCSSToHead("themes/mytheme/style/forum.css","file");
|
any ideas?
![Sad](modules/Forums/images/smiles/icon_sad.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Thu Nov 18, 2010 11:41 pm |
|
Are you putting that before header.php is called? |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 19, 2010 6:48 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/48fb116845dfecf66294c.gif)
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Fri Nov 19, 2010 9:19 am |
|
try placing it in modules/Forums/nukebb.php right after mainfile.php is included. If you are using it to override existing styling you may want to create a separate php file and load your CSS/JS there.
Code:// this is relative to the module: modules/Forums/yourfile.php
define('RN_MODULE_HEAD', 'yourfile.php');
|
Note: If I remember correctly if you use the dynamic head functions directly from within your module index they will be added to the array before the main style.css file, so that won't work for overriding existing styling.
Also, RN automatically checks for themes/YOUR_THEME/style/Forums.css so if your theme isn't using one (only some do) you could use that as well. Just be aware that the default forum styling should be declared somewhere (only an issue if your theme does not have custom forum templates (a forum directory) or a Forums.css file)
My advice may differ depending on what you are trying to do, if you run single/multiple themes, if your additions are theme specific, if your theme(s) have custom forum templates and/or a Forums.css file, etc.
any questions, just ask ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 19, 2010 5:39 pm |
|
spasticdonkey wrote: | Also, RN automatically checks for themes/YOUR_THEME/style/Forums.css so if your theme isn't using one (only some do) you could use that as well. |
spasticdonkey, many thanks for your answer - it works!
![RavensScripts](modules/Forums/images/smiles/ravensphpscripts.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|